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