ruby-changes:27077
From: nobu <ko1@a...>
Date: Thu, 7 Feb 2013 16:29:54 +0900 (JST)
Subject: [ruby-changes:27077] nobu:r39129 (trunk): mkconfig.rb: fix concatenated lines
nobu 2013-02-07 16:21:30 +0900 (Thu, 07 Feb 2013) New Revision: 39129 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39129 Log: mkconfig.rb: fix concatenated lines * tool/mkconfig.rb: see if a variable is set before setting it to fix concatenated lines. Modified files: trunk/tool/mkconfig.rb Index: tool/mkconfig.rb =================================================================== --- tool/mkconfig.rb (revision 39128) +++ tool/mkconfig.rb (revision 39129) @@ -113,6 +113,7 @@ File.foreach "config.status" do |line| https://github.com/ruby/ruby/blob/trunk/tool/mkconfig.rb#L113 end end end + eq = win32 && vars[name] ? '<< "\n"' : '=' vars[name] = val if name == "configure_args" val.gsub!(/ +(?!-)/, "=") if win32 @@ -131,7 +132,7 @@ File.foreach "config.status" do |line| https://github.com/ruby/ruby/blob/trunk/tool/mkconfig.rb#L132 val.sub!(/universal/, %q[#{arch && universal[/(?:\A|\s)#{Regexp.quote(arch)}=(\S+)/, 1] || '\&'}]) end end - v = " CONFIG[\"#{name}\"] #{win32 && vars[name] ? '<< "\n"' : '='} #{val}\n" + v = " CONFIG[\"#{name}\"] #{eq} #{val}\n" if fast[name] v_fast << v else -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/