#!/bin/sh
# this script will only be called under AES 4.x
# its path must be /usr/local/bin/
# trying lps.ttp, GEMJing.app and /dev/audio
# $1 is a quoted DOS filename
# caution: [(1) is a program; it is not part of GEM-init
#
if [ -f /usr/bin/lps.ttp ] ; then
  exec /usr/bin/lps.ttp -v 2000 $1 >/var/log/lps.log
elif [ -f /usr/bin/gemjing.prg ] ; then
# cd /usr/bin
  x.gtp gemjing.prg -q $1
else
  if [ -c /dev/audio ] ; then
    cp $1 /dev/audio >/dev/null &
  fi
fi