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