Skip to content

Commit

Permalink
bootstrap.sh: don't run Haddock on network-uri-2.5.0.0
Browse files Browse the repository at this point in the history
That package doesn't have any modules and Hadddock chokes.
  • Loading branch information
tibbe committed Dec 30, 2014
1 parent ea8dbaa commit 0bf4e95
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions cabal-install/bootstrap.sh
Expand Up @@ -209,6 +209,9 @@ STM_VER="2.4.4"; STM_VER_REGEXP="2\."

HACKAGE_URL="https://hackage.haskell.org/package"

# Haddock fails for network-2.5.0.0.
NO_DOCS_PACKAGES_VER_REGEXP="network-uri-2\.5\.[0-9]+\.[0-9]+"

# Cache the list of packages:
echo "Checking installed packages for ghc-${GHC_VER}..."
${GHC_PKG} list --global ${SCOPE_OF_INSTALLATION} > ghc-pkg.list ||
Expand Down Expand Up @@ -280,6 +283,7 @@ unpack_pkg () {

install_pkg () {
PKG=$1
VER=$2

[ -x Setup ] && ./Setup clean
[ -f Setup ] && rm Setup
Expand All @@ -300,8 +304,13 @@ install_pkg () {

if [ ! ${NO_DOCUMENTATION} ]
then
./Setup haddock --with-ghc=${GHC} --with-haddock=${HADDOCK} ${VERBOSE} ||
die "Documenting the ${PKG} package failed."
if echo "${PKG}-${VER}" | egrep ${NO_DOCS_PACKAGES_VER_REGEXP} > /dev/null 2>&1
then
echo "Skipping documentation for the ${PKG} package."
else
./Setup haddock --with-ghc=${GHC} --with-haddock=${HADDOCK} ${VERBOSE} ||
die "Documenting the ${PKG} package failed."
fi
fi

./Setup install ${EXTRA_INSTALL_OPTS} ${VERBOSE} ||
Expand Down

0 comments on commit 0bf4e95

Please sign in to comment.