comparison deploy/src/archive.sh @ 1868:471b0fb002ea

First cut at updating archive scripts to use Repoint
author Chris Cannam
date Tue, 19 Jun 2018 15:20:56 +0100
parents bd14a0f69b60
children d436e75169e3
comparison
equal deleted inserted replaced
1867:ad590578bf57 1868:471b0fb002ea
4 4
5 tag=`hg tags | grep '^sv_v' | head -1 | awk '{ print $1; }'` 5 tag=`hg tags | grep '^sv_v' | head -1 | awk '{ print $1; }'`
6 6
7 v=`echo "$tag" | sed 's/sv_v//' | sed 's/_.*$//'` 7 v=`echo "$tag" | sed 's/sv_v//' | sed 's/_.*$//'`
8 8
9 current=$(hg id | awk '{ print $1; }')
10
11 case "$current" in
12 *+) echo "ERROR: Current working copy has been modified - unmodified copy required so we can update to tag and back again safely"; exit 2;;
13 *);;
14 esac
15
9 echo 16 echo
10 echo -n "Packaging up version $v from tag $tag... " 17 echo -n "Packaging up version $v from tag $tag... "
11 18
12 hg archive -r"$tag" --subrepos --exclude sv-dependency-builds /tmp/sonic-visualiser-"$v".tar.gz 19 hg update -r"$tag"
20
21 ./repoint archive /tmp/sonic-visualiser-"$v".tar.gz --exclude sv-dependency-builds repoint.pri
22
23 hg update -r"$current"
13 24
14 echo Done 25 echo Done
15 echo 26 echo
16 27
17 # Test that the appropriate version of the docs exist on the website 28 # Test that the appropriate version of the docs exist on the website