summaryrefslogtreecommitdiffstats
path: root/dltests.sh
blob: 3979209ed83833fcc2fcad6c71bf89ed0890d5a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
# This was borrowed from nodejs-grunt-contrib-concat

tag=v4.5.0

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 https://github.com/oscarotero/Gettext.git
ls
cd Gettext
git archive --prefix="tests/" --format=tar ${tag}:tests/ \
    | bzip2 > "$pwd"/tests-${tag}.tar.bz2
popd