From 4c47a90894b22e4d8292add04b44b2ea458c867c Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 8 Dec 2008 18:21:47 +0000 Subject: * mkconfig.rb: fix for continued lines. based on a patch from Marcus Rueckert at [ruby-core:20420]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- mkconfig.rb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'mkconfig.rb') diff --git a/mkconfig.rb b/mkconfig.rb index e56af5d04..d6a9d0398 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" -- cgit