From 4d5ce927222f275d2c3e4b23d1822e5b7050c60c Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Tue, 16 Jun 2015 21:35:09 +0200 Subject: reproducible openwrt: improve toolchain+target descriptions --- bin/reproducible_openwrt.sh | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'bin/reproducible_openwrt.sh') diff --git a/bin/reproducible_openwrt.sh b/bin/reproducible_openwrt.sh index 0df87971..4be2d93f 100755 --- a/bin/reproducible_openwrt.sh +++ b/bin/reproducible_openwrt.sh @@ -209,13 +209,17 @@ build_two_times ramips_rt288x_RTN15 "CONFIG_TARGET_ramips=y\nCONFIG_TARGET_ramip # create html about toolchain used # TOOLCHAIN_HTML=$(mktemp --tmpdir=$TMPDIR) -TARGET=$(ls -1d staging_dir/toolchain*|cut -d "-" -f2-|xargs echo) -echo "" > $TOOLCHAIN_HTML +echo "
Contents of build_dir/host/
" > $TOOLCHAIN_HTML +for i in $(ls -1d staging_dir/toolchain*|cut -d "-" -f2-|xargs echo) ; do + echo " " >> $TOOLCHAIN_HTML +done +echo "
Target toolchains built
$i
" >> $TOOLCHAIN_HTML +echo "" >> $TOOLCHAIN_HTML for i in $(ls -1 build_dir/host/) ; do echo " " >> $TOOLCHAIN_HTML done echo "
Contents of build_dir/host/
$i
" >> $TOOLCHAIN_HTML -echo "" >> $TOOLCHAIN_HTML +echo "
Downloaded software built for $TARGET
" >> $TOOLCHAIN_HTML for i in $(ls -1 dl/) ; do echo " " >> $TOOLCHAIN_HTML done @@ -244,13 +248,13 @@ echo "$(date -u) - Running $DBDVERSION on OpenWrt images and packages." echo "=============================================================================" DBD_HTML=$(mktemp --tmpdir=$TMPDIR) # run debbindiff on the images -echo "
Downloaded software
$i
" > $DBD_HTML GOOD_IMAGES=0 ALL_IMAGES=0 create_results_dirs cd $TMPDIR/b1 for i in * ; do cd $i + echo "
Images for $TARGET
" >> $DBD_HTML for j in $(find * -name "*.bin" -o -name "*.squashfs" |sort -u ) ; do let ALL_IMAGES+=1 call_debbindiff $i $j @@ -268,11 +272,10 @@ for i in * ; do fi done cd .. + echo "
Images for $i
" >> $DBD_HTML done -echo " " >> $DBD_HTML GOOD_PERCENT_IMAGES=$(echo "scale=1 ; ($GOOD_IMAGES*100/$ALL_IMAGES)" | bc) # run debbindiff on the packages -echo " " >> $DBD_HTML GOOD_PACKAGES=0 ALL_PACKAGES=0 create_results_dirs @@ -280,6 +283,7 @@ cd $TMPDIR/b1 tree . for i in * ; do cd $i + echo "
Packages for $TARGET
" >> $DBD_HTML for j in $(find * -name "*.ipk" |sort -u ) ; do let ALL_PACKAGES+=1 call_debbindiff $i $j @@ -297,8 +301,8 @@ for i in * ; do fi done cd .. + echo "
Packages for $i
" >> $DBD_HTML done -echo " " >> $DBD_HTML GOOD_PERCENT_PACKAGES=$(echo "scale=1 ; ($GOOD_PACKAGES*100/$ALL_PACKAGES)" | bc) # are we there yet? if [ "$GOOD_PERCENT_IMAGES" = "100.0" ] || [ "$GOOD_PERCENT_PACKAGES" = "100.0" ]; then -- cgit v1.2.3-54-g00ecf