summaryrefslogtreecommitdiff
path: root/ext/extmk.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/extmk.rb')
-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