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