diff 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
line wrap: on
line diff
--- a/deploy/src/archive.sh	Tue Jun 19 15:20:42 2018 +0100
+++ b/deploy/src/archive.sh	Tue Jun 19 15:20:56 2018 +0100
@@ -6,10 +6,21 @@
 
 v=`echo "$tag" | sed 's/sv_v//' | sed 's/_.*$//'`
 
+current=$(hg id | awk '{ print $1; }')
+
+case "$current" in
+    *+) echo "ERROR: Current working copy has been modified - unmodified copy required so we can update to tag and back again safely"; exit 2;;
+    *);;
+esac
+          
 echo
 echo -n "Packaging up version $v from tag $tag... "
 
-hg archive -r"$tag" --subrepos --exclude sv-dependency-builds /tmp/sonic-visualiser-"$v".tar.gz
+hg update -r"$tag"
+
+./repoint archive /tmp/sonic-visualiser-"$v".tar.gz --exclude sv-dependency-builds repoint.pri
+
+hg update -r"$current"
 
 echo Done
 echo