blob: 62ac98f85770d918d76e4b49055ea9eab5bea926 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/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}" "$@"
|