diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-02-18 01:49:11 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-02-18 01:49:11 +0000 |
commit | 3f1a33450441b00f026c287857a1e547e0a48ea7 (patch) | |
tree | dc22fea23ba827a1c76913eef7ab273e7f4c8faa /tool | |
parent | 46cdc66f84b933cce2495f31e1210829d2cddceb (diff) | |
download | ruby-3f1a33450441b00f026c287857a1e547e0a48ea7.tar.gz |
mkconfig.rb: clear exec_prefix
* tool/mkconfig.rb: clear exec_prefix which may differ from prefix,
before expanding rubyarchdir to remove prefix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rwxr-xr-x | tool/mkconfig.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tool/mkconfig.rb b/tool/mkconfig.rb index 92c765499f..d8e9f0f3b7 100755 --- a/tool/mkconfig.rb +++ b/tool/mkconfig.rb @@ -167,7 +167,8 @@ def vars.expand(val, config = self) 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 |