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