06fb226
#!/bin/bash
06fb226
06fb226
version=0.5.1
06fb226
commit=dad5345a2876346fe49a68ee6e4db34205680798
06fb226
06fb226
set -e
06fb226
06fb226
tmp=$(mktemp -d)
06fb226
06fb226
trap cleanup EXIT
06fb226
cleanup() {
06fb226
    set +e
06fb226
    [ -z "$tmp" -o ! -d "$tmp" ] || rm -rf "$tmp"
06fb226
}
06fb226
06fb226
unset CDPATH
06fb226
pwd=$(pwd)
06fb226
06fb226
pushd "$tmp"
06fb226
git clone git://github.com/shama/gaze.git
06fb226
cd gaze
06fb226
git archive --prefix="test/" --format=tar ${commit}:test/ \
06fb226
    | bzip2 > "$pwd"/tests-${version}.tar.bz2
06fb226
popd