#!/bin/sh
rm -rf jocko
mkdir jocko
cd jocko
export GOPATH=`pwd`
git clone https://github.com/travisjeffery/jocko.git src/github.com/travisjeffery/jocko
( cd src/github.com/travisjeffery/jocko
  go get -v -d
)
cd ..
tar -c -v -f- --exclude .git jocko | xz -9 >jocko-`date '+%Y%m%d'`.tar.xz
rm -rf jocko
