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