git @ Cat's Eye Technologies Quylthulg / 7393a5d
So hard to decide sometimes, but leaning towards this approach. Chris Pressey 1 year, 4 months ago
6 changed file(s) with 21 addition(s) and 27 deletion(s). Raw diff Collapse all Expand all
00 *.hi
11 *.o
22 *.jsmod
3 bin/qlzqqlzuup
3 bin/*.exe
44 demo/qlzqqlzuup.js
0 #!/bin/sh
1
2 THIS=`realpath $0`
3 DIR=`dirname $THIS`
4 NAME=`basename $THIS`
5 SRC=$DIR/../src
6 if [ -x $DIR/$NAME.exe ] ; then
7 exec $DIR/$NAME.exe $*
8 elif command -v runhaskell 2>&1 >/dev/null ; then
9 exec runhaskell -i$SRC $SRC/Main.hs $*
10 elif command -v runhugs 2>&1 >/dev/null ; then
11 exec runhugs -i$SRC $SRC/Main.hs $*
12 else
13 echo "Cannot run $NAME; neither $NAME.exe, runhaskell, nor runhugs found."
14 exit 1
15 fi
+0
-5
bin/qlzqqlzuup_runhaskell less more
0 #!/bin/sh
1
2 THIS=`realpath $0`
3 DIR=`dirname $THIS`/../src
4 ( runhaskell -i$DIR $DIR/Main.hs $* )
22 PROG=qlzqqlzuup
33
44 if command -v ghc >/dev/null 2>&1; then
5 echo "building $PROG with ghc"
6 (cd src && ghc --make Main.hs -o ../bin/$PROG)
5 echo "building $PROG.exe with ghc"
6 (cd src && ghc --make Main.hs -o ../bin/$PROG.exe)
77 else
8 echo "ghc not found, not building $PROG"
8 echo "ghc not found, not building $PROG.exe"
99 fi
1010
1111 if command -v hastec >/dev/null 2>&1; then
00 #!/bin/sh
11
2 APPLIANCES=""
3 if [ -x bin/qlzqqlzuup ]; then
4 APPLIANCES="$APPLIANCES tests/appliances/qlzqqlzuup.md"
5 fi
6 if command -v runhaskell >/dev/null 2>&1; then
7 APPLIANCES="$APPLIANCES tests/appliances/qlzqqlzuup_runhaskell.md"
8 fi
9 if [ "${APPLIANCES}x" = x ]; then
10 echo "Neither bin/qlzqqlzuup executable nor runhaskell found on search path."
11 exit 1
12 fi
2 APPLIANCES="tests/appliances/qlzqqlzuup.md"
133 falderal $APPLIANCES tests/Quylthulg.markdown
+0
-7
tests/appliances/qlzqqlzuup_runhaskell.md less more
0 -> Functionality "Interpret Quylthulg Program" is implemented by
1 -> shell command
2 -> "bin/qlzqqlzuup_runhaskell %(test-body-file)"
3
4 -> Functionality "Interpret Quylthulg Program" is implemented by
5 -> shell command
6 -> "bin/qlzqqlzuup_runhaskell -m %(test-body-file)"