#!/bin/sh
PARAMS="-basedir /usr/share/games/nexuiz"

EXCUSE="\
Nexuiz server wrapper\n\
This script is Debian specific, it is *NOT* part of the source distribution!\n\
Usage: nexuiz-server [OPTION]...\n\
\n\
 -h, --help\t\tDisplay this help\n\
 +<internal command>\tPass options to the game engine. For the server this is\n\
\t\t\toftern used to execute server configuration files.\n\
\t\t\tFor example 'nexuiz-server +exec my_server.cfg'"

case "$1" in
	-h|--help)
		echo -e ${EXCUSE}
		exit 0;
	;;
esac

# Ready to rumble!
exec /usr/lib/games/nexuiz/nexuiz-server.bin $PARAMS "$@"
