blob: fab7477047d8e782a6f58ea66b190aaa7993ee9a (
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
26
27
28
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"
|