#!/bin/sh -x
rm -rf rep
git clone --depth 1 https://github.com/robenkleene/rep-grep rep
(   cd rep
    HOME=`pwd`
    cargo fetch -v
)
tar cvf - --exclude .git rep | xz -9 >rep-`date '+%Y%m%d'`.tar.xz
rm -rf rep
