summaryrefslogtreecommitdiff
path: root/ext/configsub.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/configsub.rb')
-rw-r--r--ext/configsub.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/configsub.rb b/ext/configsub.rb
index 315cdaf868..0dc525515a 100644
--- a/ext/configsub.rb
+++ b/ext/configsub.rb
@@ -10,9 +10,9 @@ BEGIN {
CONFIG['TEENY'] = $3
end
- File.foreach($config || "config.status") do |$_|
- next if /^#/
- if /^s%@(\w+)@%(.*)%g/
+ File.foreach($config || "config.status") do |line|
+ next if /^#/ =~ line
+ if /^s%@(\w+)@%(.*)%g/ =~ line
name = $1
val = $2 || ""
next if /^(INSTALL|DEFS|configure_input|srcdir)$/ =~ name