add darkplaces too
authorxonotic <xonotic@ONE.(none)>
Thu, 18 Mar 2010 15:34:21 +0000 (16:34 +0100)
committerxonotic <xonotic@ONE.(none)>
Thu, 18 Mar 2010 15:34:21 +0000 (16:34 +0100)
.gitignore [new file with mode: 0644]
all-update.sh

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..6ecb007
--- /dev/null
@@ -0,0 +1 @@
+darkplaces
index 6a34004ab3a9e4122d1ff6c49c8134b07028fbf2..18e2d427ebca7d3628260513c0f3856746c4554c 100755 (executable)
@@ -2,17 +2,23 @@
 
 set -e
 
+repos="
+       data/xonotic-data.pk3dir
+       data/xonotic-maps.pk3dir
+       data/xonotic-music.pk3dir
+       darkplaces
+"
+
 base=`git config remote.origin.url`
 base=${base%/xonotic.git}
-d0=`pwd`/data
-for d in data maps music; do
-       dd="xonotic-$d.pk3dir"
-       if [ -d "$d0/$dd" ]; then
-               cd "$d0/$dd"
-               git config remote.origin.url "$base/$dd.git"
+d0=`pwd`
+for d in $repos; do
+       if [ -d "$d0/$d" ]; then
+               cd "$d0/$d"
+               git config remote.origin.url "$base/${d##*/}.git"
                git pull
                cd "$d0"
        else
-               git clone "$base/$dd.git" "$d0/dd"
+               git clone "$base/${d##*/}.git" "$d0/$d"
        fi
 done