summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorivo <ivo@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-02-28 14:55:34 +0000
committerivo <ivo@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-02-28 14:55:34 +0000
commitb8da7b60a870d218d1aec9a1a012dddef77f703a (patch)
treead9d33793b4af0d5f66be3a645aa9a7a9147823d
parent5af6f7e8579eed6419e1ed4184082705a9ee6fd4 (diff)
downloadmpv-b8da7b60a870d218d1aec9a1a012dddef77f703a.tar.bz2
mpv-b8da7b60a870d218d1aec9a1a012dddef77f703a.tar.xz
do not rely on svn internals and use svn info instead
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22379 b3059339-0415-0410-9bf9-f77b7e298cf2
-rwxr-xr-xTOOLS/checktree.sh23
1 files changed, 4 insertions, 19 deletions
diff --git a/TOOLS/checktree.sh b/TOOLS/checktree.sh
index a4dd6abc75..6d917b4ca7 100755
--- a/TOOLS/checktree.sh
+++ b/TOOLS/checktree.sh
@@ -79,26 +79,11 @@ all_filenames() {
| 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 @@ for i in "$@"; do
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