From: kanschat Date: Fri, 30 May 2008 03:49:37 +0000 (+0000) Subject: add no recursion flag X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf0ff7e450d037e3e8db33874963aa2042a7302f;p=dealii-svn.git add no recursion flag git-svn-id: https://svn.dealii.org/trunk@16272 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/common/scripts/diffsearch b/deal.II/common/scripts/diffsearch index 12b611afb3..4b1c53a61f 100755 --- a/deal.II/common/scripts/diffsearch +++ b/deal.II/common/scripts/diffsearch @@ -19,15 +19,18 @@ # options may be # -v for verbose output of diff # -y for side-by-side diff +# -R for no recursion diffout="/dev/null" diffopt="" result="" okname="" +recurse="true" for arg in $* ; do if test "x$arg" = "x-v" ; then diffout="/dev/stdout" ; fi if test "x$arg" = "x-y" ; then diffopt="-y" ; fi + if test "x$arg" = "x-R" ; then recurse="false" ; fi done # First, we check if $1/OK exists. If so, it hopefully contains the @@ -51,6 +54,10 @@ fi # If this round failed, check all files in this directory # If successful, write the name into $1/OK +if test "recurse" == "true" ; then + echo "$result" + exit 1; +fi for file in `cd $1/cmp ; ls` ; do if test "$diffout" != "/dev/null" ; then