diff options
author | 2009-04-22 17:05:21 +0000 | |
---|---|---|
committer | 2009-04-22 17:05:21 +0000 | |
commit | 3e1da247c6b0ebfbc1ec64c3dd224899d0ec2537 (patch) | |
tree | 81e3024ef38f2ed63877f111ad3e23e00312911c /scripts | |
parent | www-apps/davical: Removed unused inherits, added missing die statements. (diff) | |
download | sunrise-3e1da247c6b0ebfbc1ec64c3dd224899d0ec2537.tar.gz sunrise-3e1da247c6b0ebfbc1ec64c3dd224899d0ec2537.tar.bz2 sunrise-3e1da247c6b0ebfbc1ec64c3dd224899d0ec2537.zip |
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
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/review | 5 |
1 files changed, 4 insertions, 1 deletions
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 |