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