From f3f1745e271ec3c44e4df04d05698f954b8f518d Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 31 May 2010 01:35:43 +0200 Subject: [PATCH] wafsamba: Actually install manual pages. --- buildtools/wafsamba/wafsamba.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py index 412b0d2d0a2..4dac6fb290f 100644 --- a/buildtools/wafsamba/wafsamba.py +++ b/buildtools/wafsamba/wafsamba.py @@ -295,6 +295,17 @@ def SAMBA_BINARY(bld, binname, source, if subsystem_name is not None: bld.TARGET_ALIAS(subsystem_name, binname) + if manpages is not None and bld.env.XSLTPROC is not None: + bld.env.MAN_XSL = 'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl' + for m in manpages.split(): + source = m + '.xml' + bld.SAMBA_GENERATOR(m, + source=source, + target=m, + rule='${XSLTPROC} -o ${TGT} ${MAN_XSL} ${SRC}' + ) + bld.INSTALL_FILES('${MANDIR}/man%s' % m[-1], m, flat=True) + Build.BuildContext.SAMBA_BINARY = SAMBA_BINARY