ctdb-build: Install pre-built manpages when xsltproc not available
authorMartin Schwenke <martin@meltin.net>
Fri, 11 Sep 2015 03:08:38 +0000 (13:08 +1000)
committerMichael Adam <obnox@samba.org>
Tue, 15 Sep 2015 09:57:43 +0000 (11:57 +0200)
At the moment they are not installed at all if xsltproc is not
available.

They can still be filtered to have the paths match what was
configured.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Jose A. Rivera <jarrpa@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Tue Sep 15 11:57:44 CEST 2015 on sn-devel-104

ctdb/wscript

index a883872e05d77ca4e05b97d1fcb2df830f1049c6..188295d8062a5e7555a792e4a003bc8b0b13f1d4 100755 (executable)
@@ -467,6 +467,13 @@ def build(bld):
         bld.MANPAGES('''onnode.1 ctdbd_wrapper.1 ctdbd.conf.5
                         ctdb.7 ctdb-statistics.7 ctdb-tunables.7''',
                       True)
+    else:
+        for m in manpages:
+            bld.SAMBA_GENERATOR(m,
+                                source=os.path.join("doc", m),
+                                target=m,
+                                rule='sed %s ${SRC} > ${TGT}' % (sed_cmdline))
+            bld.INSTALL_FILES('${MANDIR}/man%s' % m[-1], m)
 
     bld.SAMBA_GENERATOR('ctdb-onnode',
                         source='tools/onnode',