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