To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

The primary repository for this project is hosted at https://github.com/cannam/constant-q-cpp/ .
This repository is a read-only copy which is updated automatically every hour.

Statistics Download as Zip
| Branch: | Revision:

root / archive.sh

History | View | Annotate | Download (259 Bytes)

1 167:83cd46303dee c
#!/bin/bash
2
tag=$(hg tags | grep -v ^tip | head -1 | awk '{ print $1 }')
3
out="/tmp/cq-$tag.tar.bz2"
4
echo "Archiving from tag $tag to file $out"
5
if [ -z "$tag" ]; then
6
    echo "ERROR: No tag found!"
7
    exit 1
8
fi
9
hg archive -r"$tag" -S --exclude misc "$out"