From f795aaea7ccbb94c1163cb653174dc421ba52953 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sat, 13 Jun 2015 02:56:40 +0200 Subject: reproducible openwrt: rename *-squashfs*.bin to *.bin.squashfs (needed for debbindiff 20) --- bin/reproducible_openwrt.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/reproducible_openwrt.sh b/bin/reproducible_openwrt.sh index 6bfb3e8a..0ddb0472 100755 --- a/bin/reproducible_openwrt.sh +++ b/bin/reproducible_openwrt.sh @@ -73,7 +73,15 @@ save_openwrt_results(){ # save images mkdir -p $TMPDIR/$RUN/$i for j in $(find . -name "*.bin" -exec basename \{\} \; ) ; do - cp -p $j $TMPDIR/$RUN/$i/ + # rename *-squashfs*.bin to *.bin.squashfs + # (needed for debbindiff 20) + if (echo $j| grep -q -- '-squashfs') ; then + k=$(echo $j| sed "s#-squashfs##g") + k=${j}.squashfs + else + k=$j + fi + cp -p $j $TMPDIR/$RUN/$i/$k done # save packages cd packages @@ -229,7 +237,7 @@ create_results_dirs cd $TMPDIR/b1 for i in * ; do cd $i - for j in $(find . -name "*.bin" -exec basename \{\} \; |sort -u ) ; do + for j in $(find . -name "*.bin" -o -name "*.squashfs" -exec basename \{\} \; |sort -u ) ; do let ALL_IMAGES+=1 call_debbindiff $i $j SIZE="$(du -h -b $j | cut -f1)" -- cgit v1.2.3-70-g09d2