#!/bin/sh
rm -rf hasura
mkdir hasura
GOPATH=`pwd`/hasura
export GOPATH
go get -v -d github.com/hasura/graphql-engine/...
tar cvf - --exclude .git hasura | xz -9 >hasura-`date '+%Y%m%d'`.tar.xz
rm -rf hasura
