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