]> git.xonotic.org Git - xonotic/xonotic.git/blob - all-update.sh
6a34004ab3a9e4122d1ff6c49c8134b07028fbf2
[xonotic/xonotic.git] / all-update.sh
1 #!/bin/sh
2
3 set -e
4
5 base=`git config remote.origin.url`
6 base=${base%/xonotic.git}
7 d0=`pwd`/data
8 for d in data maps music; do
9         dd="xonotic-$d.pk3dir"
10         if [ -d "$d0/$dd" ]; then
11                 cd "$d0/$dd"
12                 git config remote.origin.url "$base/$dd.git"
13                 git pull
14                 cd "$d0"
15         else
16                 git clone "$base/$dd.git" "$d0/dd"
17         fi
18 done