aboutsummaryrefslogtreecommitdiff
path: root/scripts/ci/steps/00-config.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/ci/steps/00-config.sh')
-rw-r--r--scripts/ci/steps/00-config.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/ci/steps/00-config.sh b/scripts/ci/steps/00-config.sh
new file mode 100644
index 0000000..b628abd
--- /dev/null
+++ b/scripts/ci/steps/00-config.sh
@@ -0,0 +1,10 @@
+if [ -w . ]; then
+ sandbox=./.cabal-sandbox
+ sandbox_config=./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")"