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 ;)
27 export d0="$d00/${0%/all}"
32 $ECHO "Cannot find myself."
33 $ECHO "Please run this script with the working directory inside a Xonotic checkout."
40 # If we are on WINDOWS:
45 # Windows hates users. So this script has to copy itself elsewhere first...
46 cp "$SELF" ../all.xonotic.sh
47 export WE_HATE_OUR_USERS=1
48 exec ../all.xonotic.sh "$@"
56 $ECHO >&2 "$ESC""[1m$*$ESC""[m"
59 self=`git hash-object "$SELF"`
62 self_new=`git hash-object "$SELF"`
63 if [ x"$self" != x"$self_new" ]; then
64 msg "./all has changed."
65 if [ -z "$XONOTIC_FORBID_RERUN_ALL" ]; then
66 msg "Rerunning the requested operation to make sure."
67 export XONOTIC_FORBID_RERUN_ALL=1
70 msg "Please try $SELF update, and then retry your requested operation."
86 while [ x"$yesno" != x"y" -a x"$yesno" != x"n" ]; do
89 if ! IFS= read -r yesno; then
100 check_mergeconflict "$1" # defined in git.subr
103 if [ "$#" = 0 ]; then
110 . "$d0/misc/tools/all/config.subr"
114 . "$d0/misc/tools/all/git.subr" "$@"
117 $handled || . "$d0/misc/tools/all/release.subr" "$@"
118 $handled || . "$d0/misc/tools/all/xonotic.subr" "$@"
121 if [ x"$cmd" != x"help" ]; then
122 $ECHO "Run $SELF help for help."