# this builds all libraries and executables (without tests/benchmarks)
## from here on, CWD is inside the extracted source-tarball
-cabal new-build -w ${HC} --disable-tests --disable-benchmarks all
-rm -fv cabal.project.local
-"echo'packages:.'>cabal.project"
# Build with installed constraints for packages in global-db
# this builds all libraries and executables (without tests/benchmarks)
-if $INSTALLED; then echo cabal new-build -w ${HC} --disable-tests --disable-benchmarks $(${HCPKG} list --global --simple-output --names-only | sed 's/\([a-zA-Z0-9-]\{1,\}\) */--constraint="\1 installed" /g') all | sh; else echo "Not building with installed constraints"; fi
-rm -f cabal.project.freeze
-cabal new-build -w ${HC} --disable-tests --disable-benchmarks all
# this builds all libraries and executables (including tests/benchmarks)
# - rm -rf ./dist-newstyle
# Build with installed constraints for packages in global-db
# build & run tests, build benchmarks
-if $INSTALLED; then
-cabal new-build -w ${HC} ${TEST} ${BENCH} all
echo cabal new-build -w ${HC} --disable-tests --disable-benchmarks $(${HCPKG} list --global --simple-output --names-only | sed 's/\([a-zA-Z0-9-]\{1,\}\) */--constraint="\1 installed" /g') all | sh;
-if [ "x$TEST" = "x--enable-tests" ]; then cabal new-test -w ${HC} ${TEST} ${BENCH} all; fi
else echo "Not building with installed constraints"; fi