#!/bin/sh -x
rm -rf knoxite
GOPATH="`pwd`/knoxite"
export GOPATH
mkdir -p $GOPATH
go get -v -u -d github.com/knoxite/knoxite/...
tar cvf - --exclude .git knoxite | xz -9 >knoxite-`date '+%Y%m%d'`.tar.xz
rm -rf knoxite
