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