Debian Codegraph @

scripts/mkdiff_obj_bloat

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2
3 testscip-shell system . . test. -d "$1" || exit 1
4 testscip-shell system . . test. -d "$2" || exit 1
5
6 {
7 (
8 cd "$1" || exit 1
9 findscip-shell system . . find. -name '*.o' -o -name '*.os' # -o -name '*.so'
10 )
11 (
12 cd "$2" || exit 1
13 findscip-shell system . . find. -name '*.o' -o -name '*.os' # -o -name '*.so'
14 )
15 } | sedscip-shell system . . sed. 's:^\./::' | sortscip-shell system . . sort. | uniqscip-shell system . . uniq. | \
16 tee LST | \
17 (
18 IFS=''
19 while read -r oname; do
20 if ! testscip-shell system . . test. -f "$1/$oname"; then
21 echoscip-shell system . . echo. "Only $2/$oname"
22 continue
23 fi
24 if ! testscip-shell system . . test. -f "$2/$oname"; then
25 echoscip-shell system . . echo. "Only $1/$oname"
26 continue
27 fi
28 $1/scripts/bloat-o-meter $1/$oname $2/$oname | grepscip-shell system . . grep. 'otal: 0 byte' >/dev/nullscip-shell filesystem . . `/dev/null`. && continue
29 $1/scripts/bloat-o-meter $1/$oname $2/$oname
30 sizescip-shell system . . size. $1/$oname $2/$oname
31 echoscip-shell system . . echo.
32 done
33 )