#!/bin/sh
+if [ -d "${0%/*}" ]; then
+ cd "${0%/*}"
+fi
+
if ! which rsync >/dev/null; then
echo >&2 "FATAL: rsync not found, please install the rsync package"
exit 1
elif [ -d "Xonotic-high" ]; then
url="rsync://beta.xonotic.org/autobuild-Xonotic-high/"
target="Xonotic-high/"
-elif [ -d "../../../data/.git" ]; then
+elif [ -d "../../../.git" ]; then
echo >&2 "NOTE: this is a git repository download. Using the regular update method."
exec ../../../all update
elif [ -d "../../../data" ]; then
excludes="$excludes --exclude=/Xonotic*.app"
excludes="$excludes --exclude=/xonotic-osx-*"
excludes="$excludes --exclude=/fteqcc/fteqcc.osx"
- excludes="$excludes --exclude=/xonotic-linux32-*"
- excludes="$excludes --exclude=/fteqcc/fteqcc.linux32"
+ if [ -z "$XONOTIC_INCLUDE_32BIT" ]; then
+ excludes="$excludes --exclude=/xonotic-linux32-*"
+ excludes="$excludes --exclude=/fteqcc/fteqcc.linux32"
+ fi
;;
Linux:i?86)
excludes="$excludes --exclude=/Xonotic*.app"