Skip to content
Browse files

bootstrap.sh now also builds documentation of installed packages

  • Loading branch information...
1 parent a51f6d8 commit 2361c9c6c0c96f7a253848cad6c979e938a81838 @bjpe bjpe committed Feb 12, 2014
Showing with 4 additions and 0 deletions.
  1. +4 −0 cabal-install/bootstrap.sh
View
4 cabal-install/bootstrap.sh
@@ -18,6 +18,7 @@ die () { printf "\nError during cabal-install bootstrap:\n$1\n" >&2 && exit 2 ;}
GHC="${GHC:-ghc}"
GHC_PKG="${GHC_PKG:-ghc-pkg}"
GHC_VER="$(${GHC} --numeric-version)"
+HADDOCK=${HADDOCK:-haddock}
WGET="${WGET:-wget}"
CURL="${CURL:-curl}"
FETCH="${FETCH:-fetch}"
@@ -214,6 +215,9 @@ install_pkg () {
./Setup build ${EXTRA_BUILD_OPTS} ${VERBOSE} ||
die "Building the ${PKG} package failed."
+ ./Setup haddock --with-ghc=${GHC} --with-haddock=${HADDOCK} ${VERBOSE} ||
+ die "Documenting the ${PKG} package failed."
+
./Setup install ${SCOPE_OF_INSTALLATION} ${EXTRA_INSTALL_OPTS} ${VERBOSE} ||
die "Installing the ${PKG} package failed."
}

0 comments on commit 2361c9c

Please sign in to comment.
Something went wrong with that request. Please try again.