Sha256: 3a0345d471bdad310d9c609b30f673878c8a03c2896ad2d84b592e104dda856d

Contents?: true

Size: 635 Bytes

Versions: 1

Compression:

Stored size: 635 Bytes

Contents

#!/usr/bin/env ruby
# encoding: UTF-8

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
delphivm-0.7.7 bin/delphivm