Modules/VIARhineII - Implementing, won't work yet
[tpg/acess2.git] / MakeReleaseSet
1 #!/bin/sh
2 rm -rf Dist
3 if [ $# -ge 1 ]; then
4         ARCH=$1
5 else
6         ARCH=x86
7 fi
8
9 if [ $# -ge 2 ]; then
10         PLATFORM=$2
11 else
12         PLATFORM=default
13 fi
14
15 mkdir -p Releases/
16 BUILD_DIST=y ARCH=$ARCH make clean all-install
17 while [ $# -ge 2 ]; do
18         BUILD_DIST=y ARCH=$ARCH PLATFORM=$2 make
19         shift
20 done
21 tar --transform="s|Dist/($ARCH/)*|Acess/|x" -zcf Releases/Acess2_latest_${ARCH}_bin.tar.gz Dist/$ARCH Dist/Acess2.$ARCH.gz
22 mdeltree b:/Acess2 2>&1 >/dev/null || true
23 mcopy -s Dist/$ARCH/ b:/Acess2
24 mcopy Dist/Acess2* b:/Acess2/Acess2.gz
25 gzip -c AcessRelease.img > Releases/Acess2_latest_${ARCH}.img.gz

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