diff options
Diffstat (limited to 'taler-merchant/download.sh')
-rwxr-xr-x | taler-merchant/download.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/taler-merchant/download.sh b/taler-merchant/download.sh new file mode 100755 index 0000000..fab7477 --- /dev/null +++ b/taler-merchant/download.sh @@ -0,0 +1,29 @@ +#!/bin/sh + +# exit early on error +set -e + +GIT_REPO=${GIT_REPO:-https://git.taler.net/merchant.git} +GIT_REPO_NAME=merchant +PRGNAM=taler-merchant +VERSION=${VERSION:-9b2eae} + +CWD=$(pwd) +OUTPUT="${OUTPUT:-/tmp}" +PKG="$TMP/package-$PRGNAM" +TMP=${TMP:-/tmp/sky} + +mkdir -p "$TMP" +cd "$TMP" +rm -fr "$GIT_REPO_NAME" "$PRGNAM-$VERSION" +git clone "$GIT_REPO" +mv "$GIT_REPO_NAME" "$PRGNAM-$VERSION" + +cd "$PRGNAM-$VERSION" +git checkout "$VERSION" +./bootstrap +rm -fr .git + +cd "$TMP" +tar -f "$OUTPUT/$PRGNAM-$VERSION.tar.gz" -C "$TMP" -cj "$PRGNAM-$VERSION" +echo "$OUTPUT/$PRGNAM-$VERSION.tar.gz" |