media/webrtc/trunk/build/sanitize-mac-build-log.sed

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/media/webrtc/trunk/build/sanitize-mac-build-log.sed	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,35 @@
     1.4 +#!/bin/echo Use sanitize-mac-build-log.sh or sed -f
     1.5 +
     1.6 +# Copyright (c) 2012 The Chromium Authors. All rights reserved.
     1.7 +# Use of this source code is governed by a BSD-style license that can be
     1.8 +# found in the LICENSE file.
     1.9 +
    1.10 +# Use this sed script to reduce a Mac build log into something readable.
    1.11 +
    1.12 +# Drop uninformative lines.
    1.13 +/^distcc/d
    1.14 +/^Check dependencies/d
    1.15 +/^    setenv /d
    1.16 +/^    cd /d
    1.17 +/^make: Nothing to be done/d
    1.18 +/^$/d
    1.19 +
    1.20 +# Xcode prints a short "compiling foobar.o" line followed by the lengthy
    1.21 +# full command line.  These deletions drop the command line.
    1.22 +\|^    /Developer/usr/bin/|d
    1.23 +\|^    /Developer/Library/PrivateFrameworks/DevToolsCore.framework/|d
    1.24 +\|^    /Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/|d
    1.25 +
    1.26 +# Drop any goma command lines as well.
    1.27 +\|^    .*/gomacc |d
    1.28 +
    1.29 +# And, if you've overridden something from your own bin directory, remove those
    1.30 +# full command lines, too.
    1.31 +\|^    /Users/[^/]*/bin/|d
    1.32 +
    1.33 +# There's already a nice note for bindings, don't need the command line.
    1.34 +\|^python scripts/rule_binding.py|d
    1.35 +
    1.36 +# Shorten the "compiling foobar.o" line.
    1.37 +s|^Distributed-CompileC \(.*\) normal i386 c++ com.apple.compilers.gcc.4_2|    CC \1|
    1.38 +s|^CompileC \(.*\) normal i386 c++ com.apple.compilers.gcc.4_2|    CC \1|

mercurial