blob: 3312eac5a86cac40842f27fdc4dca4158e90b94f [file] [log] [blame]
[email protected]03457592013-07-13 11:54:281#!/bin/echo Use sanitize-mac-build-log.sh or sed -f
2
[email protected]b5b99a92012-04-23 03:24:123# Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]2d7c6482010-12-13 18:57:264# Use of this source code is governed by a BSD-style license that can be
5# found in the LICENSE file.
6
7# Use this sed script to reduce a Mac build log into something readable.
8
9# Drop uninformative lines.
10/^distcc/d
11/^Check dependencies/d
12/^ setenv /d
13/^ cd /d
[email protected]8ccdb142010-12-13 23:03:2414/^make: Nothing to be done/d
[email protected]20e4e242011-02-22 17:25:4215/^$/d
[email protected]2d7c6482010-12-13 18:57:2616
17# Xcode prints a short "compiling foobar.o" line followed by the lengthy
18# full command line. These deletions drop the command line.
19\|^ /Developer/usr/bin/|d
[email protected]03457592013-07-13 11:54:2820\|^ /Developer/Library/PrivateFrameworks/DevToolsCore.framework/|d
21\|^ /Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/|d
[email protected]20e4e242011-02-22 17:25:4222
[email protected]472e9472011-06-10 17:13:4423# Drop any goma command lines as well.
24\|^ .*/gomacc |d
25
[email protected]20e4e242011-02-22 17:25:4226# And, if you've overridden something from your own bin directory, remove those
27# full command lines, too.
28\|^ /Users/[^/]*/bin/|d
29
30# There's already a nice note for bindings, don't need the command line.
[email protected]03457592013-07-13 11:54:2831\|^python scripts/rule_binding.py|d
[email protected]2d7c6482010-12-13 18:57:2632
33# Shorten the "compiling foobar.o" line.
[email protected]03457592013-07-13 11:54:2834s|^Distributed-CompileC \(.*\) normal i386 c++ com.apple.compilers.gcc.4_2| CC \1|
35s|^CompileC \(.*\) normal i386 c++ com.apple.compilers.gcc.4_2| CC \1|