diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-15 17:42:00 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-15 17:42:00 +0000 |
commit | 86888f9cecc30ebad241fd144bab6ff6380640ed (patch) | |
tree | 462e542417b6fa5c3ee9154ff6f53a5f6ad139ef /tool/runruby.rb | |
parent | b2996b30d9e868f1d28d45849c26fbad65d2be2a (diff) | |
download | ruby-86888f9cecc30ebad241fd144bab6ff6380640ed.tar.gz |
rename ruby-runner as bin/ruby
* Makefile.in, configure.in, tool/runruby.rb: rename ruby-runner
executable file as $(RUBY_INSTALL_NAME) under bin, to mimic
dirty `#!/usr/bin/env` hack.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/runruby.rb')
-rwxr-xr-x | tool/runruby.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/runruby.rb b/tool/runruby.rb index be1be6a68b..23d835536e 100755 --- a/tool/runruby.rb +++ b/tool/runruby.rb @@ -74,14 +74,14 @@ env = { 'RUBY_FIBER_MACHINE_STACK_SIZE' => '1', } -runner = File.join(abs_archdir, "ruby-runner#{config['EXEEXT']}") +runner = File.join(abs_archdir, "bin/ruby#{config['EXEEXT']}") runner = nil unless File.exist?(runner) abs_ruby = runner || File.expand_path(ruby) env["RUBY"] = abs_ruby env["GEM_PATH"] = env["GEM_HOME"] = File.expand_path("spec/rspec", srcdir) env["BUNDLE_RUBY"] = abs_ruby env["BUNDLE_GEM"] = "#{abs_ruby} -rrubygems #{srcdir}/bin/gem --backtrace" -env["PATH"] = [abs_archdir, ENV["PATH"]].compact.join(File::PATH_SEPARATOR) +env["PATH"] = [File.dirname(abs_ruby), abs_archdir, ENV["PATH"]].compact.join(File::PATH_SEPARATOR) if e = ENV["RUBYLIB"] libs |= e.split(File::PATH_SEPARATOR) |