summaryrefslogtreecommitdiff
path: root/tool/mkconfig.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-26 08:00:37 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-26 08:00:37 +0000
commitc6defbf3108a0cd1d16184dafe5fba9e2542cf39 (patch)
tree893e0db71bccf606085f6a72060a934e4c4b5e73 /tool/mkconfig.rb
parent0c86e8b70b277ab5179d13839b9496dce55f51df (diff)
* tool/mkconfig.rb (program_transform_name): fix for autoconf 2.61
or earlier. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/mkconfig.rb')
-rwxr-xr-xtool/mkconfig.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/mkconfig.rb b/tool/mkconfig.rb
index a66a20f..0c16df8 100755
--- a/tool/mkconfig.rb
+++ b/tool/mkconfig.rb
@@ -84,7 +84,7 @@ File.foreach "config.status" do |line|
when /^\$ac_\w+$/; next
end
if /^program_transform_name$/ =~ name
- val.sub!(/\As(\W)(?:\^|\$\$)\1\1(;|\z)/, '')
+ val.sub!(/\As(\\?\W)(?:\^|\${1,2})\1\1(;|\z)/, '')
if val.empty?
$install_name ||= "ruby"
next
@@ -92,7 +92,7 @@ File.foreach "config.status" do |line|
unless $install_name
$install_name = "ruby"
val.gsub!(/\$\$/, '$')
- val.scan(%r[\G[\s;]*(/(?:\\.|[^/])*/)?([sy])(\W)((?:\\.|(?!\3).)*)\3((?:\\.|(?!\3).)*)\3([gi]*)]) do
+ val.scan(%r[\G[\s;]*(/(?:\\.|[^/])*/)?([sy])(\\?\W)((?:\\.|(?!\3).)*)\3((?:\\.|(?!\3).)*)\3([gi]*)]) do
|addr, cmd, sep, pat, rep, opt|
if addr
Regexp.new(addr[/\A\/(.*)\/\z/, 1]) =~ $install_name or next