Add Alephone.
[gentoo-soor-overlay.git] / games-fps / alephone / files / alephone.sh
blob62ac98f85770d918d76e4b49055ea9eab5bea926
1 #!/bin/sh
3 DIR=$(dirname "${0}")
4 CMD=$(basename "${0}")
5 ALEPHONE=${CMD%%.sh}
7 if [[ -z "${1}" ]]
8 then
9 echo "Usage: ${0} SCENARIO FLAGS"
10 echo "Where SCENARIO is one of:"
11 for d in "GAMES_DATADIR"/alephone-*
13 echo " ${d##*/alephone-}"
14 done
15 exit 2
18 export ALEPHONE_DATA="GAMES_DATADIR/alephone-${1}"
20 shift
22 # kill ARTS, because we're just that nice
23 if artsshell terminate 2> /dev/null
24 then
25 sleep 2
28 "${DIR}"/"${ALEPHONE}" "$@"