git @ Cat's Eye Technologies Pail / rel_1_0_2021_1206 bin / pail
rel_1_0_2021_1206

Tree @rel_1_0_2021_1206 (Download .tar.gz)

pail @rel_1_0_2021_1206raw · history · blame

#!/bin/sh

THIS=`realpath $0`
DIR=`dirname $THIS`
NAME=`basename $THIS`
SRC=$DIR/../src
if [ "x$FORCE_HUGS" != "x" ] ; then
    exec runhugs -i$SRC $SRC/Main.hs $*
elif [ -x $DIR/$NAME.exe ] ; then
    exec $DIR/$NAME.exe $*
elif command -v runhaskell 2>&1 >/dev/null ; then
    exec runhaskell -i$SRC $SRC/Main.hs $*
elif command -v runhugs 2>&1 >/dev/null ; then
    exec runhugs -i$SRC $SRC/Main.hs $*
else
    echo "Cannot run $NAME; neither $NAME.exe, nor runhaskell, nor runhugs found."
    exit 1
fi