5 if [ -n "$ZSH_VERSION" ]; then
8 if [ -z "$ECHO" ]; then
9 if echo "\\\\" | grep .. >/dev/null; then
16 # I use this in EVERY shell script ;)
22 while ! [ -f ./all ]; do
23 if [ x"`pwd`" = x"/" ]; then
24 $ECHO "Cannot find myself."
25 $ECHO "Please run this script with the working directory inside a Xonotic checkout."
33 # If we are on WINDOWS:
38 # Windows hates users. So this script has to copy itself elsewhere first...
39 cp "$SELF" ../all.xonotic.sh
40 export WE_HATE_OUR_USERS=1
41 exec ../all.xonotic.sh "$@"
49 $ECHO >&2 "$ESC""[1m$*$ESC""[m"
52 self=`git hash-object "$SELF"`
55 self_new=`git hash-object "$SELF"`
56 if [ x"$self" != x"$self_new" ]; then
57 msg "./all has changed."
58 if [ -z "$XONOTIC_FORBID_RERUN_ALL" ]; then
59 msg "Rerunning the requested operation to make sure."
60 export XONOTIC_FORBID_RERUN_ALL=1
63 msg "Please try $SELF update, and then retry your requested operation."
79 while [ x"$yesno" != x"y" -a x"$yesno" != x"n" ]; do
82 if ! IFS= read -r yesno; then
93 check_mergeconflict "$1" # defined in git.subr
103 . "$d0/misc/tools/all/config.subr"
107 . "$d0/misc/tools/all/git.subr" "$@"
110 $handled || . "$d0/misc/tools/all/release.subr" "$@"
111 $handled || . "$d0/misc/tools/all/xonotic.subr" "$@"
114 if [ x"$cmd" != x"help" ]; then
115 $ECHO "Run $SELF help for help."