ARCH=native Fix crtn to return
[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         PSUFFIX=-$2
12 else
13         PLATFORM=default
14         PSUFFIX=""
15 fi
16
17 mkdir -p Releases/
18 BUILD_DIST=y ARCH=$ARCH make clean all-install
19 while [ $# -ge 2 ]; do
20         BUILD_DIST=y ARCH=$ARCH PLATFORM=$2 make
21         shift
22 done
23 tar --transform="s|Dist/($ARCH/)*|Acess/|x" -zcf Releases/Acess2_latest_${ARCH}$PSUFFIX_bin.tar.gz Dist/$ARCH Dist/Acess2.$ARCH$PSUFFIX.gz
24 IMGNAME=AcessRelease.img
25 ./Tools/BootFloppy/MakeDiskImage $IMGNAME
26 mcopy -i $IMGNAME -s Dist/$ARCH/ ::/Acess2
27 mcopy -i $IMGNAME Dist/Acess2.$ARCH$PSUFFIX.gz ::/Acess2/Acess2.gz
28 gzip -c AcessRelease.img > Releases/Acess2_latest_${ARCH}$PSUFFIX.img.gz

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