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`
57 base=`git config remote.origin.url`
58 base=${base%xonotic.git}
59 for dcomplete in $repos_urls; do
72 if [ -d "$d0/$d" ]; then
79 verbose git config remote.origin.url "$url"
87 verbose git remote prune origin
90 verbose git clone "$url" "$d0/$d"
97 if [ -z "$branch" ]; then
104 if git rev-parse "refs/heads/$branch" >/dev/null 2>&1; then
106 verbose git checkout "$branch"
107 elif git rev-parse "refs/remotes/$remote/$branch" >/dev/null 2>&1; then
109 verbose git checkout --track -b "$branch" "$remote/$branch"
111 verbose git checkout master
117 echo "The requested branch was not found in any repository."
124 if [ -z "$branch" ]; then
128 if [ -z "$branch" ]; then
131 r=`git symbolic-ref HEAD`
140 while [ x"$a" != x"y" -a x"$a" != x"n" ]; do
141 echo "Branch in \"$d\"?"
144 if [ x"$a" = x"y" ]; then
145 verbose git push "$remote" HEAD:"$branch"
146 verbose git checkout --track -b "$branch" "$remote/$branch"
157 git branch -a | sed 's/^/ /; /->/d'
164 r=`git symbolic-ref HEAD`
167 if git diff HEAD | grep .; then
168 # we have uncommitted changes
169 while [ x"$a" != x"y" -a x"$a" != x"n" ]; do
170 echo "Uncommitted changes in \"$r\" in \"$d\". Commit?"
173 if [ x"$a" = x"y" ]; then
174 verbose git commit -a
177 if git log "origin/$r".."$r" | grep .; then
178 while [ x"$a" != x"y" -a x"$a" != x"n" ]; do
179 echo "Push \"$r\" in \"$d\"?"
182 if [ x"$a" = x"y" ]; then
183 verbose git push `git config "branch.$r.remote" || echo origin` HEAD
190 if [ -z "$MAKEFLAGS" ]; then
191 if [ -f /proc/cpuinfo ]; then
192 ncpus=$((`grep -c '^processor :' /proc/cpuinfo`+0))
193 if [ $ncpus -gt 1 ]; then
198 verbose cd "$d0/fteqcc"
199 verbose make $MAKEFLAGS
200 verbose cd "$d0/data/xonotic-data.pk3dir"
201 verbose make FTEQCC="$d0/fteqcc/fteqcc.bin" $MAKEFLAGS
202 verbose cd "$d0/darkplaces"
203 verbose make $MAKEFLAGS sv-debug
204 verbose make $MAKEFLAGS cl-debug
205 verbose make $MAKEFLAGS sdl-debug
210 sdl|glx|agl|dedicated)
219 if ! [ -x "darkplaces/darkplaces$client" ]; then
220 if [ -x "darkplaces/darkplaces$client.exe" ]; then
223 echo "Client darkplaces/darkplaces$client not found, aborting"
227 #verbose "darkplaces/darkplaces$client" -xonotic "$@"
228 verbose "darkplaces/darkplaces$client" -nexuiz -customgamename Xonotic -customgamedirname1 data -customgamedirname2 "" -customgamescreenshotname xonotic -customgameuserdirname xonotic "$@"
242 echo " $0 branch <remote> <branchname>"
245 echo " $0 run <client> <options>"
246 echo " $0 each <command>"