1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00

make sure that the v8 bin loads v8 from the right library.

This commit is contained in:
Charles Lowell 2010-04-01 22:44:17 -05:00
parent e3821aaf9a
commit 8be240196c

9
bin/v8
View file

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