From f873f6aeaeb01556853e32b6bcd991b1fdbf72ea Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 3 Oct 2014 14:19:54 +0200 Subject: reproducible: switch into subdir for building, to support concurrent runs better --- bin/reproducible_build.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bin') 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 -- cgit v1.2.3-54-g00ecf