summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-05-31 01:35:43 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-05-31 01:38:35 +0200
commitf3f1745e271ec3c44e4df04d05698f954b8f518d (patch)
treebf2b0314ec8e1ea2802cab79d51f66f4f4209b58 /buildtools
parent38cbb60e973d0db6d70f58d3803b3e62f1c942ce (diff)
downloadsamba-f3f1745e271ec3c44e4df04d05698f954b8f518d.tar.gz
samba-f3f1745e271ec3c44e4df04d05698f954b8f518d.tar.bz2
samba-f3f1745e271ec3c44e4df04d05698f954b8f518d.zip
wafsamba: Actually install manual pages.
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/wafsamba/wafsamba.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py
index 412b0d2d0a..4dac6fb290 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