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