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