1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00
therubyracer/bin/v8
2010-03-17 08:28:02 -05:00

14 lines
298 B
Ruby
Executable file

#!/usr/bin/env ruby
lib = File.expand_path(File.dirname(__FILE__) + '/../lib')
$:.unshift(lib) if File.exists?(lib) unless $:.member?(lib)
require 'readline'
begin
require 'v8'
rescue LoadError
require 'rubygems'
require 'v8'
end
require 'v8/cli'
V8::CLI.run(File.basename(__FILE__), ARGV)