From 4295a88fa4a843f53522b5082ac6f8e95cb3abe1 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Tue, 9 Jun 2015 11:26:07 +0200 Subject: reproducible: display coreboot rom sizes correctly --- bin/reproducible_coreboot.sh | 7 ++++--- 1 file 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 "
  • \"unreproducible $i ($SIZE) is unreproducible.
  • " + write_page "
  • \"unreproducible $i (${SIZE}K) is unreproducible.
  • " else SHASUM=$(sha256sum $i/coreboot.rom|cut -d " " -f1) - write_page "
  • \"reproducible $i ($SHASUM, $SIZE) had no debbindiff output so it's probably reproducible :)
  • " + write_page "
  • \"reproducible $i ($SHASUM, ${SIZE}K) had no debbindiff output so it's probably reproducible :)
  • " let GOOD_ROMS+=1 fi else -- cgit v1.2.3-70-g09d2