git @ Cat's Eye Technologies Quylthulg / adce3c6
Support FORCE_HUGS. Chris Pressey 5 years ago
1 changed file(s) with 4 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
33 DIR=`dirname $THIS`
44 NAME=`basename $THIS`
55 SRC=$DIR/../src
6 if [ -x $DIR/$NAME.exe ] ; then
6 if [ "x$FORCE_HUGS" != "x" ] ; then
7 exec runhugs -i$SRC $SRC/Main.hs $*
8 elif [ -x $DIR/$NAME.exe ] ; then
79 exec $DIR/$NAME.exe $*
810 elif command -v runhaskell 2>&1 >/dev/null ; then
911 exec runhaskell -i$SRC $SRC/Main.hs $*
1012 elif command -v runhugs 2>&1 >/dev/null ; then
1113 exec runhugs -i$SRC $SRC/Main.hs $*
1214 else
13 echo "Cannot run $NAME; neither $NAME.exe, runhaskell, nor runhugs found."
15 echo "Cannot run $NAME; neither $NAME.exe, nor runhaskell, nor runhugs found."
1416 exit 1
1517 fi