Missing files
[tpg/acess2.git] / DoRelease
1 #!/bin/sh
2
3 # NOTE: This is rather specific to my setup :)
4
5 REL_DOT=`grep 'ACESS_VERSION =' Makefile.Version.cfg | sed -r 's/.*([0-9]+\.[0-9]+).*/\1/'`
6 REL=`echo $REL_DOT | sed -r 's/\.//g'`
7
8 _RELDIR=/serenade/http/www/Downloads/Acess2/
9
10 ./MakeReleaseSet x86 smp
11 ./MakeReleaseSet x86_64
12 ./MakeReleaseSet armv7 tegra2
13
14 for arch in x86 x86_64 armv7; do
15         cp Releases/Acess2_latest_${arch}-bin.tar.gz ${_RELDIR}Acess2_${REL}_${arch}-bin.tar.gz
16         cp Releases/Acess2_latest_${arch}.img.gz ${_RELDIR}Acess2_${REL}_${arch}.img.gz
17 done
18
19 git archive --format=tar --prefix=Acess2/ HEAD | gzip > ${_RELDIR}Acess2_git.tar.gz
20 git tag rel${REL_DOT}
21
22 cd ${_RELDIR}
23 cp Acess2_git.tar.gz Acess2_${REL}.tar.gz
24 rm Acess2.img.gz; ln -s Acess2_${REL}_x86.img.gz Acess2.img.gz
25 rm Acess2.tar.gz; ln -s Acess2_${REL}.tar.gz Acess2.tar.gz

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