Index: build/sanitize-mac-build-log.sed |
diff --git a/build/sanitize-mac-build-log.sed b/build/sanitize-mac-build-log.sed |
new file mode 100755 |
index 0000000000000000000000000000000000000000..57fd8bed08dd3e78ac2c0b0c57fe82f6b7956b36 |
--- /dev/null |
+++ b/build/sanitize-mac-build-log.sed |
@@ -0,0 +1,18 @@ |
+#!/bin/sed -f |
+ |
Mark Mentovai
2010/12/13 18:54:13
Give me some stupid boilerplate lice.
Also, make
|
+# Use this sed script to reduce a Mac build log into something readable. |
+ |
+# Drop uninformative lines. |
+/^distcc/d |
+/^Check dependencies/d |
+/^ setenv /d |
+/^ cd /d |
+/^make: nothing to be done/d |
+ |
+# Xcode prints a short "compiling foobar.o" line followed by the lengthy |
+# full command line. These deletions drop the command line. |
+\|^ /Developer/usr/bin/|d |
+ |
+# Shorten the "compiling foobar.o" line. |
+s|^Distributed-CompileC \(.*\) normal i386 c++ com.apple.compilers.gcc.4_2| CC \1| |
+s|^CompileC \(.*\) normal i386 c++ com.apple.compilers.gcc.4_2| CC \1| |