Blame SOURCES/dl-tests.es6-promise.sh

d3ad9a
#!/bin/bash
d3ad9a
d3ad9a
tag=3.0.2
d3ad9a
d3ad9a
set -e
d3ad9a
d3ad9a
tmp=$(mktemp -d)
d3ad9a
d3ad9a
trap cleanup EXIT
d3ad9a
cleanup() {
d3ad9a
    set +e
d3ad9a
    [ -z "$tmp" -o ! -d "$tmp" ] || rm -rf "$tmp"
d3ad9a
}
d3ad9a
d3ad9a
unset CDPATH
d3ad9a
pwd=$(pwd)
d3ad9a
d3ad9a
pushd "$tmp"
d3ad9a
git clone git@github.com:jakearchibald/es6-promise.git
d3ad9a
cd es6-promise
d3ad9a
git archive --prefix="test/" --format=tar tags/v${tag}:test/ \
d3ad9a
    | bzip2 > "$pwd"/tests-${tag}.tar.bz2
d3ad9a
popd