#!/bin/sh
rm -rf tldx
mkdir tldx
export GOPATH=`pwd`/tldx
git clone --depth 1 https://github.com/brandonyoungdev/tldx $GOPATH/src/github.com/brandonyoungdev/tldx
( cd $GOPATH/src/github.com/brandonyoungdev/tldx
  go get -v -d
)
tar cf - --exclude .git tldx | xz -9 >tldx-`date '+%Y%m%d'`.tar.xz
rm -rf tldx
