[前][次][番号順一覧][スレッド一覧]

ruby-changes:37374

From: nobu <ko1@a...>
Date: Sat, 31 Jan 2015 17:42:29 +0900 (JST)
Subject: [ruby-changes:37374] nobu:r49455 (trunk): rbinstall.rb: no chdir

nobu	2015-01-31 17:42:13 +0900 (Sat, 31 Jan 2015)

  New Revision: 49455

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49455

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

  Modified files:
    trunk/tool/rbinstall.rb
Index: tool/rbinstall.rb
===================================================================
--- tool/rbinstall.rb	(revision 49454)
+++ tool/rbinstall.rb	(revision 49455)
@@ -418,7 +418,7 @@ end https://github.com/ruby/ruby/blob/trunk/tool/rbinstall.rb#L418
 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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]