You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
442 B
29 lines
442 B
#!/bin/sh
|
|
|
|
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 "GAMES_DATADIR"/alephone-*
|
|
do
|
|
echo " ${d##*/alephone-}"
|
|
done
|
|
exit 2
|
|
fi
|
|
|
|
export ALEPHONE_DATA="GAMES_DATADIR/alephone-${1}"
|
|
|
|
shift
|
|
|
|
# kill ARTS, because we're just that nice
|
|
if artsshell terminate 2> /dev/null
|
|
then
|
|
sleep 2
|
|
fi
|
|
|
|
"${DIR}"/"${ALEPHONE}" "$@"
|