summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_build.sh8
-rwxr-xr-xbin/reproducible_setup.sh6
2 files changed, 9 insertions, 5 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 6a5f8b3e..0244ee14 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -31,7 +31,6 @@ for PACKAGE in "$@" ; do
dcmd cp /var/cache/pbuilder/result/${PACKAGE}_*.changes b2
sudo dcmd rm /var/cache/pbuilder/result/${PACKAGE}_*.changes
cat b1/${PACKAGE}_*.changes
-
TMPFILE=$(mktemp)
./misc.git/diffp b1/*.changes b2/*.changes | tee ${TMPFILE}
if $(grep -qv '^\*\*\*\*\*' ${TMPFILE}) ; then
@@ -45,10 +44,15 @@ for PACKAGE in "$@" ; do
let "COUNT_BAD=COUNT_BAD+1"
GOOD="${PACKAGE} ${BAD}"
fi
-
rm b1 b2 ${TMPFILE} -rf
+
+ echo "=============================================================="
+ echo "$COUNT_TOTAL of ${#@} done."
+ echo "=============================================================="
done
+set +x
+echo
echo
echo "$COUNT_TOTAL packages attempted to build in total."
echo "$COUNT_GOOD packages successfully built reproducible: ${GOOD}"
diff --git a/bin/reproducible_setup.sh b/bin/reproducible_setup.sh
index ad0e6cd2..59cb99e0 100755
--- a/bin/reproducible_setup.sh
+++ b/bin/reproducible_setup.sh
@@ -7,7 +7,7 @@
common_init "$@"
TMPFILE=$(mktemp)
-cat > $TMPFILE <<- EOF
+cat > ${TMPFILE} <<- EOF
echo 'deb http://reproducible.alioth.debian.org/debian/ ./' > /etc/apt/sources.list.d/reproducible.list
apt-get update
echo "Warning: Usage of --force-yes to override the apt authentication warning. Don't do this."
@@ -16,5 +16,5 @@ EOF
sudo rm /var/cache/pbuilder/base-reproducible.tgz || true
sudo pbuilder --create --basetgz /var/cache/pbuilder/base-reproducible.tgz --distribution sid
-sudo pbuilder --execute --save-after-exec --basetgz /var/cache/pbuilder/base-reproducible.tgz -- $TMPFILE
-rm $TMPFILE
+sudo pbuilder --execute --save-after-exec --basetgz /var/cache/pbuilder/base-reproducible.tgz -- ${TMPFILE}
+rm ${TMPFILE}