2 # Create .patch based on $1 for $2
9 srcdir=$(basename $src $ext)
10 dstdir=$(basename $dst $ext)
13 test -d $srcdir || unpack $src
14 test -d $dstdir || unpack $dst
15 if diff -Nur $srcdir $dstdir > $patch; then
20 diffstat $patch | tee $patch.diff
21 cat $patch.diff $patch | xz -9 > $patch.xz
24 rm -rf $dstdir $srcdir