+d00=`pwd`
+while ! [ -f ./all ]; do
+ if [ x"`pwd`" = x"/" ]; then
+ echo "Cannot find myself."
+ echo "Please run this script with the working directory inside a Xonotic checkout."
+ exit 1
+ fi
+ cd ..
+done
+d0=`pwd`
+SELF="$d0/all"
+
+# If we are on WINDOWS:
+case "$0" in
+ all|*/all)
+ case "`uname`" in
+ MINGW*|Win*)
+ # Windows hates users. So this script has to copy itself elsewhere first...
+ tname=
+ cp "$SELF" ../all.xonotic.sh
+ export WE_HATE_OUR_USERS=1
+ exec ../all.xonotic.sh "$@"
+ ;;
+ esac
+ ;;
+esac
+
+msg()
+{
+ echo "\e[1m$*\e[m"
+}
+
+checksum()
+{
+ if [ -x /usr/bin/md5sum ]; then
+ /usr/bin/md5sum "$@"
+ elif [ -x /bin/md5sum ]; then
+ /bin/md5sum "$@"
+ elif [ -x /usr/bin/cksum ]; then
+ /usr/bin/cksum "$@"
+ else
+ echo "NOCHECKSUM"
+ fi
+}
+
+self=`checksum "$SELF"`
+checkself()
+{
+ self_new=`checksum "$SELF"`
+ if [ x"$self" != x"$self_new" ]; then
+ msg "./all has changed."
+ if [ -z "$XONOTIC_FORBID_RERUN_ALL" ]; then
+ msg "Rerunning the requested operation to make sure."
+ export XONOTIC_FORBID_RERUN_ALL=1
+ exec "$SELF" "$@"
+ else
+ msg "Please try $SELF update, and then retry your requested operation."
+ exit 1
+ fi
+ fi
+ return 0
+}
+
+verbose()
+{
+ msg "+ $*"
+ "$@"
+}
+
+visible_repo_name()
+{
+ case "$1" in
+ .)
+ echo "the root directory"
+ ;;
+ *)
+ echo "\"$1\""
+ ;;
+ esac
+}
+
+check_mergeconflict()
+{
+ if git ls-files -u | grep ' 1 '; then
+ echo
+ echo "MERGE CONFLICT."
+ echo "change into the \"$1\" project directory, and then:"
+ echo "- edit the files mentioned above with your favorite editor,"
+ echo " and fix the conflicts (marked with <<<<<<< blocks)"
+ echo "- for binary files, you can select the files using"
+ echo " git checkout --ours or git checkout --theirs"
+ echo "- when done with a file, 'git add' the file"
+ echo "- when done, 'git commit'"
+ echo
+ exit 1
+ fi
+}
+
+enter()
+{
+ $2 cd "$1"
+ check_mergeconflict "$1"
+}
+
+repos_urls="
+. | | master
+data/xonotic-data.pk3dir | | master
+data/xonotic-maps.pk3dir | | master
+data/xonotic-music.pk3dir | | master
+data/xonotic-nexcompat.pk3dir | | master
+darkplaces | | div0-stable
+fteqcc | git://github.com/Blub/qclib.git | master
+div0-gittools | git://git.icculus.org/divverent/div0-gittools.git | master
+netradiant | | master