rm -rf p2cli
mkdir p2cli
cd p2cli
export GOPATH=`pwd`
mkdir -p $GOPATH/src/github.com/wrouesnel
git clone https://github.com/wrouesnel/p2cli.git $GOPATH/src/github.com/wrouesnel/p2cli
( cd $GOPATH/src/github.com/wrouesnel/p2cli
  go get -v -d
)
cd ..
tar -c -f- --exclude .git p2cli | xz -9 >p2cli-`date '+%Y%m%d'`.tar.xz
rm -rf p2cli
