summaryrefslogtreecommitdiff
path: root/mkconfig.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-04-01 09:44:56 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-04-01 09:44:56 +0000
commitaf9459a46934f2ee30ce7d9bc9e059200340244d (patch)
treef7aec5e28663c166df06c4eab67003b0c57ed796 /mkconfig.rb
parent3e845f19e05b5048a0430a8ecd1b5dd6e36ab044 (diff)
* mkconfig.rb: ignores version numbers in config.status. replaces
all $$s in program_transform_name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mkconfig.rb')
-rwxr-xr-xmkconfig.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/mkconfig.rb b/mkconfig.rb
index 67cc3fd1ea..e5d9c806ba 100755
--- a/mkconfig.rb
+++ b/mkconfig.rb
@@ -76,11 +76,12 @@ File.foreach "config.status" do |line|
next if $install_name and /^RUBY_INSTALL_NAME$/ =~ name
next if $so_name and /^RUBY_SO_NAME$/ =~ name
next if /^(?:X|(?:MINI|RUN)RUBY$)/ =~ name
+ next if /^(?:MAJOR|MINOR|TEENY)$/ =~ name
arch = val if name == "arch"
if /^program_transform_name$/ =~ name and /^s(\\?.)(.*)\1$/ =~ val
next if $install_name
sep = %r"#{Regexp.quote($1)}"
- ptn = $2.sub(/\$\$/, '$').split(sep, 2)
+ ptn = $2.gsub(/\$\$/, '$').split(sep, 2)
name = "ruby_install_name"
val = "ruby".sub(/#{ptn[0]}/, ptn[1])
end