diff options
Diffstat (limited to 'fb-client-up')
-rwxr-xr-x | fb-client-up | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/fb-client-up b/fb-client-up new file mode 100755 index 0000000..1bbf273 --- /dev/null +++ b/fb-client-up @@ -0,0 +1,29 @@ +#!/bin/bash + +set -e + +branch="${1:-master}" + +TMPDIR="`mktemp -d "/tmp/fb-client-up.XXXXXX"`" +trap "rm -rf '${TMPDIR}'" EXIT TERM + +cd "$TMPDIR" +git clone ~/git/fb . +git checkout "$branch" + +VERSION="$(make version)" + +git tag --verify "v$VERSION" + +echo "==> Building release tarball" +make dist +echo "==> Building finished" + +gpg --detach-sign "dist/fb-$VERSION.tar.gz" +scp "dist/fb-$VERSION.tar.gz" dist/fb-$VERSION.tar.gz.sig web-filebin@karif:public_html/data/client + +if [[ $branch = "master" ]]; then + ssh web-filebin@karif echo "$VERSION" \> public_html/data/client/latest +fi + +echo "released version: $VERSION" |