#!/bin/sh
rm -rf tusd
mkdir tusd
GOPATH=`pwd`/tusd
export GOPATH
go get -d -v github.com/tus/tusd/...
( cd $GOPATH/src/github.com/tus/tusd/vendor
  govendor sync
)
tar cf - --exclude .git tusd | xz -9 >tusd-`date '+%Y%m%d'`.tar.xz
rm -rf tusd
