#!/bin/sh EXCUSE="\ OpenArena client wrapper\n\ This script is Debian specific, it is *NOT* part of the source distribution!\n\ Usage: openarena [OPTION]...\n\ \n\ -h, --help Display this help\n\ -q, --quiet Disable console output\n\ + Pass options to the OpenArena client binary\n" QUIET=0 while [ "$1" != "" ]; do { if [ "$1" = "+set" ] || [ "$1" = "+exec" ]; then break; fi case "$1" in -h|--help) echo -e ${EXCUSE} exit 0 ;; -q|--quiet) QUIET=1 ;; esac shift }; done if [ ${QUIET} -eq 1 ]; then exec /usr/lib/games/openarena/openarena.bin +set fs_basepath /usr/share/games/openarena +set ttycon 0 "$@" >/dev/null 2>&1 else exec /usr/lib/games/openarena/openarena.bin +set fs_basepath /usr/share/games/openarena "$@" fi