summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-05-31 12:08:01 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-05-31 13:56:25 +0200
commitf98bb7ffc33bf161caf301c50c55c8e3cc858b85 (patch)
tree1137d0c8f3c9bf2d67e07d67bb634fb6c062458b /buildtools
parentcc77e7966ea95ccc0812dd772a9002b41792e6b8 (diff)
downloadsamba-f98bb7ffc33bf161caf301c50c55c8e3cc858b85.tar.gz
Add manpages argument to SAMBA_LIBRARY().
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/wafsamba/wafsamba.py15
1 files changed, 14 insertions, 1 deletions
diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py
index 41b866d05ca..00ebe535141 100644
--- a/buildtools/wafsamba/wafsamba.py
+++ b/buildtools/wafsamba/wafsamba.py
@@ -116,6 +116,7 @@ def SAMBA_LIBRARY(bld, libname, source,
abi_match=None,
hide_symbols=False,
is_bundled=False,
+ manpages=None,
enabled=True):
'''define a Samba library'''
@@ -196,7 +197,7 @@ def SAMBA_LIBRARY(bld, libname, source,
vnum = vnum,
install_path = None,
samba_inst_path = install_path,
- name = libname,
+ name = libname,
samba_realname = realname,
samba_install = install,
abi_file = abi_file,
@@ -212,6 +213,18 @@ def SAMBA_LIBRARY(bld, libname, source,
if pc_files is not None:
bld.PKG_CONFIG_FILES(pc_files, vnum=vnum)
+ if manpages is not None and 'XSLTPROC' in bld.env:
+ 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_LIBRARY = SAMBA_LIBRARY