You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
postgres/src/tools/make_diff/difforig

15 lines
246 B

#!/bin/sh
# src/tools/make_diff/difforig
if [ "$#" -eq 0 ]
then APATH="."
else APATH="$1"
fi
find $APATH -name '*.orig' -print | sort | while read FILE
do
NEW="`dirname $FILE`/`basename $FILE .orig`"
echo "$NEW" 1>&2
diff -c $FILE $NEW
done