From 3e1da247c6b0ebfbc1ec64c3dd224899d0ec2537 Mon Sep 17 00:00:00 2001 From: Christian Ruppert Date: Wed, 22 Apr 2009 17:05:21 +0000 Subject: Added DIFF and DIFF_OPTS variables. DIFF contains the diff application itself like diff or colordiff (diff is default). DIFF_OPTS contains DIFF options like -Nur, --exclude foo etc. (-Nur is default). Example: DIFF="colordiff" ./reviewed/scripts/review svn path=/sunrise/; revision=8393 --- scripts/review | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/review b/scripts/review index cb9070654..0929b22a4 100755 --- a/scripts/review +++ b/scripts/review @@ -16,6 +16,9 @@ opt_noupdate=0 opt_quiet=0 opt_verbose=0 +DIFF="${DIFF:-diff}" +DIFF_OPTS="${DIFF_OPTS:--Nur}" + svn_up() { if [[ "$opt_noupdate" == "0" ]] ; then svn update $* @@ -169,7 +172,7 @@ eend $? cd .. if [[ "$opt_quiet" == "0" ]] ; then which diffstat >/dev/null 2>&1 && diff -Nur reviewed sunrise --exclude=.svn | diffstat - diff -Nur reviewed sunrise --exclude=Manifest --exclude=.svn --exclude=metadata.xml --exclude=digest-* + ${DIFF} ${DIFF_OPTS} reviewed sunrise --exclude=Manifest --exclude=.svn --exclude=metadata.xml --exclude=digest-* fi ) | if [[ "$opt_quiet" == "0" ]] ; then less; else cat; fi -- cgit v1.2.3-18-g5258