ctdb-build: fix build without xsltproc
authorBjörn Baumbach <bb@sernet.de>
Mon, 1 Dec 2014 12:28:13 +0000 (13:28 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 15 Dec 2014 12:53:08 +0000 (13:53 +0100)
Check for XSLTPROC_MANPAGES before trying to build the docs.

Signed-off-by: Björn Baumbach <bb@sernet.de>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
ctdb/wscript

index d1b8e9e885824386cb58c520dd7772c4ee05ac99..1400685404cfee6e0a32f29c03bbea93e0dd9cc3 100755 (executable)
@@ -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)