mirror of
https://github.com/postgres/postgres.git
synced 2025-10-18 04:29:09 +03:00
15 lines
305 B
Bash
Executable File
15 lines
305 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# $PostgreSQL: pgsql/src/tools/make_diff/difforig,v 1.2 2006/03/11 04:38:42 momjian Exp $
|
|
|
|
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
|