* 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
This commit is contained in:
nobu 2009-04-01 09:44:56 +00:00
parent 3e845f19e0
commit af9459a469
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Wed Apr 1 18:44:53 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* mkconfig.rb: ignores version numbers in config.status. replaces
all $$s in program_transform_name.
Wed Apr 1 15:12:21 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* Makefile.in (.c.i): use CPP instead of CC, since gcc -E can'

View File

@ -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