OLD | NEW |
1 #!/bin/echo Use sanitize-mac-build-log.sh or sed -f | 1 #!/bin/echo Use sanitize-mac-build-log.sh or sed -f |
2 | 2 |
3 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2010 The Chromium Authors. All rights reserved. |
4 # 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 |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 # 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. |
8 | 8 |
9 # Drop uninformative lines. | 9 # Drop uninformative lines. |
10 /^distcc/d | 10 /^distcc/d |
11 /^Check dependencies/d | 11 /^Check dependencies/d |
12 /^ setenv /d | 12 /^ setenv /d |
13 /^ cd /d | 13 /^ cd /d |
14 /^make: Nothing to be done/d | 14 /^make: Nothing to be done/d |
15 | 15 |
16 # Xcode prints a short "compiling foobar.o" line followed by the lengthy | 16 # Xcode prints a short "compiling foobar.o" line followed by the lengthy |
17 # full command line. These deletions drop the command line. | 17 # full command line. These deletions drop the command line. |
18 \|^ /Developer/usr/bin/|d | 18 \|^ /Developer/usr/bin/|d |
19 | 19 |
20 # Shorten the "compiling foobar.o" line. | 20 # Shorten the "compiling foobar.o" line. |
21 s|^Distributed-CompileC \(.*\) normal i386 c++ com.apple.compilers.gcc.4_2| C
C \1| | 21 s|^Distributed-CompileC \(.*\) normal i386 c++ com.apple.compilers.gcc.4_2| C
C \1| |
22 s|^CompileC \(.*\) normal i386 c++ com.apple.compilers.gcc.4_2| CC \1| | 22 s|^CompileC \(.*\) normal i386 c++ com.apple.compilers.gcc.4_2| CC \1| |
OLD | NEW |