#!/bin/sh
rm -rf usql
mkdir usql
GOPATH=`pwd`/usql
export GOPATH
go get -v -d github.com/xo/usql/...
rm -rf usql/src/gopkg.in/jcmturner/gokrb5.v4/testenv
tar cvf - --exclude .git usql | xz -9 >usql-`date '+%Y%m%d'`.tar.xz
rm -rf usql
