diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-12-28 05:00:47 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-12-28 05:00:47 +0000 |
commit | 08ec02b92b45464df3dbf79022bb15b853ab0428 (patch) | |
tree | 571574af57859810d146f28177c240f1fe04e4f7 /ext/extmk.rb.in | |
parent | ceec42bf8c4e350d02d11b84adf9b8ebf7b4af47 (diff) |
changes from personal modifies -- matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/extmk.rb.in')
-rw-r--r-- | ext/extmk.rb.in | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/extmk.rb.in b/ext/extmk.rb.in index ff6f04b4b6..52debd47cc 100644 --- a/ext/extmk.rb.in +++ b/ext/extmk.rb.in @@ -654,15 +654,15 @@ $static_ext = {} for setup in ["@setup@", "#{$top_srcdir}/ext/@setup@"] if File.file? setup f = open(setup) - while f.gets() - $_.chomp! - sub!(/#.*$/, '') - next if /^\s*$/ - if /^option +nodynamic/ + while line = f.gets() + line.chomp! + line.sub!(/#.*$/, '') + next if /^\s*$/ =~ line + if /^option +nodynamic/ =~ line $nodynamic = true next end - target = $_.split[0] + target = line.split[0] target = target.downcase if /mswin32/ =~ RUBY_PLATFORM $static_ext[target] = true end |