Chris@366: #!/bin/bash Chris@366: tag=$(hg tags | grep -v ^tip | head -1 | awk '{ print $1 }') Chris@366: out="/tmp/cq-$tag.tar.bz2" Chris@366: echo "Archiving from tag $tag to file $out" Chris@366: if [ -z "$tag" ]; then Chris@366: echo "ERROR: No tag found!" Chris@366: exit 1 Chris@366: fi Chris@366: hg archive -r"$tag" -S --exclude misc "$out"