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