sanitize-mac-build-log.sed 1.2 KB

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