]> git.ipfire.org Git - thirdparty/libvirt.git/commit
hvsupport: use a regex instead of XML::XPath
authorJán Tomko <jtomko@redhat.com>
Tue, 28 Jun 2016 11:28:48 +0000 (13:28 +0200)
committerJán Tomko <jtomko@redhat.com>
Tue, 19 Jul 2016 16:42:44 +0000 (18:42 +0200)
commitad9e72f5fa118d97abe60a0ea6e5dba195476fc7
tree1c705e87e89384f5ba96caf72bf75dcd7d7088b4
parent8ee6a99e7c2b31e7f3cdeabf59e211854da26f5d
hvsupport: use a regex instead of XML::XPath

When generating the hvsupport.html.in file, we parse the -api.xml
files generated by apibuild.py to know in which HTML file the API
function is.

Doing an XPath query for every single 'function' element in the
file is inefficient.

Since the XML file is generated by another of our build scripts
(apibuild.py, using Python's standard 'output.write' XML library),
just find the function name->file mapping by a regex upfront.

Also add a note about this next to the line that generates it
in apibuild.py and do not check if XML::XPath is installed in
bootstrap since we no longer use it.
bootstrap.conf
docs/apibuild.py
docs/hvsupport.pl