summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_build.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-09-23 23:31:26 +0200
committerHolger Levsen <holger@layer-acht.org>2014-09-23 23:31:26 +0200
commitac53cf36d5c5f9941e1256cc31fa76f961131146 (patch)
tree2e7dc52ce968f1fbf72e65f0868eeca21d6c61d4 /bin/reproducible_build.sh
parentc9f61cb51d808248be2614580f6e050bcb4f6adc (diff)
downloadjenkins.debian.net-ac53cf36d5c5f9941e1256cc31fa76f961131146.tar.xz
reproducible: use patched discount package. dont use patched proot anymore. count good+back packages.
Diffstat (limited to 'bin/reproducible_build.sh')
-rwxr-xr-xbin/reproducible_build.sh21
1 files changed, 20 insertions, 1 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 07f4056f..23038937 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -14,7 +14,11 @@ else
git clone git://git.debian.org/git/reproducible/misc.git misc.git
fi
+COUNT_TOTAL=0
+COUNT_GOOD=0
+COUNT_BAD=0
for PACKAGE in "$@" ; do
+ let "COUNT_TOTAL=COUNT_TOTAL+1"
rm b1 b2 -rf
apt-get source --download-only ${PACKAGE}
sudo pbuilder --build --basetgz /var/cache/pbuilder/base-reproducible.tgz ${PACKAGE}_*.dsc
@@ -27,7 +31,22 @@ for PACKAGE in "$@" ; do
TMPFILE=$(mktemp)
./misc.git/diffp b1/*.changes b2/*.changes | tee $TMPFILE
- grep -qv '^\*\*\*\*\*' $TMPFILE && figlet ${PACKAGE}_&& echo && echo "${PACKAGE} build successfull."
+ if grep -qv '^\*\*\*\*\*' $TMPFILE ; then
+ figlet ${PACKAGE}
+ echo
+ echo "${PACKAGE} build successfull."
+ let "COUNT_GOOD=COUNT_GOOD+1"
+ else
+ echo "Warning: ${PACKAGE} failed to build reproducible."
+ let "COUNT_BAD=COUNT_BAD+1"
+ fi
rm b1 b2 $TMPFILE -rf
done
+
+echo
+echo "$COUNT_TOTAL packages attempted to build in total."
+echo "$COUNT_GOOD packages successfully built reproducible."
+echo "$COUNT_GOOD packages failed to built reproducible."
+echo
+echo "The full list of packages: $@"