Last active
August 29, 2015 14:20
-
-
Save bitc/867d08eb35b325b2fc85 to your computer and use it in GitHub Desktop.
Build wrapper script for Shake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# This script assumes that Build.hs is the only build script (it should not | |
# import any other local files) | |
set -e | |
if [ ! _shake/build -nt Build.hs ]; then | |
mkdir -p _shake || exit 1 | |
ghc --make Build.hs -rtsopts -with-rtsopts=-I0 -outputdir=_shake -o _shake/build || exit 1 | |
fi | |
_shake/build "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment