diff options
Diffstat (limited to 'tool')
-rwxr-xr-x | tool/mkconfig.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/mkconfig.rb b/tool/mkconfig.rb index 79c97fa490..85b5ca45a5 100755 --- a/tool/mkconfig.rb +++ b/tool/mkconfig.rb @@ -167,8 +167,8 @@ def vars.expand(val, config = self) val.replace(newval) unless newval == val val end -prefix = vars.expand(vars["prefix"]) -rubyarchdir = vars.expand(vars["rubyarchdir"]) +prefix = vars.expand(vars["prefix"] ||= "") +rubyarchdir = vars.expand(vars["rubyarchdir"] ||= "") relative_archdir = rubyarchdir.rindex(prefix, 0) ? rubyarchdir[prefix.size..-1] : rubyarchdir print " TOPDIR = File.dirname(__FILE__).chomp!(#{relative_archdir.dump})\n" print " DESTDIR = ", (drive ? "TOPDIR && TOPDIR[/\\A[a-z]:/i] || " : ""), "'' unless defined? DESTDIR\n" |