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