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