mirror of
https://gitlab.com/xonotic/xonotic
synced 2024-12-15 03:15:33 +00:00
add darkplaces too
This commit is contained in:
parent
38fc744f0b
commit
9b08439d95
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
darkplaces
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user