diff --git a/ChangeLog b/ChangeLog index 12e303728f..6877e57c7e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Oct 17 04:20:22 2011 Nobuyoshi Nakada + + * mkconfig.rb: fix for continued lines. based on a patch from + Marcus Rueckert at [ruby-core:20420]. + Mon Oct 17 04:19:39 2011 Yukihiro Matsumoto * numeric.c (flo_cmp): Infinity is greater than any bignum diff --git a/mkconfig.rb b/mkconfig.rb index f662c825e3..bab3012c65 100755 --- a/mkconfig.rb +++ b/mkconfig.rb @@ -56,14 +56,13 @@ File.foreach "config.status" do |line| continued_name = name next end - when /^"(.+)"\s*(\\)?$/ + when /^"(.*)"\s*(\\)?$/ if continued_line continued_line << $1 - unless $2 - val = continued_line.join("") - name = continued_name - continued_line = nil - end + next if $2 + val = continued_line.join("") + name = continued_name + continued_line = nil end when /^(?:ac_given_)?INSTALL=(.*)/ v_fast << " CONFIG[\"INSTALL\"] = " + $1 + "\n"