#!/bin/sh
rm -rf nsq
mkdir nsq
export GOPATH=`pwd`/nsq
git clone --depth 1 https://github.com/nsqio/nsq $GOPATH/src/github.com/nsqio/nsq
( cd $GOPATH/src/github.com/nsqio/nsq && go get -v -d )
tar cf - --exclude .git nsq | xz -9 >nsq-`date '+%Y%m%d'`.tar.xz
rm -rf nsq
