diff deploy/src/archive-tip.sh @ 2008:55d9bbf1fe45 zoom

Merge from default branch
author Chris Cannam
date Mon, 17 Sep 2018 14:05:41 +0100
parents b578440bbca6
children 7535f13569fa
line wrap: on
line diff
--- a/deploy/src/archive-tip.sh	Mon Sep 17 13:53:25 2018 +0100
+++ b/deploy/src/archive-tip.sh	Mon Sep 17 14:05:41 2018 +0100
@@ -1,8 +1,18 @@
 #!/bin/bash
 
-tag=`hg id | awk '{ print $1; }'`
+id=`hg id | awk '{ print $1; }'`
 
-echo "Packaging from tag $tag..."
+case "$id" in
+    *+) echo "ERROR: Current working copy has been modified - unmodified copy required"; exit 2;;
+    *);;
+esac
 
-hg archive -r"$tag" --subrepos --exclude sv-dependency-builds /tmp/sonic-visualiser-"$tag".tar.gz
+echo "Packaging from id $id..."
 
+hg update -r"$id"
+
+./repoint archive /tmp/sonic-visualiser-"$id".tar.gz --exclude sv-dependency-builds repoint.pri
+
+echo Done
+echo
+