Skip to content

Instantly share code, notes, and snippets.

@bitc
Last active August 29, 2015 14:20
Show Gist options
  • Save bitc/867d08eb35b325b2fc85 to your computer and use it in GitHub Desktop.
Save bitc/867d08eb35b325b2fc85 to your computer and use it in GitHub Desktop.
Build wrapper script for Shake
#!/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