summaryrefslogtreecommitdiffstats
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
commit85c11656d2e8cdc1d490aaa373316ffc3330dcea (patch)
treed7e26bf2edde33843626a5d3fcf02152b0c86d33 /mkconfig.rb
parent509ccdd86f66b7fa22dcf2973d0af2d55016c29d (diff)
downloadruby-85c11656d2e8cdc1d490aaa373316ffc3330dcea.tar.gz
ruby-85c11656d2e8cdc1d490aaa373316ffc3330dcea.tar.xz
ruby-85c11656d2e8cdc1d490aaa373316ffc3330dcea.zip
2000-06-19
git-svn-id: http://svn.ruby-lang.org/repos/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 671e9bdbe..2e346c15a 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}"