So I'm using Beatrice's Mac, which doesn't have darcs.  It does have
CVS, but after using darcs, CVS feels clumsy.  So I wrote this shell
script to diff a directory from a tarballed checkpoint of it.  Don't
use it if you have directories sitting around called 'old'.

#!/bin/sh
set -e
usage="Usage: $0 checkpoint.tar.gz"
: ${1?$usage}
mkdir old
trap 'rm -rf old' 0
(cd old; tar xzf ../"$1")
dir="$(ls old | head -1)"
diff -urN old/"$dir" "$dir"

Reply via email to