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 04d374ece6..0274794b82 100755
--- a/ext/extmk.rb
+++ b/ext/extmk.rb
@@ -809,9 +809,12 @@ if $configure_only and $command_output
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