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`
63 base=`git config remote.origin.url`
64 base=${base%xonotic.git}
65 for dcomplete in $repos_urls; do
78 if [ -d "$d0/$d" ]; then
85 verbose git config remote.origin.url "$url"
93 verbose git remote prune origin
96 verbose git clone "$url" "$d0/$d"
103 if [ -z "$branch" ]; then
110 if git rev-parse "refs/heads/$branch" >/dev/null 2>&1; then
112 verbose git checkout "$branch"
113 elif git rev-parse "refs/remotes/$remote/$branch" >/dev/null 2>&1; then
115 verbose git checkout --track -b "$branch" "$remote/$branch"
117 verbose git checkout master
123 echo "The requested branch was not found in any repository."
130 if [ -z "$branch" ]; then
134 if [ -z "$branch" ]; then
137 r=`git symbolic-ref HEAD`
146 while [ x"$a" != x"y" -a x"$a" != x"n" ]; do
147 echo "Branch in \"$d\"?"
150 if [ x"$a" = x"y" ]; then
151 verbose git push "$remote" HEAD:"$branch"
152 verbose git checkout --track -b "$branch" "$remote/$branch"
163 git branch -a | sed 's/^/ /; /->/d'
170 r=`git symbolic-ref HEAD`
172 if git diff HEAD | grep .; then
173 # we have uncommitted changes
175 while [ x"$a" != x"y" -a x"$a" != x"n" ]; do
176 echo "Uncommitted changes in \"$r\" in \"$d\". Commit?"
179 if [ x"$a" = x"y" ]; then
180 verbose git commit -a
183 if git log "origin/$r".."$r" | grep .; then
185 while [ x"$a" != x"y" -a x"$a" != x"n" ]; do
186 echo "Push \"$r\" in \"$d\"?"
189 if [ x"$a" = x"y" ]; then
190 verbose git push `git config "branch.$r.remote" || echo origin` HEAD
197 if [ -z "$MAKEFLAGS" ]; then
198 if [ -f /proc/cpuinfo ]; then
199 ncpus=$((`grep -c '^processor :' /proc/cpuinfo`+0))
200 if [ $ncpus -gt 1 ]; then
205 verbose cd "$d0/fteqcc"
206 verbose make $MAKEFLAGS
207 verbose cd "$d0/data/xonotic-data.pk3dir"
208 verbose make FTEQCC="$d0/fteqcc/fteqcc.bin" $MAKEFLAGS
209 verbose cd "$d0/darkplaces"
210 verbose make $MAKEFLAGS sv-debug
211 verbose make $MAKEFLAGS cl-debug
212 verbose make $MAKEFLAGS sdl-debug
217 sdl|glx|agl|dedicated)
226 if ! [ -x "darkplaces/darkplaces$client" ]; then
227 if [ -x "darkplaces/darkplaces$client.exe" ]; then
230 echo "Client darkplaces/darkplaces$client not found, aborting"
234 #verbose "darkplaces/darkplaces$client" -xonotic "$@"
235 verbose "darkplaces/darkplaces$client" -nexuiz -customgamename Xonotic -customgamedirname1 data -customgamedirname2 "" -customgamescreenshotname xonotic -customgameuserdirname xonotic "$@"
249 echo " $0 branch <remote> <branchname>"
252 echo " $0 run <client> <options>"
253 echo " $0 each <command>"