Skip to content

Commit 7d3c68d

Browse files
committed
Add script to conveniently build the bundled cabal
e.g.: make CABAL=$(./build-cabal.sh) One can also set CABAL0_ARGS environment variable.
1 parent 24397bb commit 7d3c68d

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

build-cabal.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/sh
2+
3+
cabal build \
4+
${CABAL0_ARGS} \
5+
-j \
6+
--disable-tests \
7+
--project-dir libraries/Cabal \
8+
--builddir=$(pwd)/build/stage0 \
9+
--ghc-options="-fhide-source-paths" \
10+
cabal-install:exe:cabal 1>&2
11+
12+
exec cabal list-bin \
13+
${CABAL0_ARGS} \
14+
-v0 \
15+
-j \
16+
--disable-tests \
17+
--project-dir libraries/Cabal \
18+
--builddir=$(pwd)/build/stage0 \
19+
--ghc-options="-fhide-source-paths" \
20+
cabal-install:exe:cabal

0 commit comments

Comments
 (0)