From: John Hodge Date: Thu, 13 Oct 2011 13:44:06 +0000 (+0800) Subject: Fixes to MakeReleaseSet script X-Git-Tag: rel0.13~73 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=2f9415b7b804073b0365781ad4f05a7306b6c890;p=tpg%2Facess2.git Fixes to MakeReleaseSet script --- diff --git a/MakeReleaseSet b/MakeReleaseSet index 117af818..b150e70a 100755 --- a/MakeReleaseSet +++ b/MakeReleaseSet @@ -1,14 +1,14 @@ #!/bin/sh rm -rf Dist if [ $# -ge 1 ]; then - for arch in $*; do - echo $arch - BUILD_DIST=y ARCH=$arch make clean install - done + ARCH=$1 else - BUILD_DIST=y make clean install + ARCH=i386 fi -tar -zcf Acess2_latest_bin.tar.gz Dist/* +mkdir -p Releases/ +BUILD_DIST=y ARCH=$ARCH make clean all-install +tar --transform="s|Dist/($ARCH/)*|Acess/|x" -zcf Releases/Acess2_latest_${ARCH}_bin.tar.gz Dist/$ARCH Dist/Acess2.$ARCH.gz mdeltree b:/Acess2 -mcopy -s Dist/ b:/Acess2 -gzip -c AcessRelease.img > Acess2_latest.img.gz +mcopy -s Dist/$ARCH/ b:/Acess2 +mcopy Dist/Acess2* b:/Acess2/Acess2.gz +gzip -c AcessRelease.img > Releases/Acess2_latest_${ARCH}.img.gz