waf: Add a title to the XML Catalogue.

This commit is contained in:
Chris Johns
2017-01-10 22:34:47 +11:00
parent f08d4c194b
commit 1e9f28ceeb
2 changed files with 17 additions and 9 deletions

View File

@@ -313,7 +313,7 @@ def cmd_configure_path(ctx):
cmd_configure(ctx)
def xml_catalogue(ctx, building):
def xml_catalogue(ctx, building, title):
#
# The following is a hack to find the top_dir because the task does
# provided a reference to top_dir like a build context.
@@ -353,6 +353,11 @@ def xml_catalogue(ctx, building):
root.setAttribute('date', 'today')
cat.appendChild(root)
heading = cat.createElement('catalogue')
text = cat.createTextNode(title)
heading.appendChild(text)
root.appendChild(heading)
builds = ['html']
if ctx.env.BUILD_PDF == 'yes':
builds += ['pdf']