php-gettext-gettext/dltests.sh
Sundeep Anand aa4ffcee54 Update to 4.6.3 (#1742047)
Signed-off-by: Sundeep Anand <suanand@redhat.com>
2019-09-10 19:51:02 +05:30

25 lines
408 B
Bash
Executable file

#!/bin/bash
# This was borrowed from nodejs-grunt-contrib-concat
tag=v4.6.3
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