diff options
Diffstat (limited to 'scripts')
-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}" |