#!/bin/sh -x
rm -rf kraken
GOPATH="`pwd`/kraken"
export GOPATH
mkdir -p $GOPATH
( cd $GOPATH
  go get -v -d github.com/uber/kraken
  ( cd src/github.com/uber/kraken
    glide install
  )
)
tar cvf - --exclude .git kraken | xz -9 >kraken-`date '+%Y%m%d'`.tar.xz
rm -rf kraken
