summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-09-24 01:07:36 +0200
committerHolger Levsen <holger@layer-acht.org>2014-09-24 01:07:36 +0200
commite1fd6ec9efb772a3d9e8d7fd87e3e2827f715d84 (patch)
tree2b5fb75b3546f28cacb5fd90e28e9e1ab86fa3ba /bin
parentf70e6c46f873812ca6a63a2b56a8175df5e80448 (diff)
downloadjenkins.debian.net-e1fd6ec9efb772a3d9e8d7fd87e3e2827f715d84.tar.xz
reproducible: use sourcepackages
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_build.sh28
1 files changed, 14 insertions, 14 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 1926554c..4e2e4bd2 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -19,30 +19,30 @@ COUNT_GOOD=0
COUNT_BAD=0
GOOD=""
BAD=""
-for PACKAGE in "$@" ; do
+for SRCPACKAGE in "$@" ; do
let "COUNT_TOTAL=COUNT_TOTAL+1"
rm b1 b2 -rf
- apt-get source --download-only ${PACKAGE} || true
- if $(sudo pbuilder --build --basetgz /var/cache/pbuilder/base-reproducible.tgz ${PACKAGE}_*.dsc) ; then
+ apt-get source --download-only ${SRCPACKAGE} || true
+ if $(sudo pbuilder --build --basetgz /var/cache/pbuilder/base-reproducible.tgz ${SRCPACKAGE}_*.dsc) ; then
mkdir b1 b2
- dcmd cp /var/cache/pbuilder/result/${PACKAGE}_*.changes b1
- sudo dcmd rm /var/cache/pbuilder/result/${PACKAGE}_*.changes
- sudo pbuilder --build --basetgz /var/cache/pbuilder/base-reproducible.tgz ${PACKAGE}_*.dsc
- dcmd cp /var/cache/pbuilder/result/${PACKAGE}_*.changes b2
- sudo dcmd rm /var/cache/pbuilder/result/${PACKAGE}_*.changes
- cat b1/${PACKAGE}_*.changes
+ dcmd cp /var/cache/pbuilder/result/${SRCPACKAGE}_*.changes b1
+ sudo dcmd rm /var/cache/pbuilder/result/${SRCPACKAGE}_*.changes
+ sudo pbuilder --build --basetgz /var/cache/pbuilder/base-reproducible.tgz ${SRCPACKAGE}_*.dsc
+ dcmd cp /var/cache/pbuilder/result/${SRCPACKAGE}_*.changes b2
+ sudo dcmd rm /var/cache/pbuilder/result/${SRCPACKAGE}_*.changes
+ cat b1/${SRCPACKAGE}_*.changes
TMPFILE=$(mktemp)
./misc.git/diffp b1/*.changes b2/*.changes | tee ${TMPFILE}
if $(grep -qv '^\*\*\*\*\*' ${TMPFILE}) ; then
- figlet ${PACKAGE}
+ figlet ${SRCPACKAGE}
echo
- echo "${PACKAGE} build successfull."
+ echo "${SRCPACKAGE} build successfull."
let "COUNT_GOOD=COUNT_GOOD+1"
- GOOD="${PACKAGE} ${GOOD}"
+ GOOD="${SRCPACKAGE} ${GOOD}"
else
- echo "Warning: ${PACKAGE} failed to build reproducible."
+ echo "Warning: ${SRCPACKAGE} failed to build reproducible."
let "COUNT_BAD=COUNT_BAD+1"
- GOOD="${PACKAGE} ${BAD}"
+ GOOD="${SRCPACKAGE} ${BAD}"
fi
rm b1 b2 ${TMPFILE} -rf
fi