summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-02-26 23:57:31 +0100
committerHolger Levsen <holger@layer-acht.org>2015-02-27 17:12:59 +0100
commitd0216cc17479fd2f0593766c6edaf1f95753370c (patch)
tree661b02f50c08ebb42bb10a0c38c3903bcb04dc78 /bin
parent5024e46c7c79c0774c7b9b1788a5205f1bf83104 (diff)
downloadjenkins.debian.net-d0216cc17479fd2f0593766c6edaf1f95753370c.tar.xz
reproducible: build: wrap a long line + define SUITE early
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_build.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 9df686ab..fd4b21bb 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -11,9 +11,6 @@ common_init "$@"
# common code defining db access
. /srv/jenkins/bin/reproducible_common.sh
-# create dirs for results
-mkdir -p /var/lib/jenkins/userContent/dbd/ /var/lib/jenkins/userContent/buildinfo/ /var/lib/jenkins/userContent/rbuild/
-
# support different suites
if [ -z "$1" ] ; then
SUITE="sid"
@@ -21,6 +18,11 @@ else
SUITE="$1"
fi
+# create dirs for results
+mkdir -p /var/lib/jenkins/userContent/dbd/
+mkdir -p /var/lib/jenkins/userContent/rbuild/
+mkdir -p /var/lib/jenkins/userContent/buildinfo/
+
cleanup_all() {
rm -r $TMPDIR $TMPCFG
}