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