Fixes to MakeReleaseSet script
authorJohn Hodge <[email protected]>
Thu, 13 Oct 2011 13:44:06 +0000 (21:44 +0800)
committerJohn Hodge <[email protected]>
Thu, 13 Oct 2011 13:44:06 +0000 (21:44 +0800)
MakeReleaseSet

index 117af81..b150e70 100755 (executable)
@@ -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

UCC git Repository :: git.ucc.asn.au