summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-09-23 22:58:35 +0000
committerHolger Levsen <holger@layer-acht.org>2014-09-23 22:58:35 +0000
commite87fe7be08cb07a481c200802bbe4f93053506fd (patch)
tree35663ffd99f129b412e3c8dc122cd8daf873caf9 /bin
parent67a9f9997a82a61b0ecdd65e1240ea86d1686451 (diff)
downloadjenkins.debian.net-e87fe7be08cb07a481c200802bbe4f93053506fd.tar.xz
reproducible: misc fixes. new job: build-essential.
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}