From 85c11656d2e8cdc1d490aaa373316ffc3330dcea Mon Sep 17 00:00:00 2001 From: eban Date: Mon, 19 Jun 2000 03:37:55 +0000 Subject: 2000-06-19 git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- mkconfig.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'mkconfig.rb') 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 <