Blame SOURCES/dl-tests.ms.sh

54b2e0
#!/bin/bash
54b2e0
54b2e0
tag=0.7.1
54b2e0
54b2e0
set -e
54b2e0
54b2e0
tmp=$(mktemp -d)
54b2e0
54b2e0
trap cleanup EXIT
54b2e0
cleanup() {
54b2e0
    set +e
54b2e0
    [ -z "$tmp" -o ! -d "$tmp" ] || rm -rf "$tmp"
54b2e0
}
54b2e0
54b2e0
unset CDPATH
54b2e0
pwd=$(pwd)
54b2e0
54b2e0
pushd "$tmp"
54b2e0
git clone https://github.com/guille/ms.js.git
54b2e0
cd ms.js
54b2e0
git archive --prefix="test/" --format=tar tags/${tag}:test/ \
54b2e0
    | bzip2 > "$pwd"/tests-${tag}.tar.bz2
54b2e0
popd