diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-02 13:23:02 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-02 13:23:02 +0000 |
| commit | 8aa455315eada56eb2e80c912ec86a5bde9b2306 (patch) | |
| tree | b6fae6f84c470a847ce32208ce45ee9c69af046d /mkconfig.rb | |
| parent | 5a3cf6d1ec8fb430f459149bc7b7b60b079e4eec (diff) | |
| download | ruby-8aa455315eada56eb2e80c912ec86a5bde9b2306.tar.gz ruby-8aa455315eada56eb2e80c912ec86a5bde9b2306.tar.xz ruby-8aa455315eada56eb2e80c912ec86a5bde9b2306.zip | |
* lib/forwardable.rb: RDoc typo fix from Jan Svitok
<jan.svitok at gmail.com>. [ruby-core:07943]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mkconfig.rb')
| -rw-r--r-- | mkconfig.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mkconfig.rb b/mkconfig.rb index 1208606aa..74db915ce 100644 --- a/mkconfig.rb +++ b/mkconfig.rb @@ -38,9 +38,11 @@ vars = {} has_version = false File.foreach "config.status" do |line| next if /^#/ =~ line - if /^s[%,]@program_transform_name@[%,]s,(.*)/ =~ line + line.gsub!(/\|#_!!_#\|/, '') + if /^s[%,]@program_transform_name@[%,]s(\\?.)(.*)\1[%,]/ =~ line next if $install_name - ptn = $1.sub(/\$\$/, '$').split(/,/) #' + sep = Regexp.quote($1) + ptn = $2.sub(/\$\$/, '$').split(/#{sep}/,2) v_fast << " CONFIG[\"ruby_install_name\"] = \"" + "ruby".sub(/#{ptn[0]}/,ptn[1]) + "\"\n" elsif /^s[%,]@(\w+)@[%,](.*)[%,]/ =~ line name = $1 |
