ARCH=native Fix crtn to return
[tpg/acess2.git] / DoRelease
1 #!/bin/bash
2 set -x
3
4 # NOTE: This is rather specific to my setup :)
5
6 REL_DOT=`grep 'ACESS_VERSION =' Makefile.Version.cfg | sed -r 's/.*([0-9]+\.[0-9]+).*/\1/'`
7 REL=`echo $REL_DOT | sed -r 's/\.//g'`
8
9 _RELDIR=/home/http/www/Downloads/Acess2/
10
11 ./MakeReleaseSet x86 smp
12 ./MakeReleaseSet x86_64
13 ./MakeReleaseSet armv7 realview_pb
14 ./MakeReleaseSet armv7 tegra2
15
16 rm -f Releases/*_armv7-*.img.gz
17 for f in Releases/*.gz; do
18         newname=${f/latest/$REL}
19         cp $f $newname
20 done
21 cp Releases/* ${_RELDIR}
22
23 if [[ $# -lt 2 ]] || [[ "$1" != "-n" ]]; then
24         git archive --format=tar --prefix=Acess2/ HEAD | gzip > ${_RELDIR}Acess2_git.tar.gz
25         git tag rel${REL_DOT}
26 fi
27
28 cd ${_RELDIR}
29 cp Acess2_git.tar.gz Acess2_${REL}.tar.gz
30 rm Acess2.img.gz; ln -s Acess2_${REL}_x86.img.gz Acess2.img.gz
31 rm Acess2.tar.gz; ln -s Acess2_${REL}.tar.gz Acess2.tar.gz

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