1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

rbinstall.rb: no chdir

* tool/rbinstall.rb (PROLOG_SCRIPT): use the given symlinked
  directory name.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-01-31 08:42:13 +00:00
parent 3d7b3f0e8b
commit e783dcd8ce

View file

@ -418,7 +418,7 @@ end
if load_relative
PROLOG_SCRIPT = <<EOS
#!/bin/sh\n# -*- ruby -*-
bindir=`#{CONFIG["CHDIR"]} "${0%/*}" 2>/dev/null; pwd`
bindir="${0%/*}"
EOS
if CONFIG["LIBRUBY_RELATIVE"] != 'yes' and libpathenv = CONFIG["LIBPATHENV"]
pathsep = File::PATH_SEPARATOR