#!/bin/sh
rm -rf dry
mkdir dry
export GOPATH=`pwd`/dry
git clone --depth 1 https://github.com/moncho/dry $GOPATH/src/github.com/moncho/dry
( cd $GOPATH/src/github.com/moncho/dry
  export GO111MODULE=on
  go mod vendor -v
)
tar cf - --exclude .git dry | xz -9 >dry-`date '+%Y%m%d'`.tar.xz
chmod -R a+rw dry
rm -rf dry
