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