#!/bin/sh
rm -rf webhook
export GOPATH=`pwd`/webhook
mkdir -p $GOPATH/src/github.com/adnanh
git clone https://github.com/adnanh/webhook.git $GOPATH/src/github.com/adnanh/webhook
go get -v -d github.com/adnanh/webhook
tar cf - --exclude .git --exclude .hg --exclude .svn webhook | xz -9 >webhook-`date '+%Y%m%d'`.tar.xz
rm -rf webhook
