fi
done
-# try and build the manpages
cd ..
+
+# try and build the manpages
+#
+# NOTE: some (older) versions the docbook XSL style sheets
+# are missing some definitions that are required for building
+# the manual pages (e.g. list-indent).
+#
+# This applies in particular to the version 1.69 of
+# docbook-style-xsl that is shipped with RHEL 5.
+# We therefore use checked in precompiled manpages
+# if the docs build fails.
+#
./release-scripts/build-manpages-nogit || tar xjf packaging/RHEL-CTDB/manpages.tar.bz2
# Remove some permission bits to avoid to many dependencies