Last active
April 14, 2016 09:53
-
-
Save kaoskorobase/b0398dc5891700841d36 to your computer and use it in GitHub Desktop.
Our goto shake build script these days
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 -e | |
SHAKE_ARGS="-j" | |
which stack 1>/dev/null \ | |
|| (echo "Please install stack from http://haskellstack.org" ; exit 1) | |
stack build # --no-system-ghc --install-ghc | |
# Note: `stack exec` is problematic on Windows because stack includes a separate MinGW environment. | |
# Execute build script directly instead. | |
`stack path --local-install-root`/bin/EXECUTABLE_FROM_CABAL_FILE $SHAKE_ARGS "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment