summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-02-10 03:58:01 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-02-10 03:58:01 +0000
commitf9694cdb674e9caaa95f847eee9746e648578741 (patch)
tree45a85aee5c7a7e18987e7813f572485954c12866
parent0f9554efa19bc200633c77298af2738098dc333f (diff)
extmk.rb: split notes
* ext/extmk.rb: split notes and echo per lines, for multiple lines messages. [ruby-core:79475] [Bug #13200] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rwxr-xr-xext/extmk.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb
index 54dd776..70fa88b 100755
--- a/ext/extmk.rb
+++ b/ext/extmk.rb
@@ -721,9 +721,12 @@ begin
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