summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_build_arch_pkg.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-10-16 17:36:40 +0200
committerHolger Levsen <holger@layer-acht.org>2015-10-16 17:36:40 +0200
commitbbd79f2dd7e53302a994e8018735956b9da9409b (patch)
tree06b05a6a4fb507a52df4de660d6c108c3aa7f5fa /bin/reproducible_build_arch_pkg.sh
parenta894f64f6042866ab4c208be51e2ac5679c662f6 (diff)
downloadjenkins.debian.net-bbd79f2dd7e53302a994e8018735956b9da9409b.tar.xz
reproducible arch: run diffoscope and publish the result
Diffstat (limited to 'bin/reproducible_build_arch_pkg.sh')
-rwxr-xr-xbin/reproducible_build_arch_pkg.sh13
1 files changed, 10 insertions, 3 deletions
diff --git a/bin/reproducible_build_arch_pkg.sh b/bin/reproducible_build_arch_pkg.sh
index 9760989a..254bc1c8 100755
--- a/bin/reproducible_build_arch_pkg.sh
+++ b/bin/reproducible_build_arch_pkg.sh
@@ -7,6 +7,9 @@ DEBUG=false
. /srv/jenkins/bin/common-functions.sh
common_init "$@"
+# common code
+. /srv/jenkins/bin/reproducible_common.sh
+
set -e
cleanup_all() {
@@ -120,13 +123,13 @@ elif [ "$1" = "1" ] || [ "$1" = "2" ] ; then
TMPDIR="$3"
[ -d $TMPDIR ] || mkdir -p $TMPDIR
cd $TMPDIR
- mkdir b$MODE
+ mkdir -p b$MODE/archlinux/
if [ "$MODE" = "1" ] ; then
first_build
else
second_build
fi
- mv -v /tmp/$SRCPACKAGE $TMPDIR/b$mode
+ mv -v /tmp/$SRCPACKAGE $TMPDIR/b$MODE/archlinux/
echo "$(date -u) - build #$MODE for $SRCPACKAGE on $HOSTNAME done."
exit 0
fi
@@ -136,7 +139,11 @@ fi
#
SRCPACKAGE=sudo
build_rebuild
-#call_diffoscope
+call_diffoscope archlinux $SRCPACKAGE
+if [ -f $TMPDIR/archlinux/$SRCPACKAGE.html ] ; then
+ cp $TMPDIR/archlinux/$SRCPACKAGE.html $BASE/archlinux
+ echo "$(date -u) - $REPRODUCIBLE_URL/archlinux/$SRCPACKAGE.html updated."
+fi
cd
cleanup_all