annotate deploy/src/archive.sh @ 641:327177b6bd3a v2.1pre2

Fix recently-introduced bug that made the scale disappear and tracks jump around when toggling off the spectrogram
author Chris Cannam
date Thu, 17 Oct 2019 14:44:55 +0100
parents 59945b8b52ce
children 639deb9d6bd4
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@633 21 ./repoint archive /tmp/tony-"$v".tar.gz --exclude sv-dependency-builds repoint.pri testdata
Chris@610 22
Chris@610 23 hg update -r"$current"
Chris@610 24
Chris@610 25 echo Done
Chris@610 26 echo