Sha256: 0fd99b770f386579c9781cc7cb0d7e8334c2b5b4afc33a5bd0ad79b4e77cad0b

Contents?: true

Size: 624 Bytes

Versions: 3

Compression:

Stored size: 624 Bytes

Contents

#!/usr/bin/env ruby

begin
  $LOAD_PATH.unshift File.join(File.dirname($0), '..', 'lib')

  require 'DelphiVM'

  if ARGV[0] == 'backtrace'
    ::BACKTRACE = true
    ARGV.shift
  end
  
  ARGV << 'vendor:import' << '-c' if defined? Ocra #to see all requires when compiling

  $0 = Pathname($0).basename('.rb').to_s

  $thor_runner = true
  Delphivm::Runner.start(ARGV)

rescue Interrupt => e
  puts "\nQuitting..."
  puts e.backtrace.join("\n") if defined? ::BACKTRACE
  exit 1
rescue Exception => e
  puts e.message
  puts e.backtrace.join("\n") if defined? ::BACKTRACE
  exit 1
end
exit 0

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
delphivm-0.9.0 bin/delphivm
delphivm-0.8.1 bin/delphivm
delphivm-0.8.0 bin/delphivm