]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
add no recursion flag
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 30 May 2008 03:49:37 +0000 (03:49 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 30 May 2008 03:49:37 +0000 (03:49 +0000)
git-svn-id: https://svn.dealii.org/trunk@16272 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/common/scripts/diffsearch

index 12b611afb316907cc2cc7af7d721120d44131501..4b1c53a61fced604782ae1c20840c36a0485ae8c 100755 (executable)
 # 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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.