Carp/scripts/build.sh

12 lines
190 B
Bash
Raw Normal View History

2020-11-14 17:28:17 +03:00
#!/usr/bin/env sh
2019-09-24 22:56:12 +03:00
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