From f788cd3383c6a313ce059761a7f9672d36d752e9 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 9 Jul 2015 16:33:41 +0200 Subject: reproducible netbsd: simplify save_netbsd_results() --- bin/reproducible_netbsd.sh | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'bin') 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 -- cgit v1.2.3-70-g09d2