#!/bin/sh

if [ -e rogue ]
then

  if test -e rogue.save
  then
    ./rogue rogue.save
  else
    ./rogue
  fi

elif [ -x /usr/games/rogue ]
then

  cd $NOTEYECONFIG
  if test -e rogue.save
  then
    /usr/games/rogue rogue.save
  else
    /usr/games/rogue
  fi

else

echo Rogue not found on your system.
echo
echo Make sure that it can be run as \'/usr/games/rogue\' or \'./$2\'.
echo
echo For example, in Slackware you can install Rogue with:
echo
echo sbopkg -i rogue
echo
echo Otherwise, you can also run it manually from the prompt below.
echo
sh -l

fi
