sanitize-mac-build-log.sed 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. # 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
  3. # found in the LICENSE file.
  4. # Use this sed script to reduce a Mac build log into something readable.
  5. # Drop uninformative lines.
  6. /^distcc/d
  7. /^Check dependencies/d
  8. /^ setenv /d
  9. /^ cd /d
  10. /^make: Nothing to be done/d
  11. /^$/d
  12. # Xcode prints a short "compiling foobar.o" line followed by the lengthy
  13. # full command line. These deletions drop the command line.
  14. \|^ /Developer/usr/bin/|d
  15. \|^ /Developer/Library/PrivateFrameworks/DevToolsCore\.framework/|d
  16. \|^ /Developer/Library/Xcode/Plug-ins/CoreBuildTasks\.xcplugin/|d
  17. # Drop any goma command lines as well.
  18. \|^ .*/gomacc |d
  19. # And, if you've overridden something from your own bin directory, remove those
  20. # full command lines, too.
  21. \|^ /Users/[^/]*/bin/|d
  22. # There's already a nice note for bindings, don't need the command line.
  23. \|^python scripts/rule_binding\.py|d
  24. # Shorten the "compiling foobar.o" line.
  25. s|^Distributed-CompileC (.*) normal i386 c\+\+ com\.apple\.compilers\.gcc\.4_2| CC \1|
  26. s|^CompileC (.*) normal i386 c\+\+ com\.apple\.compilers\.gcc\.4_2| CC \1|