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