michael@0: #!/bin/echo Use sanitize-mac-build-log.sh or sed -f michael@0: michael@0: # Copyright (c) 2012 The Chromium Authors. All rights reserved. michael@0: # Use of this source code is governed by a BSD-style license that can be michael@0: # found in the LICENSE file. michael@0: michael@0: # Use this sed script to reduce a Mac build log into something readable. michael@0: michael@0: # Drop uninformative lines. michael@0: /^distcc/d michael@0: /^Check dependencies/d michael@0: /^ setenv /d michael@0: /^ cd /d michael@0: /^make: Nothing to be done/d michael@0: /^$/d michael@0: michael@0: # Xcode prints a short "compiling foobar.o" line followed by the lengthy michael@0: # full command line. These deletions drop the command line. michael@0: \|^ /Developer/usr/bin/|d michael@0: \|^ /Developer/Library/PrivateFrameworks/DevToolsCore.framework/|d michael@0: \|^ /Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/|d michael@0: michael@0: # Drop any goma command lines as well. michael@0: \|^ .*/gomacc |d michael@0: michael@0: # And, if you've overridden something from your own bin directory, remove those michael@0: # full command lines, too. michael@0: \|^ /Users/[^/]*/bin/|d michael@0: michael@0: # There's already a nice note for bindings, don't need the command line. michael@0: \|^python scripts/rule_binding.py|d michael@0: michael@0: # Shorten the "compiling foobar.o" line. michael@0: s|^Distributed-CompileC \(.*\) normal i386 c++ com.apple.compilers.gcc.4_2| CC \1| michael@0: s|^CompileC \(.*\) normal i386 c++ com.apple.compilers.gcc.4_2| CC \1|