#!/bin/sh
rm -rf skyapi
( mkdir skyapi
  cd skyapi
  export GOPATH=`pwd`
  go get github.com/mediocregopher/skyapi
  go get -d -v ./...
  rm -f bin/skyapi
)
tar cvf - --exclude .git skyapi | gzip -9 >skyapi-`date '+%Y%m%d'`.tar.gz
rm -rf skyapi
