#!/bin/sh

EXCUSE="\
Nexuiz client wrapper\n\
This script is Debian specific, it is *NOT* part of the source distribution!\n\
Usage: nexuiz [OPTION]...\n\
\n\
 -h, --help\t\tDisplay this help\n\
 -q, --quiet\t\tDisable console output\n\
 +set option value\tPass options to the Nexuiz binary\n"

QUIET=0

case "$1" in
	-h|--help)
		echo -e ${EXCUSE}
		exit 0
		;;
	-q|--quiet)
		QUIET=1
		shift
		;;
esac

# Ready to rumble!
cd /usr/lib/games/nexuiz
if [ ${QUIET} == 1 ]; then
	./nexuiz-sdl $* >/dev/null 2>&1
else
	./nexuiz-sdl $*
fi
exit $?
