Merge branch 'master' of git://localhost/acess2
[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 IMGNAME=AcessRelease.img
23 ./Tools/BootFloppy/MakeDiskImage $IMGNAME
24 mcopy -i $IMGNAME -s Dist/$ARCH/ ::/Acess2
25 mcopy -i $IMGNAME Dist/Acess2* ::/Acess2/Acess2.gz
26 gzip -c AcessRelease.img > Releases/Acess2_latest_${ARCH}.img.gz

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