]> git.xonotic.org Git - xonotic/xonotic.git/commitdiff
pk3dir handling: detect if the matching pk3 file exists, and then ignore the repo...
authorRudolf Polzer <divverent@alientrap.org>
Mon, 26 Apr 2010 12:10:54 +0000 (14:10 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Mon, 26 Apr 2010 12:10:54 +0000 (14:10 +0200)
all

diff --git a/all b/all
index e19793567a34d224808a78fc4e1832b49a508248..bffab80cc57b73330513d68d8c2af797a9e61e02 100755 (executable)
--- a/all
+++ b/all
@@ -119,6 +119,16 @@ repos_urls="
        netradiant
 "
 
+repos_urls=`
+       for X in $repos_urls; do 
+               d="${X%%@*}"
+               p="${d%dir}"
+               if [ x"$p" = x"$d" ] || [ -d "$d" ] || ! [ -f "$p" ]; then
+                       echo "$X"
+               fi
+       done
+`
+
 repos=`for X in $repos_urls; do echo "${X%%@*}"; done`
 
 if [ "$#" = 0 ]; then