#!/bin/sh
dir=`/bin/pwd|sed -e 's/.*\///'`
patchdir=$HOME/src/patch
for f in orig-*;do
   g=`echo $f|sed -e s/orig-//`
   diff -U5 $f $g && echo $f and $g are the same >&2
done > $patchdir/$dir.patch
cp $patchdir/$dir.patch /www/html/src/patch/ || echo "Couldn't copy patch!" >&2
