#!/bin/sh

USAGE="\
Alien Arena browser wrapper\n\
This script is Debian specific, it is *NOT* part of the source distribution!\n\
Usage: alien-arena-browser [OPTION]\n\
\n\
 -h, --help\t\tDisplay this help\n\
 -q, --quiet\t\tDisable console output\n\
\n\
More information on using this script can be found in the\n\
alien-arena-browser(6) man page.\n"

QUIET=0

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

cd /usr/share/games/alien-arena-browser
if [ ${QUIET} = 1 ]; then
	exec /usr/share/games/alien-arena-browser/browser.rbw >/dev/null 2>&1
else
	exec /usr/share/games/alien-arena-browser/browser.rbw
fi
