15 data/xonotic-data.pk3dir
16 data/xonotic-maps.pk3dir
17 data/xonotic-music.pk3dir
18 data/xonotic-nexcompat.pk3dir
20 fteqcc@git://github.com/Blub/qclib.git
23 repos=`for X in $repos_urls; do echo "${X%%@*}"; done`
34 base=`git config remote.origin.url`
35 base=${base%xonotic.git}
36 for dcomplete in $repos_urls; do
49 if [ -d "$d0/$d" ]; then
56 verbose git config remote.origin.url "$url"
61 verbose git remote prune origin
64 verbose git clone "$url" "$d0/$d"
71 if [ -z "$branch" ]; then
78 if git rev-parse "refs/heads/$branch" >/dev/null 2>&1; then
80 verbose git checkout "$branch"
81 elif git rev-parse "refs/remotes/$remote/$branch" >/dev/null 2>&1; then
83 verbose git checkout --track -b "$branch" "$remote/$branch"
85 verbose git checkout master
90 echo "The requested branch was not found in any repository."
97 if [ -z "$branch" ]; then
101 if [ -z "$branch" ]; then
104 r=`git symbolic-ref HEAD`
113 while [ x"$a" != x"y" -a x"$a" != x"n" ]; do
117 if [ x"$a" = x"y" ]; then
118 verbose git push "$remote" HEAD:"$branch"
119 verbose git checkout --track -b "$branch" "$remote/$branch"
125 export XONOTIC_FORBID_RERUN_ALL=1
131 git branch -a | sed 's/^/ /; /->/d'
134 export XONOTIC_FORBID_RERUN_ALL=1
139 r=`git symbolic-ref HEAD`
142 if git log "origin/$r".."$r" | grep .; then
143 while [ x"$a" != x"y" -a x"$a" != x"n" ]; do
144 echo "Push $r in $d?"
147 if [ x"$a" = x"y" ]; then
148 verbose git push `git config "branch.$r.remote" || echo origin` HEAD
153 export XONOTIC_FORBID_RERUN_ALL=1
156 if [ -z "$MAKEFLAGS" ]; then
157 if [ -f /proc/cpuinfo ]; then
158 ncpus=$((`grep -c '^processor :' /proc/cpuinfo`+0))
159 if [ $ncpus -gt 1 ]; then
164 verbose cd "$d0/fteqcc"
165 verbose make $MAKEFLAGS
166 verbose cd "$d0/data/xonotic-data.pk3dir"
167 verbose make FTEQCC="$d0/fteqcc/fteqcc.bin" $MAKEFLAGS
168 verbose cd "$d0/darkplaces"
169 verbose make $MAKEFLAGS sv-debug
170 verbose make $MAKEFLAGS cl-debug
171 verbose make $MAKEFLAGS sdl-debug
172 export XONOTIC_FORBID_RERUN_ALL=1
177 sdl|glx|agl|dedicated)
186 if ! [ -x "darkplaces/darkplaces$client" ]; then
187 if [ -x "darkplaces/darkplaces$client.exe" ]; then
190 echo "Client darkplaces/darkplaces$client not found, aborting"
194 #verbose "darkplaces/darkplaces$client" -xonotic "$@"
195 verbose "darkplaces/darkplaces$client" -nexuiz -customgamename Xonotic -customgamedirname1 data -customgamedirname2 "" -customgamescreenshotname xonotic -customgameuserdirname xonotic "$@"
196 export XONOTIC_FORBID_RERUN_ALL=1
204 export XONOTIC_FORBID_RERUN_ALL=1
211 echo " $0 branch <remote> <branchname>"
214 echo " $0 run <client> <options>"
215 echo " $0 each <command>"
216 export XONOTIC_FORBID_RERUN_ALL=1
221 if [ x"$self" != x"$self_new" ]; then
222 echo "./all has changed."
223 if [ -z "$XONOTIC_FORBID_RERUN_ALL" ]; then
224 echo "Rerunning the requested operation to make sure."
225 export XONOTIC_FORBID_RERUN_ALL=1
229 echo "Please try $0 update, and then retry your requested operation."