mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
14 lines
298 B
Ruby
Executable file
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)
|