projects
/
xonotic
/
xonotic.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
rename all-download to all-update, make it way more clever
[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