view deploy/src/archive.sh @ 461:61b8c366f1f3 v1.0

Another exclusion from src
author Chris Cannam
date Wed, 01 Apr 2015 13:11:10 +0100
parents 455220c32196
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