git @ Cat's Eye Technologies Iphigeneia / c764756
Make build and test a bit more paradigmatic. Cat's Eye Technologies 8 years ago
2 changed file(s) with 6 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
00 #!/bin/sh
1
2 PROG=iphi
13
24 if [ x`which ghc` = x -a x`which runhugs` = x ]; then
35 echo "Neither ghc nor runhugs found on search path."
810
911 if [ x`which ghc` = x -o ! x$USE_HUGS = x ]; then
1012 # create script to run with Hugs
11 cat >bin/iphi <<'EOF'
13 cat >bin/$PROG <<'EOF'
1214 #!/bin/sh
1315 THIS=`realpath $0`
1416 DIR=`dirname $THIS`/../src
1517 runhugs $DIR/Main.hs $*
1618 EOF
17 chmod 755 bin/iphi
19 chmod 755 bin/$PROG
1820 else
19 cd src && ghc --make Main.hs -o ../bin/iphi
21 cd src && ghc --make Main.hs -o ../bin/$PROG
2022 fi
00 #!/bin/sh
11
2 falderal test tests/Iphigeneia.markdown
2 ./build.sh && falderal test tests/Iphigeneia.markdown