3 # This version of gendiff has been modified for Ksplice.
4 # gendiff was originally written by Marc Ewing <marc@redhat.com>,
5 # and it is available under the GNU General Public License.
7 [ -z "$1" -o -z "$2" ] && {
9 echo "usage: $0 <directory> <diff-extension>" 1>&2
13 find $1 \
( -name "*$2" -o -name ".*$2" -o -regex ".*ksplice/post/.*" -prune \
) -print |
16 [ "`basename $f`" = "ChangeLog$2" ] && U
=-U0
17 if [ -r "${f%$2}" ]; then
18 diff ${U} "${f%$2}" "${f}"
20 diff ${U} /dev/null "${f}"