summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-07-09 16:33:41 +0200
committerHolger Levsen <holger@layer-acht.org>2015-07-09 16:33:41 +0200
commitf788cd3383c6a313ce059761a7f9672d36d752e9 (patch)
tree316c1a4b08117f9dd108dc20454cd3d2fcfda2fb /bin
parent66f739e47178c688d755d783c1478f2874cc7d8d (diff)
downloadjenkins.debian.net-f788cd3383c6a313ce059761a7f9672d36d752e9.tar.xz
reproducible netbsd: simplify save_netbsd_results()
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_netbsd.sh14
1 files changed, 5 insertions, 9 deletions
diff --git a/bin/reproducible_netbsd.sh b/bin/reproducible_netbsd.sh
index 0ae94db9..09532eca 100755
--- a/bin/reproducible_netbsd.sh
+++ b/bin/reproducible_netbsd.sh
@@ -28,13 +28,9 @@ create_results_dirs() {
save_netbsd_results(){
local RUN=$1
- local MACHINE
- cd obj/releasedir/
- for MACHINE in $MACHINES ; do
- mkdir -p $TMPDIR/$RUN/${MACHINE}
- cp -pr ${MACHINE} $TMPDIR/$RUN/
- done
- cd ../..
+ local MACHINE=$2
+ mkdir -p $TMPDIR/$RUN/${MACHINE}
+ cp -pr obj/releasedir/${MACHINE} $TMPDIR/$RUN/
}
#
@@ -74,7 +70,7 @@ for MACHINE in $MACHINES ; do
ionice -c 3 nice \
./build.sh -j $NUM_CPU -U -u -m ${MACHINE} release
# save results in b1
- save_netbsd_results b1
+ save_netbsd_results b1 ${MACHINE}
echo "${MACHINE} done, first time."
done
@@ -101,7 +97,7 @@ for MACHINE in $MACHINES ; do
linux64 --uname-2.6 \
./build.sh -j $NEW_NUM_CPU -U -u -m ${MACHINE} release
# save results in b2
- save_netbsd_results b2
+ save_netbsd_results b2 ${MACHINE}
echo "${MACHINE} done, second time."
done