From 8caf68303188699c1a1d9499c53a43794a86d922 Mon Sep 17 00:00:00 2001 From: jbj Date: Sat, 13 Jul 2002 19:54:36 +0000 Subject: - teach gendiff about unreadable files (#42666). CVS patchset: 5553 CVS date: 2002/07/13 19:54:36 --- gendiff | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'gendiff') diff --git a/gendiff b/gendiff index c00ce5156..de51c5710 100644 --- a/gendiff +++ b/gendiff @@ -10,5 +10,10 @@ find $1 \( -name "*$2" -o -name ".*$2" \) -print | while read f; do U=-u [ "`basename $f`" = "ChangeLog$2" ] && U=-U0 - diff ${U} $f `echo $f | sed s/$2\$//` +# diff ${U} $f `echo $f | sed s/$2\$//` + if [ -r "$f" ]; then + diff ${U} "${f}" "${f%$2}" + else + diff ${U} /dev/null "${f%$2}" + fi done -- cgit v1.2.3