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