add darkplaces too
[xonotic/xonotic.git] / all-update.sh
1 #!/bin/sh
2
3 set -e
4
5 repos="
6         data/xonotic-data.pk3dir
7         data/xonotic-maps.pk3dir
8         data/xonotic-music.pk3dir
9         darkplaces
10 "
11
12 base=`git config remote.origin.url`
13 base=${base%/xonotic.git}
14 d0=`pwd`
15 for d in $repos; do
16         if [ -d "$d0/$d" ]; then
17                 cd "$d0/$d"
18                 git config remote.origin.url "$base/${d##*/}.git"
19                 git pull
20                 cd "$d0"
21         else
22                 git clone "$base/${d##*/}.git" "$d0/$d"
23         fi
24 done