summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/reproducible_setup.sh')
-rwxr-xr-xbin/reproducible_setup.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/bin/reproducible_setup.sh b/bin/reproducible_setup.sh
new file mode 100755
index 00000000..41af2bff
--- /dev/null
+++ b/bin/reproducible_setup.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+# Copyright 2014 Holger Levsen <holger@layer-acht.org>
+# released under the GPLv=2
+
+. /srv/jenkins/bin/common-functions.sh
+common_init "$@"
+
+TMPFILE=$(mktemp)
+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."
+apt-get install --force-yes -y dpkg dpkg-dev debhelper dh-python proot
+EOF
+
+sudo cp /var/cache/pbuilder/base.tgz /var/cache/pbuilder/base-reproducible.tgz
+sudo pbuilder --execute $TMPFILE --save-after-exec --basetgz /var/cache/pbuilder/base-reproducible.tgz
+rm $TMPFILE