From 8d5f58120b6eeb73d1dc3c4df2ec6e12170888aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Baumbach?= Date: Mon, 1 Dec 2014 13:28:13 +0100 Subject: [PATCH] ctdb-build: fix build without xsltproc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Check for XSLTPROC_MANPAGES before trying to build the docs. Signed-off-by: Björn Baumbach Reviewed-by: Stefan Metzmacher Reviewed-by: Michael Adam --- ctdb/wscript | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ctdb/wscript b/ctdb/wscript index d1b8e9e8858..1400685404c 100755 --- a/ctdb/wscript +++ b/ctdb/wscript @@ -436,9 +436,10 @@ def build(bld): bld.INSTALL_FILES('${CTDB_PMDADIR}', 'utils/pmda/README', destname='README') - bld.MANPAGES('''doc/onnode.1 doc/ctdbd_wrapper.1 doc/ctdbd.conf.5 - doc/ctdb.7 doc/ctdb-statistics.7 doc/ctdb-tunables.7''', - True) + if 'XSLTPROC_MANPAGES' in bld.env and bld.env['XSLTPROC_MANPAGES']: + bld.MANPAGES('''doc/onnode.1 doc/ctdbd_wrapper.1 doc/ctdbd.conf.5 + doc/ctdb.7 doc/ctdb-statistics.7 doc/ctdb-tunables.7''', + True) bld.INSTALL_FILES('${BINDIR}', 'tools/onnode', destname='onnode', chmod=0755)