Blame rpm-4.4.2-cdiff.patch
|
Paul Nasrat |
e26647 |
--- rpm-4.4.2/gendiff.cdiff 2002-07-13 20:54:36.000000000 +0100
|
|
Paul Nasrat |
e26647 |
+++ rpm-4.4.2/gendiff 2007-04-16 12:48:09.000000000 +0100
|
|
Paul Nasrat |
e26647 |
@@ -6,14 +6,16 @@
|
|
Paul Nasrat |
e26647 |
exit 1
|
|
Paul Nasrat |
e26647 |
}
|
|
Paul Nasrat |
e26647 |
|
|
Paul Nasrat |
e26647 |
+: ${DIFF:=diff -p}
|
|
Paul Nasrat |
e26647 |
+
|
|
Paul Nasrat |
e26647 |
find $1 \( -name "*$2" -o -name ".*$2" \) -print |
|
|
Paul Nasrat |
e26647 |
while read f; do
|
|
Paul Nasrat |
e26647 |
U=-u
|
|
Paul Nasrat |
e26647 |
[ "`basename $f`" = "ChangeLog$2" ] && U=-U0
|
|
Paul Nasrat |
e26647 |
-# diff ${U} $f `echo $f | sed s/$2\$//`
|
|
Paul Nasrat |
e26647 |
+# ${DIFF} ${U} $f `echo $f | sed s/$2\$//`
|
|
Paul Nasrat |
e26647 |
if [ -r "$f" ]; then
|
|
Paul Nasrat |
e26647 |
- diff ${U} "${f}" "${f%$2}"
|
|
Paul Nasrat |
e26647 |
+ ${DIFF} ${U} "${f}" "${f%$2}"
|
|
Paul Nasrat |
e26647 |
else
|
|
Paul Nasrat |
e26647 |
- diff ${U} /dev/null "${f%$2}"
|
|
Paul Nasrat |
e26647 |
+ ${DIFF} ${U} /dev/null "${f%$2}"
|
|
Paul Nasrat |
e26647 |
fi
|
|
Paul Nasrat |
e26647 |
done
|