diff options
author | Ian Lynagh <igloo@earth.li> | 2012-02-21 21:29:52 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2012-02-21 21:29:52 +0000 |
commit | 62494e7b8276f613233f2fbcc2d5c545bd39c86d (patch) | |
tree | 1820101bac6704e265912da4d5596cce7996c852 /validate | |
parent | 1e872802a32846075b27816e5c8dbc1d2c9f06ee (diff) | |
download | haskell-62494e7b8276f613233f2fbcc2d5c545bd39c86d.tar.gz |
Add a hack to make validating with HADDOCK_DOCS=NO work
I've also renamed the bindisttest install directory to contain multiple
spaces, so we are also testing that multiple spaces aren't getting
collapsed into a single space.
Diffstat (limited to 'validate')
-rwxr-xr-x | validate | 19 |
1 files changed, 16 insertions, 3 deletions
@@ -105,6 +105,18 @@ if [ $speed != "FAST" ]; then $make binary-dist-prep $make test_bindist TEST_PREP=YES + # This is a hack to make + # HADDOCK_DOCS = NO + # work when validating. + if grep -q "^HADDOCK_DOCS[ ]*=[ ]*NO[ ]*$" mk/validate.mk + then + unset WITH_HADDOCK + DO_HADDOCK=NO + else + WITH_HADDOCK=--with-haddock="$thisdir/$bindistdir/bin/haddock" + DO_HADDOCK=YES + fi + # # Install the mtl package into the bindist, because it is used by some # tests. It isn't essential that we do this (the failing tests will @@ -112,12 +124,13 @@ if [ $speed != "FAST" ]; then # coverage, and also verify that we can install a package into the # bindist with Cabal. # - bindistdir="bindisttest/install dir" + bindistdir="bindisttest/install dir" cd libraries/mtl "$thisdir/$bindistdir/bin/ghc" --make Setup - ./Setup configure --with-ghc="$thisdir/$bindistdir/bin/ghc" --with-haddock="$thisdir/$bindistdir/bin/haddock" --global --builddir=dist-bindist --prefix="$thisdir/$bindistdir" + + ./Setup configure --with-ghc="$thisdir/$bindistdir/bin/ghc" ${WITH_HADDOCK+"$WITH_HADDOCK"} --global --builddir=dist-bindist --prefix="$thisdir/$bindistdir" ./Setup build --builddir=dist-bindist - ./Setup haddock --builddir=dist-bindist + [ "$DO_HADDOCK" = "YES" ] && ./Setup haddock --builddir=dist-bindist ./Setup install --builddir=dist-bindist ./Setup clean --builddir=dist-bindist rm -f Setup Setup.exe Setup.hi Setup.o |