summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2007-05-16 10:59:15 -0400
committerPeter Jones <pjones@redhat.com>2007-05-16 10:59:15 -0400
commitde2e849ede59f1b3deec085676126d912011c052 (patch)
treef28aa0d9aa0835ebf46e610653cd17bf55d9aa91
parent832fe4f01865cd17ab9393fc48b960206da223b0 (diff)
downloadrpm-de2e849ede59f1b3deec085676126d912011c052.tar.gz
rpm-de2e849ede59f1b3deec085676126d912011c052.tar.bz2
rpm-de2e849ede59f1b3deec085676126d912011c052.zip
- let diff arguments be specified in the environment
-rw-r--r--scripts/gendiff8
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/gendiff b/scripts/gendiff
index 1abdcd077..24068cc68 100644
--- a/scripts/gendiff
+++ b/scripts/gendiff
@@ -6,12 +6,14 @@
exit 1
}
-: ${DIFF:=diff -p}
+: ${DIFF:=diff}
+: ${GENDIFF_DIFF_ARGS:=-up}
+: ${GENDIFF_DIFF_CHANGELOG_ARGS:=-U0}
find $1 \( -name "*$2" -o -name ".*$2" \) -print |
while read f; do
- U=-u
- [ "`basename $f`" = "ChangeLog$2" ] && U=-U0
+ U="${GENDIFF_DIFF_ARGS}"
+ [ "`basename $f`" = "ChangeLog$2" ] && U="${GENDIFF_DIFF_CHANGELOG_ARGS}"
# ${DIFF} ${U} $f `echo $f | sed s/$2\$//`
if [ -r "$f" ]; then
${DIFF} ${U} "${f}" "${f%$2}"