diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-02-10 03:58:01 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-02-10 03:58:01 +0000 |
commit | f9694cdb674e9caaa95f847eee9746e648578741 (patch) | |
tree | 45a85aee5c7a7e18987e7813f572485954c12866 /ext/extmk.rb | |
parent | 0f9554efa19bc200633c77298af2738098dc333f (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
Diffstat (limited to 'ext/extmk.rb')
-rwxr-xr-x | ext/extmk.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb index 54dd776e93..70fa88b87e 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 |