summaryrefslogtreecommitdiff
path: root/mkconfig.rb
diff options
context:
space:
mode:
authorgotoken <gotoken@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-07-29 05:59:46 +0000
committergotoken <gotoken@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-07-29 05:59:46 +0000
commit448610abec3558780d541606261a090d279e26be (patch)
tree0ed6f650d82c29e75032ff4dd35a303614ee4b99 /mkconfig.rb
parentce84517f2cec1cc36ad767c073dd38dda32b88dd (diff)
* 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
Diffstat (limited to 'mkconfig.rb')
-rw-r--r--mkconfig.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkconfig.rb b/mkconfig.rb
index a2db2d2..79bbe27 100644
--- a/mkconfig.rb
+++ b/mkconfig.rb
@@ -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 || ""