7 data/xonotic-data.pk3dir
8 data/xonotic-maps.pk3dir
9 data/xonotic-music.pk3dir
10 data/xonotic-nexcompat.pk3dir
23 base=`git config remote.origin.url`
24 base=${base%xonotic.git}
26 if [ -d "$d0/$d" ]; then
32 git config remote.origin.url "$base${d##*/}.git"
38 git clone "$base${d##*/}.git" "$d0/$d"
45 if [ -z "$branch" ]; then
52 if git rev-parse "refs/heads/$branch" >/dev/null 2>&1; then
54 git checkout "$branch"
55 elif git rev-parse "refs/remotes/$remote/$branch" >/dev/null 2>&1; then
57 git checkout --track -b "$branch" "$remote/$branch"
68 if [ -z "$branch" ]; then
72 if [ -z "$branch" ]; then
75 r=`git symbolic-ref HEAD`
84 while [ x"$a" != x"y" -a x"$a" != x"n" ]; do
88 if [ x"$a" = x"y" ]; then
89 git push "$remote" HEAD:"$branch"
90 git checkout --track -b "$branch" "$remote/$branch"
101 git branch -a | sed 's/^/ /; /->/d'
108 r=`git symbolic-ref HEAD`
111 if git log "origin/$r".."$r" | grep .; then
112 while [ x"$a" != x"y" -a x"$a" != x"n" ]; do
113 echo "Push $r in $d?"
116 if [ x"$a" = x"y" ]; then
117 git push `git config "branch.$r.remote" || echo origin` HEAD
125 cd data/xonotic-data.pk3dir
129 if [ -z "$MAKEFLAGS" ]; then
130 if [ -f /proc/cpuinfo ]; then
131 ncpus=$((`grep -c '^processor :' /proc/cpuinfo`+0))
132 if [ $ncpus -gt 1 ]; then
138 make $MAKEFLAGS sv-debug
139 make $MAKEFLAGS cl-debug
140 make $MAKEFLAGS sdl-debug
146 sdl|glx|agl|dedicated)
155 if ! [ -x "darkplaces/darkplaces$client" ]; then
156 if [ -x "darkplaces/darkplaces$client.exe" ]; then
159 echo "Client darkplaces/darkplaces$client not found, aborting"
163 exec "darkplaces/darkplaces$client" -xonotic $@
177 echo " $0 branch <remote> <branchname>"
180 echo " $0 run <client> <options>"
181 echo " $0 each <command>"