#!/bin/sh
rm -rf immudb
mkdir immudb
export GOPATH=`pwd`/immudb
git clone --depth 1 https://github.com/codenotary/immudb $GOPATH/src/github.com/codenotary/immudb
( cd $GOPATH/src/github.com/codenotary/immudb
  go get -v -d .
)
tar cf - --exclude .git immudb | xz -9 >immudb-`date '+%Y%m%d'`.tar.xz
rm -rf immudb
