diff options
author | Andreas Schneider <asn@samba.org> | 2012-09-11 17:50:26 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2012-09-12 12:21:29 +0200 |
commit | 66a87d7cbe193a0c1e1c62a39ebbfc88a318a79d (patch) | |
tree | 573e9f5ecc783a0574a58ad712fbb73683614b2c | |
parent | 66d926fa2d09f06f561168f4516b3a6055d100f7 (diff) | |
download | samba-66a87d7cbe193a0c1e1c62a39ebbfc88a318a79d.tar.gz samba-66a87d7cbe193a0c1e1c62a39ebbfc88a318a79d.tar.bz2 samba-66a87d7cbe193a0c1e1c62a39ebbfc88a318a79d.zip |
wafsamba: Add a SAMBAMANPAGES function.
-rw-r--r-- | buildtools/wafsamba/wafsamba.py | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py index 50c3f36a82..1f71bd39f3 100644 --- a/buildtools/wafsamba/wafsamba.py +++ b/buildtools/wafsamba/wafsamba.py @@ -774,7 +774,6 @@ Build.BuildContext.INSTALL_DIRS = INSTALL_DIRS def MANPAGES(bld, manpages): '''build and install manual pages''' bld.env.MAN_XSL = 'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl' - os.environ["XML_CATALOG_FILES"] = 'file:///etc/xml/catalog file://' + bld.srcnode.abspath() + '/bin/default/docs-xml/build/catalog.xml' for m in manpages.split(): source = m + '.xml' bld.SAMBA_GENERATOR(m, @@ -786,6 +785,21 @@ def MANPAGES(bld, manpages): bld.INSTALL_FILES('${MANDIR}/man%s' % m[-1], m, flat=True) Build.BuildContext.MANPAGES = MANPAGES +def SAMBAMANPAGES(bld, manpages): + '''build and install manual pages''' + bld.env.SAMBA_EXPAND_XSL = bld.srcnode.abspath() + '/docs-xml/xslt/expand-sambadoc.xsl' + bld.env.SAMBA_MAN_XSL = bld.srcnode.abspath() + '/docs-xml/xslt/man.xsl' + os.environ["XML_CATALOG_FILES"] = 'file:///etc/xml/catalog file://' + bld.srcnode.abspath() + '/bin/default/docs-xml/build/catalog.xml' + for m in manpages.split(): + source = m + '.xml' + bld.SAMBA_GENERATOR(m, + source=source, + target=m, + group='final', + rule='${XSLTPROC} --xinclude --stringparam noreference 0 -o ${TGT}.xml --nonet ${SAMBA_EXPAND_XSL} ${SRC} && ${XSLTPROC} --nonet -o ${TGT} ${SAMBA_MAN_XSL} ${TGT}.xml' + ) + bld.INSTALL_FILES('${MANDIR}/man%s' % m[-1], m, flat=True) +Build.BuildContext.SAMBAMANPAGES = SAMBAMANPAGES ############################################################# # give a nicer display when building different types of files |