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