view deploy/src/archive.sh @ 567:dd344309667f

Some work on macOS deployment - trying to get this one working with sandboxing. File saving is currently not working (temporary file write failing perhaps?)
author Chris Cannam <cannam@all-day-breakfast.com>
date Tue, 19 Feb 2019 17:46:01 +0000
parents 61b8c366f1f3
children 287b7b349a8a
line wrap: on
line source
#!/bin/bash

tag=`hg tags | grep '^v[0-9]' | head -1 | awk '{ print $1; }'`

v=`echo "$tag" |sed 's/v//'`

if test -z "$v" ; then
    echo "No suitable tag found!?"
    exit 1
fi

echo "Packaging up version $v from tag $tag..."

hg archive -r"$tag" --subrepos --exclude sv-dependency-builds --exclude pyin/testdata --exclude testdata /tmp/tony-"$v".tar.gz