#!/bin/sh if test $# != 2 then echo '? expected 2 arguments' exit 1 elif test ! -d $1 -o ! -d $2 then echo '? both arguments must be directories' exit 1 else gap="--------------------------------------------------------------------------------" tmp=$1.tmp out=$2.patch makepatch -diff "diff -u" $1 $2 >$tmp echo $gap >$out diffstat -w78 $tmp>>$out echo $gap >>$out cat $tmp >>$out rm -f $1.tmp fi