summaryrefslogtreecommitdiff
path: root/mkconfig.rb
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-06-19 03:37:55 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-06-19 03:37:55 +0000
commitc613f625b7c0c72771d74f86a1177e00290577df (patch)
treed7e26bf2edde33843626a5d3fcf02152b0c86d33 /mkconfig.rb
parentcc05dcd5fea3b6cfbb09298677f42395534a3a36 (diff)
downloadbundler-c613f625b7c0c72771d74f86a1177e00290577df.tar.gz
2000-06-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mkconfig.rb')
-rw-r--r--mkconfig.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/mkconfig.rb b/mkconfig.rb
index 671e9bdbe8..2e346c15af 100644
--- a/mkconfig.rb
+++ b/mkconfig.rb
@@ -20,7 +20,7 @@ module Config
# made to this file will be lost the next time ruby is built.
]
-print " CONFIG = {}\n"
+print " DESTDIR = '' if not defined? DESTDIR\n CONFIG = {}\n"
v_fast = []
v_others = []
has_version = false
@@ -72,6 +72,14 @@ if not has_version
}
end
+v_fast.collect! do |x|
+ if /"prefix"/ === x
+ x.sub(/= /, '= DESTDIR + ')
+ else
+ x
+ end
+end
+
print v_fast, v_others
print <<EOS
CONFIG["compile_dir"] = "#{Dir.pwd}"