Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1491)

Unified Diff: build/sanitize-mac-build-log.sed

Issue 5678006: Check in a quick sed script to reduce Mac build logs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/build
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..a486d91a2a17dfe0fa8f3301dd3a33c484f01a3f
--- /dev/null
+++ b/build/sanitize-mac-build-log.sed
@@ -0,0 +1,16 @@
+#!/bin/sed -f
+
+# 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
+
+# Xcode prints a short "compiling foobar.o" line followed by the lengthy
+# full command line. These deletions drop the command line.
+\|^ /Developer/usr/bin/distcc |d
+\|^ /Developer/usr/bin/g++|d
Mark Mentovai 2010/12/10 22:36:18 I think Xcode always invokes gcc (with -x) when di
+
+s|^Distributed-CompileC \(.*\) normal i386 c++ com.apple.compilers.gcc.4_2|CC \1|
Mark Mentovai 2010/12/10 22:36:18 Match without Distributed- too, for the same reaso
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698