X-Git-Url: https://git.jankratochvil.net/?p=massrebuild.git;a=blobdiff_plain;f=debuginfosize;h=39fab7e361d48763623811c2097d4e07e3b19ffa;hp=7778ffb3cfc3f1cc6bfbe103892e65f75ca1cc54;hb=HEAD;hpb=c6f6050ad9716117deda0285572545a2a1621d6a;ds=sidebyside diff --git a/debuginfosize b/debuginfosize index 7778ffb..39fab7e 100755 --- a/debuginfosize +++ b/debuginfosize @@ -3,10 +3,13 @@ set -e # build/znc-1.8.1-2.fc33.src.rpm.rpms [ $# -eq 1 ] which readelf >/dev/null +which llvm-dwarfdump >/dev/null srcrpm=$1 test -e $srcrpm.rpms -test ! -e $srcrpm.rpmsizes +test ! '(' -e $srcrpm.rpmsizes -a -e $srcrpm.dt5.rpm.dttypes ')' test ! -e $srcrpm.rpms.d +: >$srcrpm.dt5.rpm.dttypes +origpwd="$PWD" mkdir $srcrpm.rpms.d pushd $srcrpm.rpms.d >/dev/null rpmsbase=../../`basename $srcrpm` @@ -52,6 +55,7 @@ pushd $srcrpm.rpms.d >/dev/null fi dwztot=$[$dwztot+$dwz] dttot=$[$dttot+$dt] + llvm-dwarfdump -color=0 -debug-types --summarize-types ../dt/$i >>"$origpwd/$srcrpm".dt5.rpm.dttypes done popd >/dev/null popd >/dev/null