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