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