#!/bin/bash
#
#  script for easy launching of IF games that should replace
#  /usr/games/runzcode that come with xzip-161-1.i386.rpm
#
#  Obviously, Red Hat chose /usr/lib/games/zcode as a default directory
#  for Z-files.
#
#  Thilo Mezger, 17-Apr-98
#

#  where to look for the actual Z-files
ZDIR=${INFOCOM_PATH:=/usr/lib/games/zcode}

ourname=`basename $0`
if [ -f ${ZDIR}/${ourname}.z? ]
then
    exec /usr/games/frotz ${ZDIR}/${ourname}.z?
else
    echo Z-file for $ourname not found in directory $ZDIR 1>&2
    echo Set INFOCOM_PATH to point to your Z-code directory. 1>&2
fi

