diff options
Diffstat (limited to 'games-fps/alephone/files')
-rw-r--r-- | games-fps/alephone/files/alephone.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/games-fps/alephone/files/alephone.sh b/games-fps/alephone/files/alephone.sh new file mode 100644 index 000000000000..3bb51c26b67c --- /dev/null +++ b/games-fps/alephone/files/alephone.sh @@ -0,0 +1,28 @@ +#!/usr/bin/env bash + +DIR=$(dirname "${0}") +CMD=$(basename "${0}") +ALEPHONE=${CMD%%.sh} + +if [[ -z "${1}" ]] +then + echo "Usage: ${0} SCENARIO FLAGS" + echo "Where SCENARIO is one of:" + for d in @GENTOO_PORTAGE_EPREFIX@/usr/share/alephone-* + do + echo " ${d##*/alephone-}" + done + exit 2 +fi + +DATA="@GENTOO_PORTAGE_EPREFIX@/usr/share/alephone-${1}" + +shift + +# kill ARTS, because we're just that nice +if artsshell terminate 2> /dev/null +then + sleep 2 +fi + +"${DIR}"/"${ALEPHONE}" "$@" "${DATA}" |