Commit 309d48c2 authored by Mikhail Glushenkov's avatar Mikhail Glushenkov
Browse files

Merge pull request #1682 from bjpe/bootstrap-documentation

bootstrap.sh now also builds documentation of installed packages
parents a51f6d8c 2361c9c6
......@@ -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."
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment