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

ruby-changes:27245

From: nobu <ko1@a...>
Date: Mon, 18 Feb 2013 11:03:43 +0900 (JST)
Subject: [ruby-changes:27245] nobu:r39297 (trunk): mkconfig.rb: clear exec_prefix

nobu	2013-02-18 10:49:11 +0900 (Mon, 18 Feb 2013)

  New Revision: 39297

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

  Log:
    mkconfig.rb: clear exec_prefix
    
    * tool/mkconfig.rb: clear exec_prefix which may differ from prefix,
      before expanding rubyarchdir to remove prefix.

  Modified files:
    trunk/tool/mkconfig.rb

Index: tool/mkconfig.rb
===================================================================
--- tool/mkconfig.rb	(revision 39296)
+++ tool/mkconfig.rb	(revision 39297)
@@ -167,7 +167,8 @@ def vars.expand(val, config = self) https://github.com/ruby/ruby/blob/trunk/tool/mkconfig.rb#L167
   val
 end
 vars["prefix"] = ""
-prefix = vars.expand(vars["rubyarchdir"]).sub!(vars.expand(vars["exec_prefix"]), '')
+vars["exec_prefix"] = ""
+prefix = vars.expand(vars["rubyarchdir"])
 print "  TOPDIR = File.dirname(__FILE__).chomp!(#{prefix.dump})\n"
 print "  DESTDIR = ", (drive ? "TOPDIR && TOPDIR[/\\A[a-z]:/i] || " : ""), "'' unless defined? DESTDIR\n"
 print <<'ARCH' if universal

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

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