Mercurial > hg > sonic-visualiser
diff deploy/src/archive.sh @ 2008:55d9bbf1fe45 zoom
Merge from default branch
author | Chris Cannam |
---|---|
date | Mon, 17 Sep 2018 14:05:41 +0100 |
parents | 471b0fb002ea |
children | d436e75169e3 |
line wrap: on
line diff
--- a/deploy/src/archive.sh Mon Sep 17 13:53:25 2018 +0100 +++ b/deploy/src/archive.sh Mon Sep 17 14:05:41 2018 +0100 @@ -6,10 +6,21 @@ v=`echo "$tag" | sed 's/sv_v//' | sed 's/_.*$//'` +current=$(hg id | awk '{ print $1; }') + +case "$current" in + *+) echo "ERROR: Current working copy has been modified - unmodified copy required so we can update to tag and back again safely"; exit 2;; + *);; +esac + echo echo -n "Packaging up version $v from tag $tag... " -hg archive -r"$tag" --subrepos --exclude sv-dependency-builds /tmp/sonic-visualiser-"$v".tar.gz +hg update -r"$tag" + +./repoint archive /tmp/sonic-visualiser-"$v".tar.gz --exclude sv-dependency-builds repoint.pri + +hg update -r"$current" echo Done echo @@ -23,5 +34,7 @@ echo "*** WARNING: Documentation URL returns a 404:" echo "*** $doc_url" echo "*** Please fix this before release!" + echo "*** And remember to update the link from" + echo " http://www.sonicvisualiser.org/documentation.html !" echo fi