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
44 repos=`for X in $repos_urls; do echo "${X%%@*}"; done`
55 base=`git config remote.origin.url`
56 base=${base%xonotic.git}
57 for dcomplete in $repos_urls; do
70 if [ -d "$d0/$d" ]; then
77 verbose git config remote.origin.url "$url"
85 verbose git remote prune origin
88 verbose git clone "$url" "$d0/$d"
95 if [ -z "$branch" ]; then
102 if git rev-parse "refs/heads/$branch" >/dev/null 2>&1; then
104 verbose git checkout "$branch"
105 elif git rev-parse "refs/remotes/$remote/$branch" >/dev/null 2>&1; then
107 verbose git checkout --track -b "$branch" "$remote/$branch"
109 verbose git checkout master
115 echo "The requested branch was not found in any repository."
122 if [ -z "$branch" ]; then
126 if [ -z "$branch" ]; then
129 r=`git symbolic-ref HEAD`
138 while [ x"$a" != x"y" -a x"$a" != x"n" ]; do
142 if [ x"$a" = x"y" ]; then
143 verbose git push "$remote" HEAD:"$branch"
144 verbose git checkout --track -b "$branch" "$remote/$branch"
155 git branch -a | sed 's/^/ /; /->/d'
162 r=`git symbolic-ref HEAD`
165 if git log "origin/$r".."$r" | grep .; then
166 while [ x"$a" != x"y" -a x"$a" != x"n" ]; do
167 echo "Push $r in $d?"
170 if [ x"$a" = x"y" ]; then
171 verbose git push `git config "branch.$r.remote" || echo origin` HEAD
178 if [ -z "$MAKEFLAGS" ]; then
179 if [ -f /proc/cpuinfo ]; then
180 ncpus=$((`grep -c '^processor :' /proc/cpuinfo`+0))
181 if [ $ncpus -gt 1 ]; then
186 verbose cd "$d0/fteqcc"
187 verbose make $MAKEFLAGS
188 verbose cd "$d0/data/xonotic-data.pk3dir"
189 verbose make FTEQCC="$d0/fteqcc/fteqcc.bin" $MAKEFLAGS
190 verbose cd "$d0/darkplaces"
191 verbose make $MAKEFLAGS sv-debug
192 verbose make $MAKEFLAGS cl-debug
193 verbose make $MAKEFLAGS sdl-debug
198 sdl|glx|agl|dedicated)
207 if ! [ -x "darkplaces/darkplaces$client" ]; then
208 if [ -x "darkplaces/darkplaces$client.exe" ]; then
211 echo "Client darkplaces/darkplaces$client not found, aborting"
215 #verbose "darkplaces/darkplaces$client" -xonotic "$@"
216 verbose "darkplaces/darkplaces$client" -nexuiz -customgamename Xonotic -customgamedirname1 data -customgamedirname2 "" -customgamescreenshotname xonotic -customgameuserdirname xonotic "$@"
230 echo " $0 branch <remote> <branchname>"
233 echo " $0 run <client> <options>"
234 echo " $0 each <command>"