annotate deploy/src/archive.sh @ 666:f298c1903e0f v2.1

Removed tag v2.1_win64
author Chris Cannam
date Fri, 25 Oct 2019 12:16:12 +0100
parents 2dc25f20690f
children eb141af3866c
rev   line source
Chris@230 1 #!/bin/bash
Chris@230 2
Chris@610 3 set -eu
Chris@230 4
Chris@610 5 tag=`hg tags | grep '^v' | head -1 | awk '{ print $1; }'`
Chris@230 6
Chris@610 7 v=`echo "$tag" | sed 's/v//' | sed 's/_.*$//'`
Chris@230 8
Chris@610 9 current=$(hg id | awk '{ print $1; }')
Chris@230 10
Chris@610 11 case "$current" in
Chris@610 12 *+) echo "ERROR: Current working copy has been modified - unmodified copy required so we can update to tag and back again safely"; exit 2;;
Chris@610 13 *);;
Chris@610 14 esac
Chris@610 15
Chris@610 16 echo
Chris@610 17 echo -n "Packaging up version $v from tag $tag... "
Chris@230 18
Chris@610 19 hg update -r"$tag"
Chris@610 20
Chris@661 21 ./repoint archive "$(pwd)"/packages/tony-"$v".tar.gz --exclude sv-dependency-builds repoint.pri testdata pyin/testdata
Chris@610 22
Chris@610 23 hg update -r"$current"
Chris@610 24
Chris@610 25 echo Done
Chris@610 26 echo