Mercurial > hg > sonic-visualiser
changeset 654:7adcad79d548
Add script to archive from tag
author | Chris Cannam |
---|---|
date | Tue, 05 Nov 2013 11:44:15 +0000 (2013-11-05) |
parents | 491cabaf9f70 |
children | 51bf4d43a1c0 1938702bb3bf |
files | deploy/src/archive.sh |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/deploy/src/archive.sh Tue Nov 05 11:44:15 2013 +0000 @@ -0,0 +1,10 @@ +#!/bin/bash + +tag=`hg tags | grep '^sv_v' | head -1 | awk '{ print $1; }'` + +v=`echo "$tag" |sed 's/sv_v//'` + +echo "Packaging up version $v from tag $tag..." + +hg archive -r"$tag" --subrepos --exclude sv-dependency-builds /tmp/sonic-visualiser-"$v".tar.gz +