php-gettext-gettext/dltests.sh
2022-12-12 16:18:34 +05:30

25 lines
409 B
Bash
Executable file

#!/bin/bash
# This was borrowed from nodejs-grunt-contrib-concat
tag=v5.7.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/php-gettext/Gettext.git
ls
cd Gettext
git archive --prefix="tests/" --format=tar ${tag}:tests/ \
| bzip2 > "$pwd"/tests-${tag}.tar.bz2
popd