1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

matz - biorhythm.rb

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2000-07-31 09:21:25 +00:00
parent b2d7eaec50
commit ed474caef1
2 changed files with 10 additions and 28 deletions

View file

@ -83,22 +83,7 @@ end
print v_fast, v_others
print <<EOS
CONFIG["compile_dir"] = "#{Dir.pwd}"
MAKEFILE_CONFIG = {}
CONFIG.each{|k,v| MAKEFILE_CONFIG[k] = v.dup}
def Config::expand(val)
val.gsub!(/\\$\\(([^()]+)\\)/) do |var|
key = $1
if CONFIG.key? key
"\#{Config::expand(CONFIG[\\\"\#{key}\\\"])}"
else
var
end
end
val
end
CONFIG.each_value do |val|
Config::expand(val)
end
MAKEFILE_CONFIG = CONFIG.dup
end
EOS
config.close