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