diff options
author | Holger Levsen <holger@layer-acht.org> | 2014-10-03 14:19:54 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2014-10-03 14:19:54 +0200 |
commit | f873f6aeaeb01556853e32b6bcd991b1fdbf72ea (patch) | |
tree | 9c19512eb9e9cc098663e5be2230b18a3530efb4 | |
parent | a4340c175df0457bee6a365d76b2eda2c029e4c9 (diff) | |
download | jenkins.debian.net-f873f6aeaeb01556853e32b6bcd991b1fdbf72ea.tar.xz |
reproducible: switch into subdir for building, to support concurrent runs better
-rwxr-xr-x | bin/reproducible_build.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index 61a7a9b5..18d5bc3b 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -120,6 +120,7 @@ echo "The following source packages will be build: ${PACKAGES}" echo "=============================================================================" echo +TMPDIR=$(mktemp --tmpdir=. -d) NUM_CPU=$(cat /proc/cpuinfo |grep ^processor|wc -l) COUNT_TOTAL=0 COUNT_GOOD=0 @@ -129,6 +130,7 @@ GOOD="" BAD="" SOURCELESS="" SKIPPED="" +cd $TMPDIR for SRCPACKAGE in ${PACKAGES} ; do set +x echo "=============================================================================" @@ -226,6 +228,8 @@ for SRCPACKAGE in ${PACKAGES} ; do echo "=============================================================================" set -x done +cd .. +rm -r $TMPDIR set +x echo |