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"
59 verbose git remote prune origin
62 verbose git clone "$url" "$d0/$d"
69 if [ -z "$branch" ]; then
76 if git rev-parse "refs/heads/$branch" >/dev/null 2>&1; then
78 verbose git checkout "$branch"
79 elif git rev-parse "refs/remotes/$remote/$branch" >/dev/null 2>&1; then
81 verbose git checkout --track -b "$branch" "$remote/$branch"
83 verbose git checkout master
88 echo "The requested branch was not found in any repository."
95 if [ -z "$branch" ]; then
99 if [ -z "$branch" ]; then
102 r=`git symbolic-ref HEAD`
111 while [ x"$a" != x"y" -a x"$a" != x"n" ]; do
115 if [ x"$a" = x"y" ]; then
116 verbose git push "$remote" HEAD:"$branch"
117 verbose git checkout --track -b "$branch" "$remote/$branch"
128 git branch -a | sed 's/^/ /; /->/d'
135 r=`git symbolic-ref HEAD`
138 if git log "origin/$r".."$r" | grep .; then
139 while [ x"$a" != x"y" -a x"$a" != x"n" ]; do
140 echo "Push $r in $d?"
143 if [ x"$a" = x"y" ]; then
144 verbose git push `git config "branch.$r.remote" || echo origin` HEAD
151 if [ -z "$MAKEFLAGS" ]; then
152 if [ -f /proc/cpuinfo ]; then
153 ncpus=$((`grep -c '^processor :' /proc/cpuinfo`+0))
154 if [ $ncpus -gt 1 ]; then
159 verbose cd "$d0/fteqcc"
160 verbose make $MAKEFLAGS
161 verbose cd "$d0/data/xonotic-data.pk3dir"
162 verbose make FTEQCC="$d0/fteqcc/fteqcc.bin" $MAKEFLAGS
163 verbose cd "$d0/darkplaces"
164 verbose make $MAKEFLAGS sv-debug
165 verbose make $MAKEFLAGS cl-debug
166 verbose make $MAKEFLAGS sdl-debug
171 sdl|glx|agl|dedicated)
180 if ! [ -x "darkplaces/darkplaces$client" ]; then
181 if [ -x "darkplaces/darkplaces$client.exe" ]; then
184 echo "Client darkplaces/darkplaces$client not found, aborting"
188 #verbose "darkplaces/darkplaces$client" -xonotic "$@"
189 verbose "darkplaces/darkplaces$client" -nexuiz -customgamename Xonotic -customgamedirname1 data -customgamedirname2 "" -customgamescreenshotname xonotic -customgameuserdirname xonotic "$@"
203 echo " $0 branch <remote> <branchname>"
206 echo " $0 run <client> <options>"
207 echo " $0 each <command>"