Skip to content

Commit 09a560e

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 09a560e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

build-cabal.sh

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

0 commit comments

Comments
 (0)