From: John Hodge Date: Sat, 21 Jan 2012 03:58:48 +0000 (+0800) Subject: Added DoRelease script (untested) X-Git-Tag: rel0.15~792^2~25 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=8bd82b2109c8cf34d7ca56502bf27491b5a9e828;p=tpg%2Facess2.git Added DoRelease script (untested) --- diff --git a/DoRelease b/DoRelease new file mode 100755 index 00000000..d26daade --- /dev/null +++ b/DoRelease @@ -0,0 +1,25 @@ +#!/bin/sh + +# NOTE: This is rather specific to my setup :) + +REL_DOT=`grep 'ACESS_VERSION =' Makefile.Version.cfg | sed -r 's/.*([0-9]+\.[0-9]+).*/\1/'` +REL=`echo $REL_DOT | sed -r 's/\.//g'` + +_RELDIR=/serenade/http/www/Downloads/Acess2/ + +./MakeReleaseSet x86 smp +./MakeReleaseSet x86_64 +./MakeReleaseSet armv7 tegra2 + +for arch in x86 x86_64 armv7; do + cp Releases/Acess2_latest_${arch}-bin.tar.gz ${_RELDIR}Acess2_${REL}_${arch}-bin.tar.gz + cp Releases/Acess2_latest_${arch}.img.gz ${_RELDIR}Acess2_${REL}_${arch}.img.gz +done + +git archive --format=tar --prefix=Acess2/ HEAD | gzip > ${_RELDIR}Acess2_git.tar.gz +git tag rel${REL_DOT} + +cd ${_RELDIR} +cp Acess2_git.tar.gz Acess2_${REL}.tar.gz +rm Acess2.img.gz; ln -s Acess2_${REL}_x86.img.gz Acess2.img.gz +rm Acess2.tar.gz; ln -s Acess2_${REL}.tar.gz Acess2.tar.gz