#!/bin/sh
rm -rf caddy
mkdir caddy
export GOPATH=`pwd`/caddy
go get -v -d github.com/mholt/caddy/...
tar cf - --exclude .git caddy | xz -9 >caddy-`date '+%Y%m%d'`.tar.xz
rm -rf caddy
