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