#!/bin/sh
rm -rf golog
mkdir golog
export GOPATH=`pwd`/golog
go get -v -d github.com/mndrix/golog/...
( cd $GOPATH/src/github.com/mndrix
  go get -v -d -u ./...
)
tar cf - --exclude .git --exclude .hg --exclude .svn golog | xz -9 >golog-`date '+%Y%m%d'`.tar.xz
rm -rf golog
