diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/bloatcheck | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/scripts/bloatcheck b/scripts/bloatcheck index d18fbe08..fff4690f 100755 --- a/scripts/bloatcheck +++ b/scripts/bloatcheck @@ -58,6 +58,10 @@ do_bloatcheck() printf "% 71d total\n" "$TOTAL" } -diff -U 0 <(nm --size-sort "$1" | sort -k3,3) \ - <(nm --size-sort "$2" | sort -k3,3) \ - | tail -n +3 | sed -n 's/^\([-+]\)/\1 /p' | sort -k4,4 | do_bloatcheck +DIFF1=`mktemp base.XXXXXXX` +DIFF2=`mktemp bloat.XXXXXXX` +trap "rm $DIFF1 $DIFF2" EXIT +nm --size-sort "$1" | sort -k3,3 > $DIFF1 +nm --size-sort "$2" | sort -k3,3 > $DIFF2 +diff -U 0 $DIFF1 $DIFF2 | tail -n +3 | sed -n 's/^\([-+]\)/\1 /p' \ + | sort -k4,4 | do_bloatcheck |