rm -rf beam
mkdir beam
cd beam
export GOPATH=`pwd`
mkdir -p src/github.com/eBay
git clone --depth 1 https://github.com/eBay/beam src/github.com/eBay/beam
( cd src/github.com/eBay/beam
  # make generate SHELL=/bin/sh
)
cd ..
tar -c -f- --exclude .git beam | xz -9 >beam-`date '+%Y%m%d'`.tar.xz
rm -rf beam
