2 # Copyright 2013 The Tor Project, Inc.
3 # See LICENSE for licensing information.
5 # cov-diff -- compare two directories full of gcov files.
10 for B
in "$DIRB"/*; do
11 A
=$DIRA/$
(basename "$B")
13 perl
-pe 's/^\s*\!*\d+(\*?):/ 1$1:/; s/^([^:]+:)[\d\s]+:/$1/; s/^ *-:(Runs|Programs):.*//;' "$A" > "$A.tmp"
15 cat /dev
/null
> "$A.tmp"
17 perl
-pe 's/^\s*\!*\d+(\*?):/ 1$1:/; s/^([^:]+:)[\d\s]+:/$1/; s/^ *-:(Runs|Programs):.*//;' "$B" > "$B.tmp"
18 diff -u "$A.tmp" "$B.tmp" |perl
-pe 's/^((?:\+\+\+|---)(?:.*tmp))\s+.*/$1/;'