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