1998-03-05 00:05:15 +08:00
|
|
|
#!/bin/sh
|
1996-01-11 01:03:08 +08:00
|
|
|
|
1997-01-14 01:23:43 +08:00
|
|
|
[ -z "$1" -o -z "$2" ] && {
|
|
|
|
# usage
|
|
|
|
echo "usage: $0 <directory> <diff-extension>" 1>&2
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
1996-05-11 00:24:05 +08:00
|
|
|
find $1 \( -name "*$2" -o -name ".*$2" \) -print |
|
1996-01-11 01:03:08 +08:00
|
|
|
while read f; do
|
2000-12-17 03:00:30 +08:00
|
|
|
U=-u
|
2001-07-07 04:37:42 +08:00
|
|
|
[ "`basename $f`" = "ChangeLog$2" ] && U=-U0
|
2000-12-17 03:00:30 +08:00
|
|
|
diff ${U} $f `echo $f | sed s/$2\$//`
|
1996-01-11 01:03:08 +08:00
|
|
|
done
|