changeset 22361:eec955510da7

do not rely on svn internals and use svn info instead
author ivo
date Wed, 28 Feb 2007 14:55:34 +0000
parents 1307456a4c61
children e244d570ba44
files TOOLS/checktree.sh
diffstat 1 files changed, 4 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- a/TOOLS/checktree.sh	Wed Feb 28 13:37:45 2007 +0000
+++ b/TOOLS/checktree.sh	Wed Feb 28 14:55:34 2007 +0000
@@ -79,26 +79,11 @@
         | grep -v "\.\#\|\~$\|\.depend\|\/\.svn\/\|config.mak\|^\./config\.h" \
         | grep -v "^\./version\.h\|\.o$\|\.a$\|configure.log\|^\./help_mp.h"
     else
-        list_svn .
+        svn info -R | sed -n '/Path:/bb; :a; d; b; :b; s/Path: /.\//; h; :c; n;
+                              /Node Kind:/bd; bc; :d; /directory/ba; g; p;'
     fi
 }
 
-list_svn() {
-    tmpfiles=`sed '/name/ba; /kind/ba; d; b;
-                   :a; s/^ *....=\"\(.*\)\".*$/\1/;' $1/.svn/entries | \
-              sed '/$/N; s/\n/ /; / dir$/d; s/ file$//;'`
-    tmpdirs=`sed ' /name/ba; /kind/ba; d; b;
-                   :a; s/^ *....=\"\(.*\)\".*$/\1/;' $1/.svn/entries | \
-             sed ' /$/N; s/\n/ /; / file$/d; /^ dir$/d; s/ dir$//;'`
-
-    for i in $tmpfiles; do
-        echo $1/$i
-    done
-    for j in $tmpdirs; do
-        list_svn $1/$j
-    done
-}
-
 # -----------------------------------------------------------------------------
 
 # Parse command line
@@ -125,8 +110,8 @@
         echo
         printoption "color     " "colored output" "$_color"
         printoption "head      " "print heading for each test" "$_head"
-        printoption "svn       " "use .svn/ to determine which files to check"\
-                                                                        "$_svn"
+        printoption "svn       " 
+                    "use svn info to determine which files to check" "$_svn"
         echo -e "\nIf no files are specified, the whole tree is traversed."
         echo -e "If there are, -(no)svn has no effect.\n"
         exit