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
46 repos=`for X in $repos_urls; do echo "${X%%@*}"; done`
64 base=`git config remote.origin.url`
65 base=${base%xonotic.git}
66 for dcomplete in $repos_urls; do
79 if [ -d "$d0/$d" ]; then
86 verbose git config remote.origin.url "$url"
94 verbose git remote prune origin
97 verbose git clone "$url" "$d0/$d"
104 if [ -z "$branch" ]; then
111 if git rev-parse "refs/heads/$branch" >/dev/null 2>&1; then
113 verbose git checkout "$branch"
114 elif git rev-parse "refs/remotes/$remote/$branch" >/dev/null 2>&1; then
116 verbose git checkout --track -b "$branch" "$remote/$branch"
118 verbose git checkout master
125 echo "The requested branch was not found in any repository."
132 if [ -z "$branch" ]; then
136 if [ -z "$branch" ]; then
139 r=`git symbolic-ref HEAD`
148 while [ x"$a" != x"y" -a x"$a" != x"n" ]; do
149 echo "Branch in \"$d\"?"
152 if [ x"$a" = x"y" ]; then
153 verbose git push "$remote" HEAD:"$branch"
154 verbose git checkout --track -b "$branch" "$remote/$branch"
165 git branch -a | sed 's/^/ /; /->/d'
172 r=`git symbolic-ref HEAD`
174 if git diff HEAD | grep .; then
175 # we have uncommitted changes
177 while [ x"$a" != x"y" -a x"$a" != x"n" ]; do
178 echo "Uncommitted changes in \"$r\" in \"$d\". Commit?"
181 if [ x"$a" = x"y" ]; then
182 verbose git commit -a
185 if git log "origin/$r".."$r" | grep .; then
187 while [ x"$a" != x"y" -a x"$a" != x"n" ]; do
188 echo "Push \"$r\" in \"$d\"?"
191 if [ x"$a" = x"y" ]; then
192 verbose git push `git config "branch.$r.remote" || echo origin` HEAD
199 if [ -z "$MAKEFLAGS" ]; then
200 if [ -f /proc/cpuinfo ]; then
201 ncpus=$((`grep -c '^processor :' /proc/cpuinfo`+0))
202 if [ $ncpus -gt 1 ]; then
207 verbose cd "$d0/fteqcc"
208 verbose make $MAKEFLAGS
209 verbose cd "$d0/data/xonotic-data.pk3dir"
210 verbose make FTEQCC="$d0/fteqcc/fteqcc.bin" $MAKEFLAGS
211 verbose cd "$d0/darkplaces"
212 verbose make $MAKEFLAGS sv-debug
213 verbose make $MAKEFLAGS cl-debug
214 verbose make $MAKEFLAGS sdl-debug
219 sdl|glx|agl|dedicated)
228 if ! [ -x "darkplaces/darkplaces$client" ]; then
229 if [ -x "darkplaces/darkplaces$client.exe" ]; then
232 echo "Client darkplaces/darkplaces$client not found, aborting"
236 #verbose "darkplaces/darkplaces$client" -xonotic "$@"
237 verbose "darkplaces/darkplaces$client" -nexuiz -customgamename Xonotic -customgamedirname1 data -customgamedirname2 "" -customgamescreenshotname xonotic -customgameuserdirname xonotic "$@"
251 echo " $0 branch <remote> <branchname>"
254 echo " $0 run <client> <options>"
255 echo " $0 each <command>"