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