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

* mkconfig.rb: unexpected `"ruby".sub("$","17") == "ruby"'

because of recent change in string.c:get_pat().


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
gotoken 2002-07-29 05:59:46 +00:00
parent ce84517f2c
commit 448610abec

View file

@ -33,7 +33,7 @@ File.foreach "config.status" do |line|
if /^s[%,]@program_transform_name@[%,]s,(.*)/ =~ line
next if $install_name
ptn = $1.sub(/\$\$/, '$').split(/,/) #'
v_fast << " CONFIG[\"ruby_install_name\"] = \"" + "ruby".sub(ptn[0],ptn[1]) + "\"\n"
v_fast << " CONFIG[\"ruby_install_name\"] = \"" + "ruby".sub(/#{ptn[0]}/,ptn[1]) + "\"\n"
elsif /^s[%,]@(\w+)@[%,](.*)[%,]/ =~ line
name = $1
val = $2 || ""