From 95586d550459e912a63899705031198b94f28bb2 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Tue, 23 Sep 2014 19:10:46 +0200 Subject: reproducible: more progress --- bin/reproducible_build.sh | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) (limited to 'bin') diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index 641a46d7..e8733435 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -6,13 +6,26 @@ . /srv/jenkins/bin/common-functions.sh common_init "$@" -PACKAGE=$1 -apt-get source --download-only ${PACKAGE} -sudo pbuilder --build --basetgz /var/cache/pbuilder/base-reproducible.tgz ${PACKAGE}_*.dsc -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 +if [ -d misc.git ] ; then + cd misc.git + git pull + cd .. +else + git clone git://git.debian.org/git/reproducible/misc.git misc.git +fi +for PACKAGE in "$@" ; do + rm b1 b2 -rf + apt-get source --download-only ${PACKAGE} + sudo pbuilder --build --basetgz /var/cache/pbuilder/base-reproducible.tgz ${PACKAGE}_*.dsc + 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 + + ./misc.git/diffp b1/*.changes b2/*.changes + + rm b1 b2 -rf +done -- cgit v1.2.3-70-g09d2