diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-06-09 11:26:07 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-06-09 11:26:07 +0200 |
commit | 4295a88fa4a843f53522b5082ac6f8e95cb3abe1 (patch) | |
tree | e007f756f82cdf7396a37236acd2fff8405290fa /bin | |
parent | 393871b937bf80e4df8d99e4ec64c225e9178895 (diff) | |
download | jenkins.debian.net-4295a88fa4a843f53522b5082ac6f8e95cb3abe1.tar.xz |
reproducible: display coreboot rom sizes correctly
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_coreboot.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/reproducible_coreboot.sh b/bin/reproducible_coreboot.sh index 92dc3ff0..55bee55e 100755 --- a/bin/reproducible_coreboot.sh +++ b/bin/reproducible_coreboot.sh @@ -210,13 +210,14 @@ for i in * ; do let ALL_ROMS+=1 if [ -f $i/coreboot.rom ] ; then call_debbindiff $i - SIZE="$(du -h $i/coreboot.rom | cut -f1)" + SIZE="$(du -h -b $i/coreboot.rom | cut -f1)" + SIZE="$(echo $SIZE/1024|bc)" if [ -f $TMPDIR/$i.html ] ; then mv $TMPDIR/$i.html $BASE/coreboot/dbd/$i.html - write_page " <li><a href=\"dbd/$i.html\"><img src=\"/userContent/static/weather-showers-scattered.png\" alt=\"unreproducible icon\" /> $i</a> ($SIZE) is unreproducible.</li>" + write_page " <li><a href=\"dbd/$i.html\"><img src=\"/userContent/static/weather-showers-scattered.png\" alt=\"unreproducible icon\" /> $i</a> (${SIZE}K) is unreproducible.</li>" else SHASUM=$(sha256sum $i/coreboot.rom|cut -d " " -f1) - write_page " <li><img src=\"/userContent/static/weather-clear.png\" alt=\"reproducible icon\" /> $i ($SHASUM, $SIZE) had no debbindiff output so it's probably reproducible :)</li>" + write_page " <li><img src=\"/userContent/static/weather-clear.png\" alt=\"reproducible icon\" /> $i ($SHASUM, ${SIZE}K) had no debbindiff output so it's probably reproducible :)</li>" let GOOD_ROMS+=1 fi else |