diff options
author | Garming Sam <garming@catalyst.net.nz> | 2014-01-09 12:01:18 +1300 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2014-01-31 21:07:05 +0100 |
commit | 57ba012c10fb21f261a3ab9136be05a694278df9 (patch) | |
tree | 3b23f10ea62b3e648fbdfbb31cac0b88e7ffcb4e /docs-xml/wscript_build | |
parent | 0e552e03aec56db4ab4a3615386830fd11541ef8 (diff) | |
download | samba-57ba012c10fb21f261a3ab9136be05a694278df9.tar.gz |
docs: define and include entities for the docs
This allows for dynamic default settings to be generated.
Change-Id: If8b93d233fb941bc7e3073ccf4b5ec0b0a231bd9
Pair-programmed-with: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'docs-xml/wscript_build')
-rw-r--r-- | docs-xml/wscript_build | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/docs-xml/wscript_build b/docs-xml/wscript_build index d1b3ec54821..4ee72a4d518 100644 --- a/docs-xml/wscript_build +++ b/docs-xml/wscript_build @@ -98,9 +98,19 @@ def smbdotconf_generate_parameter_list(task): parameter_all = task.outputs[0].bldpath(task.env) articles = task.inputs - t = '<section xmlns:xi="http://www.w3.org/2001/XInclude">\n' + entities = bld.pathconfig_entities() + t = "<!DOCTYPE section [\n" + + for entity in entities: + t += "%s\n" % entity + + t += "]>\n" + t += "<section>\n" for article in articles: - t += "<xi:include href='" + article.abspath(task.env) + "' parse='xml'/>\n" + f = open(article.abspath(task.env), 'r') + t += f.read() + f.close() + t += "</section>\n" save_file(parameter_all, t , create_dir=True) return 0 @@ -112,8 +122,9 @@ def SMBDOTCONF_MANPAGE(bld, target): bld.SAMBA_GENERATOR(parameter_all, source=articles, target=parameter_all, - rule=smbdotconf_generate_parameter_list) - bld.SAMBAMANPAGES(target) + rule=smbdotconf_generate_parameter_list, + always=True) + bld.SAMBAMANPAGES(target, parameter_all) if ('XSLTPROC_MANPAGES' in bld.env and bld.env['XSLTPROC_MANPAGES']): |