Mercurial > hg > tony
annotate deploy/src/archive.sh @ 631:22724d007706 v2.1pre1
Remove 32-bit Windows package for simpler maintenance
author | Chris Cannam |
---|---|
date | Thu, 10 Oct 2019 14:56:47 +0100 |
parents | 287b7b349a8a |
children | 59945b8b52ce |
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@610 | 21 ./repoint archive /tmp/tony-"$v".tar.gz --exclude sv-dependency-builds repoint.pri |
Chris@610 | 22 |
Chris@610 | 23 hg update -r"$current" |
Chris@610 | 24 |
Chris@610 | 25 echo Done |
Chris@610 | 26 echo |