aboutsummaryrefslogtreecommitdiff
path: root/vendor/cabal-helper-0.8.1.2/scripts/ci/steps/00-config.sh
blob: eb8280a2f31f135562b8c147fa0f2f2a5b0ffd7c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
if [ -w . ]; then
        sandbox="$PWD"/.cabal-sandbox
        sandbox_config="$PWD"/cabal.sandbox.config
else
        sandbox="$HOME"/cabal-sandbox
        sandbox_config="$HOME"/cabal.sandbox.config
fi

source_dir="$(mktemp --tmpdir -d "cabal-helper.sdistXXXXXXXXX")"
build_dir="$(mktemp --tmpdir -d "cabal-helper.distXXXXXXXXX")"

NPROC=${NPROC:-1}