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