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