From de2e849ede59f1b3deec085676126d912011c052 Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Wed, 16 May 2007 10:59:15 -0400 Subject: [PATCH] - let diff arguments be specified in the environment --- scripts/gendiff | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/gendiff b/scripts/gendiff index 1abdcd0..24068cc 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}" -- 2.7.4