diff options
author | Daniel Gröber <dxld@darkboxed.org> | 2017-09-19 21:51:35 +0200 |
---|---|---|
committer | Daniel Gröber <dxld@darkboxed.org> | 2017-09-19 22:00:56 +0200 |
commit | b452f1bec5c041cffbc5160e7f90eaf6daab82a0 (patch) | |
tree | 6777a2a5aea5c67a9d5ada8cc5bb371d0495ca44 /scripts/ci/steps/00-config.sh | |
parent | f5dee82eed5ece2819b33b6bb41b990cdd407b39 (diff) |
Adapt CI scripts for readonly sourcedir
Diffstat (limited to 'scripts/ci/steps/00-config.sh')
-rw-r--r-- | scripts/ci/steps/00-config.sh | 10 |
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")" |