Carp/scripts/carp.sh

14 lines
220 B
Bash
Raw Permalink Normal View History

2020-11-14 17:28:17 +03:00
#!/usr/bin/env sh
2019-09-21 00:39:04 +03:00
if [ -z "$CARP" ]
then
if [ -z "$NIX_CC" ]
then
CARP="stack exec carp"
2019-09-21 00:39:04 +03:00
else
CARP="cabal -v0 run carp"
2019-09-21 00:39:04 +03:00
fi
2020-05-12 21:24:40 +03:00
CARP="$CARP $BUILD_OPTS --"
2019-09-21 00:39:04 +03:00
fi
export CARP_DIR=`pwd`
2020-05-12 21:24:40 +03:00
$CARP $CARP_OPTS "$@"