14 if [ x"$self" != x"$self_new" ]; then
15 msg "./all has changed."
16 if [ -z "$XONOTIC_FORBID_RERUN_ALL" ]; then
17 msg "Rerunning the requested operation to make sure."
18 export XONOTIC_FORBID_RERUN_ALL=1
21 msg "Please try $0 update, and then retry your requested operation."
36 data/xonotic-data.pk3dir
37 data/xonotic-maps.pk3dir
38 data/xonotic-music.pk3dir
39 data/xonotic-nexcompat.pk3dir
41 fteqcc@git://github.com/Blub/qclib.git
42 div0-gittools@git://git.icculus.org/divverent/div0-gittools.git
45 repos=`for X in $repos_urls; do echo "${X%%@*}"; done`
56 base=`git config remote.origin.url`
57 base=${base%xonotic.git}
58 for dcomplete in $repos_urls; do
71 if [ -d "$d0/$d" ]; then
78 verbose git config remote.origin.url "$url"
86 verbose git remote prune origin
89 verbose git clone "$url" "$d0/$d"
96 if [ -z "$branch" ]; then
103 if git rev-parse "refs/heads/$branch" >/dev/null 2>&1; then
105 verbose git checkout "$branch"
106 elif git rev-parse "refs/remotes/$remote/$branch" >/dev/null 2>&1; then
108 verbose git checkout --track -b "$branch" "$remote/$branch"
110 verbose git checkout master
116 echo "The requested branch was not found in any repository."
123 if [ -z "$branch" ]; then
127 if [ -z "$branch" ]; then
130 r=`git symbolic-ref HEAD`
139 while [ x"$a" != x"y" -a x"$a" != x"n" ]; do
143 if [ x"$a" = x"y" ]; then
144 verbose git push "$remote" HEAD:"$branch"
145 verbose git checkout --track -b "$branch" "$remote/$branch"
156 git branch -a | sed 's/^/ /; /->/d'
163 r=`git symbolic-ref HEAD`
166 if git log "origin/$r".."$r" | grep .; then
167 while [ x"$a" != x"y" -a x"$a" != x"n" ]; do
168 echo "Push $r in $d?"
171 if [ x"$a" = x"y" ]; then
172 verbose git push `git config "branch.$r.remote" || echo origin` HEAD
179 if [ -z "$MAKEFLAGS" ]; then
180 if [ -f /proc/cpuinfo ]; then
181 ncpus=$((`grep -c '^processor :' /proc/cpuinfo`+0))
182 if [ $ncpus -gt 1 ]; then
187 verbose cd "$d0/fteqcc"
188 verbose make $MAKEFLAGS
189 verbose cd "$d0/data/xonotic-data.pk3dir"
190 verbose make FTEQCC="$d0/fteqcc/fteqcc.bin" $MAKEFLAGS
191 verbose cd "$d0/darkplaces"
192 verbose make $MAKEFLAGS sv-debug
193 verbose make $MAKEFLAGS cl-debug
194 verbose make $MAKEFLAGS sdl-debug
199 sdl|glx|agl|dedicated)
208 if ! [ -x "darkplaces/darkplaces$client" ]; then
209 if [ -x "darkplaces/darkplaces$client.exe" ]; then
212 echo "Client darkplaces/darkplaces$client not found, aborting"
216 #verbose "darkplaces/darkplaces$client" -xonotic "$@"
217 verbose "darkplaces/darkplaces$client" -nexuiz -customgamename Xonotic -customgamedirname1 data -customgamedirname2 "" -customgamescreenshotname xonotic -customgameuserdirname xonotic "$@"
231 echo " $0 branch <remote> <branchname>"
234 echo " $0 run <client> <options>"
235 echo " $0 each <command>"