Mercurial > hg > sonic-visualiser
comparison deploy/src/archive.sh @ 2432:a46ca166c29c
Ask for confirmation
author | Chris Cannam |
---|---|
date | Tue, 10 Dec 2019 09:32:52 +0000 |
parents | a71c87308d19 |
children | 7535f13569fa |
comparison
equal
deleted
inserted
replaced
2431:4971d3e6d9d2 | 2432:a46ca166c29c |
---|---|
3 set -eu | 3 set -eu |
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 | |
9 echo -n "Package up source code for version $v from tag $tag [Yn] ? " | |
10 read yn | |
11 case "$yn" in "") ;; [Yy]) ;; *) exit 3;; esac | |
12 echo "Proceeding" | |
8 | 13 |
9 current=$(hg id | awk '{ print $1; }') | 14 current=$(hg id | awk '{ print $1; }') |
10 | 15 |
11 case "$current" in | 16 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;; | 17 *+) echo "ERROR: Current working copy has been modified - unmodified copy required so we can update to tag and back again safely"; exit 2;; |