From 15eea825e65e4ed1e7e186cb1f3535ed04b71373 Mon Sep 17 00:00:00 2001 From: Jonathan Frazier Date: Tue, 16 Jul 2013 12:38:15 -0400 Subject: pacdiff: rework search type handling, add --find option Change cmd tests to if (( USE_FIND ))... as it is cleaner. All search cmds have an option and a variable initialized to zero. The active option should be set to 1. Add a switch to exclude multiple search options. set the default when all are equal to zero. Signed-off-by: Jonathan Frazier Signed-off-by: Allan McRae --- contrib/pacdiff.sh.in | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) (limited to 'contrib') diff --git a/contrib/pacdiff.sh.in b/contrib/pacdiff.sh.in index a64be4ce..17b0220b 100644 --- a/contrib/pacdiff.sh.in +++ b/contrib/pacdiff.sh.in @@ -23,9 +23,9 @@ declare -r myver='@PACKAGE_VERSION@' diffprog=${DIFFPROG:-vimdiff} diffsearchpath=${DIFFSEARCHPATH:-/etc} -locate=0 USE_COLOR='y' declare -a oldsaves +declare -i USE_FIND=0 USE_LOCATE=0 m4_include(../scripts/library/output_format.sh) @@ -33,10 +33,13 @@ usage() { cat <