From 9b08439d9561a1f5399ee2e512007e824be9aebc Mon Sep 17 00:00:00 2001 From: xonotic Date: Thu, 18 Mar 2010 16:34:21 +0100 Subject: [PATCH] add darkplaces too --- .gitignore | 1 + all-update.sh | 20 +++++++++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..6ecb0074 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +darkplaces diff --git a/all-update.sh b/all-update.sh index 6a34004a..18e2d427 100755 --- a/all-update.sh +++ b/all-update.sh @@ -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 -- 2.39.2