diff options
author | Peter Jones <pjones@redhat.com> | 2007-05-16 10:59:15 -0400 |
---|---|---|
committer | Peter Jones <pjones@redhat.com> | 2007-05-16 10:59:15 -0400 |
commit | de2e849ede59f1b3deec085676126d912011c052 (patch) | |
tree | f28aa0d9aa0835ebf46e610653cd17bf55d9aa91 | |
parent | 832fe4f01865cd17ab9393fc48b960206da223b0 (diff) | |
download | rpm-de2e849ede59f1b3deec085676126d912011c052.tar.gz rpm-de2e849ede59f1b3deec085676126d912011c052.tar.bz2 rpm-de2e849ede59f1b3deec085676126d912011c052.zip |
- let diff arguments be specified in the environment
-rw-r--r-- | scripts/gendiff | 8 |
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}" |