git @ Cat's Eye Technologies Burro / 19faf00
Make build.sh work with containerized hastec. Chris Pressey 2 years ago
1 changed file(s) with 1 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
88 echo "ghc not found, not building $PROG.exe"
99 fi
1010
11 # For this to work, you need hastec installed.
12
1311 if command -v hastec >/dev/null 2>&1; then
1412 echo "building $PROG.js with hastec"
15 (cd src && hastec --make HasteMain.hs -o ../demo/$PROG.js)
13 (cd src && hastec --make HasteMain.hs -o $PROG.js && mv $PROG.js ../demo/$PROG.js)
1614 else
1715 echo "hastec not found, not building $PROG.js"
1816 fi