OLD | NEW |
| 1 #!/bin/echo Use sanitize-mac-build-log.sh or sed -f |
| 2 |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 5 # found in the LICENSE file. |
4 | 6 |
5 # Use this sed script to reduce a Mac build log into something readable. | 7 # Use this sed script to reduce a Mac build log into something readable. |
6 | 8 |
7 # Drop uninformative lines. | 9 # Drop uninformative lines. |
8 /^distcc/d | 10 /^distcc/d |
9 /^Check dependencies/d | 11 /^Check dependencies/d |
10 /^ setenv /d | 12 /^ setenv /d |
11 /^ cd /d | 13 /^ cd /d |
12 /^make: Nothing to be done/d | 14 /^make: Nothing to be done/d |
13 /^$/d | 15 /^$/d |
14 | 16 |
15 # Xcode prints a short "compiling foobar.o" line followed by the lengthy | 17 # Xcode prints a short "compiling foobar.o" line followed by the lengthy |
16 # full command line. These deletions drop the command line. | 18 # full command line. These deletions drop the command line. |
17 \|^ /Developer/usr/bin/|d | 19 \|^ /Developer/usr/bin/|d |
18 \|^ /Developer/Library/PrivateFrameworks/DevToolsCore\.framework/|d | 20 \|^ /Developer/Library/PrivateFrameworks/DevToolsCore.framework/|d |
19 \|^ /Developer/Library/Xcode/Plug-ins/CoreBuildTasks\.xcplugin/|d | 21 \|^ /Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/|d |
20 | 22 |
21 # Drop any goma command lines as well. | 23 # Drop any goma command lines as well. |
22 \|^ .*/gomacc |d | 24 \|^ .*/gomacc |d |
23 | 25 |
24 # And, if you've overridden something from your own bin directory, remove those | 26 # And, if you've overridden something from your own bin directory, remove those |
25 # full command lines, too. | 27 # full command lines, too. |
26 \|^ /Users/[^/]*/bin/|d | 28 \|^ /Users/[^/]*/bin/|d |
27 | 29 |
28 # There's already a nice note for bindings, don't need the command line. | 30 # There's already a nice note for bindings, don't need the command line. |
29 \|^python scripts/rule_binding\.py|d | 31 \|^python scripts/rule_binding.py|d |
30 | 32 |
31 # Shorten the "compiling foobar.o" line. | 33 # Shorten the "compiling foobar.o" line. |
32 s|^Distributed-CompileC (.*) normal i386 c\+\+ com\.apple\.compilers\.gcc\.4_2|
CC \1| | 34 s|^Distributed-CompileC \(.*\) normal i386 c++ com.apple.compilers.gcc.4_2| C
C \1| |
33 s|^CompileC (.*) normal i386 c\+\+ com\.apple\.compilers\.gcc\.4_2| CC \1| | 35 s|^CompileC \(.*\) normal i386 c++ com.apple.compilers.gcc.4_2| CC \1| |
OLD | NEW |