Carp/scripts/build.sh
2020-11-14 15:28:17 +01:00

12 lines
190 B
Bash
Executable File

#!/usr/bin/env sh
if [ -z "$CARP" ]
then
if [ -z "$NIX_CC" ]
then
stack build
else
cabal build
fi
fi
command -v clang-format >/dev/null && clang-format -i core/*.h || true