Mercurial > hg > tony
view deploy/src/archive.sh @ 684:1f1824a93c7d v2.1.1
Merge
author | Chris Cannam |
---|---|
date | Tue, 10 Dec 2019 09:42:21 +0000 |
parents | 2dc25f20690f |
children | eb141af3866c |
line wrap: on
line source
#!/bin/bash set -eu tag=`hg tags | grep '^v' | head -1 | awk '{ print $1; }'` v=`echo "$tag" | sed 's/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 update -r"$tag" ./repoint archive "$(pwd)"/packages/tony-"$v".tar.gz --exclude sv-dependency-builds repoint.pri testdata pyin/testdata hg update -r"$current" echo Done echo