ruby-changes:45517
From: nobu <ko1@a...>
Date: Fri, 10 Feb 2017 12:58:07 +0900 (JST)
Subject: [ruby-changes:45517] nobu:r57590 (trunk): extmk.rb: split notes
nobu 2017-02-10 12:58:01 +0900 (Fri, 10 Feb 2017) New Revision: 57590 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57590 Log: extmk.rb: split notes * ext/extmk.rb: split notes and echo per lines, for multiple lines messages. [ruby-core:79475] [Bug #13200] Modified files: trunk/ext/extmk.rb Index: ext/extmk.rb =================================================================== --- ext/extmk.rb (revision 57589) +++ ext/extmk.rb (revision 57590) @@ -721,9 +721,12 @@ begin https://github.com/ruby/ruby/blob/trunk/ext/extmk.rb#L721 fails.each do |d, n, err| d = "#{d}:#{n}:" if err - d << " " << err + err.scan(/.+/) do |e| + mf.puts %Q<\t@echo "#{d} #{e.gsub(/["`$^]/, '\\\\\\&')}"> + end + else + mf.puts %Q<\t@echo "#{d}"> end - mf.puts %Q<\t@echo "#{d}"> end mf.puts %Q<\t@echo "*** Fix the problems, then remove these directories and try again if you want."> end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/