git @ Cat's Eye Technologies Flobnar / rel_0_1_2019_0328 bin / flobnar
rel_0_1_2019_0328

Tree @rel_0_1_2019_0328 (Download .tar.gz)

flobnar @rel_0_1_2019_0328raw · history · blame

#!/bin/sh

THIS=`realpath $0`
DIR=`dirname $THIS`
NAME=`basename $THIS`
SRC=$DIR/../src
if [ -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