diff options
author | Holger Levsen <holger@layer-acht.org> | 2014-09-23 18:39:45 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2014-09-23 18:39:45 +0200 |
commit | 99a5106f6fca22e843478cb72bb38a6bc91d2299 (patch) | |
tree | 2825cac4965b4832d4b014eca005621662c57424 /bin/reproducible_build.sh | |
parent | 0891306bd36d87fb718cc46ab2eced2d800b8712 (diff) | |
download | jenkins.debian.net-99a5106f6fca22e843478cb72bb38a6bc91d2299.tar.xz |
reproducible jobs: make basic job working
Diffstat (limited to 'bin/reproducible_build.sh')
-rwxr-xr-x | bin/reproducible_build.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh new file mode 100755 index 00000000..641a46d7 --- /dev/null +++ b/bin/reproducible_build.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# Copyright 2014 Holger Levsen <holger@layer-acht.org> +# released under the GPLv=2 + +. /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 + |