mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
runruby.rb: fallback to ruby
* tool/runruby.rb: use ruby-runner only when exists and fallback to ruby itself. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c604000a31
commit
85e83e9f93
1 changed files with 3 additions and 1 deletions
|
@ -66,7 +66,9 @@ config["bindir"] = abs_archdir
|
|||
|
||||
env = {}
|
||||
|
||||
env["RUBY"] = File.join(abs_archdir, "ruby-runner#{config['EXEEXT']}")
|
||||
runner = File.join(abs_archdir, "ruby-runner#{config['EXEEXT']}")
|
||||
runner = File.expand_path(ruby) unless File.exist?(runner)
|
||||
env["RUBY"] = runner
|
||||
env["PATH"] = [abs_archdir, ENV["PATH"]].compact.join(File::PATH_SEPARATOR)
|
||||
|
||||
if e = ENV["RUBYLIB"]
|
||||
|
|
Loading…
Reference in a new issue