13 data/xonotic-data.pk3dir
14 data/xonotic-maps.pk3dir
15 data/xonotic-music.pk3dir
16 data/xonotic-nexcompat.pk3dir
18 fteqcc@git://github.com/Blub/qclib.git
21 repos=`for X in $repos_urls; do echo "${X%%@*}"; done`
32 base=`git config remote.origin.url`
33 base=${base%xonotic.git}
34 for dcomplete in $repos_urls; do
47 if [ -d "$d0/$d" ]; then
54 verbose git config remote.origin.url "$url"
61 verbose git clone "$url" "$d0/$d"
68 if [ -z "$branch" ]; then
75 if git rev-parse "refs/heads/$branch" >/dev/null 2>&1; then
77 verbose git checkout "$branch"
78 elif git rev-parse "refs/remotes/$remote/$branch" >/dev/null 2>&1; then
80 verbose git checkout --track -b "$branch" "$remote/$branch"
82 verbose git checkout master
87 echo "The requested branch was not found in any repository."
94 if [ -z "$branch" ]; then
98 if [ -z "$branch" ]; then
101 r=`git symbolic-ref HEAD`
110 while [ x"$a" != x"y" -a x"$a" != x"n" ]; do
114 if [ x"$a" = x"y" ]; then
115 verbose git push "$remote" HEAD:"$branch"
116 verbose git checkout --track -b "$branch" "$remote/$branch"
127 git branch -a | sed 's/^/ /; /->/d'
134 r=`git symbolic-ref HEAD`
137 if git log "origin/$r".."$r" | grep .; then
138 while [ x"$a" != x"y" -a x"$a" != x"n" ]; do
139 echo "Push $r in $d?"
142 if [ x"$a" = x"y" ]; then
143 verbose git push `git config "branch.$r.remote" || echo origin` HEAD
150 if [ -z "$MAKEFLAGS" ]; then
151 if [ -f /proc/cpuinfo ]; then
152 ncpus=$((`grep -c '^processor :' /proc/cpuinfo`+0))
153 if [ $ncpus -gt 1 ]; then
158 verbose cd "$d0/fteqcc"
159 verbose make $MAKEFLAGS
160 verbose cd "$d0/data/xonotic-data.pk3dir"
161 verbose make FTEQCC="$d0/fteqcc/fteqcc.bin" $MAKEFLAGS
162 verbose cd "$d0/darkplaces"
163 verbose make $MAKEFLAGS sv-debug
164 verbose make $MAKEFLAGS cl-debug
165 verbose make $MAKEFLAGS sdl-debug
170 sdl|glx|agl|dedicated)
179 if ! [ -x "darkplaces/darkplaces$client" ]; then
180 if [ -x "darkplaces/darkplaces$client.exe" ]; then
183 echo "Client darkplaces/darkplaces$client not found, aborting"
187 #verbose "darkplaces/darkplaces$client" -xonotic "$@"
188 verbose "darkplaces/darkplaces$client" -nexuiz -customgamename Xonotic -customgamedirname1 data -customgamedirname2 "" -customgamescreenshotname xonotic -customgameuserdirname xonotic "$@"
202 echo " $0 branch <remote> <branchname>"
205 echo " $0 run <client> <options>"
206 echo " $0 each <command>"