1#!/bin/echo Use sanitize-win-build-log.sh or sed -f
2
3# Copyright (c) 2012 The Chromium Authors. All rights reserved.
4# 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 Windows build log into something
8# machine-parsable.
9
10# Drop uninformative lines.
11/The operation completed successfully\./d
12
13# Drop parallelization indicators on lines.
14s/^[0-9]\+>//
15
16# Shorten bindings generation lines
17s/^.*"\(perl\|[^"]\+perl\.exe\)".*deprecated_generate_bindings\.pl".*\("[^"]\+\.idl"\).*$/  deprecated_generate_bindings \2/
18s/^.*"python".*idl_compiler\.py".*\("[^"]\+\.idl"\).*$/  idl_compiler \1/
19