On Fri, Sep 20, 2013 at 11:50:57AM +0200, Jiri Denemark wrote:
> Technically, these files should be generated in build dir but since
> docs/newapi.xsl style sheet is expecting them to be in source dir, it's
> much easier to put them there than trying to convince newapi.xsl to look
> elsewhere.
It isn't that hard to change newapi.xml. It should be possible
todo
<xsl:variable name="top_builddir">..</xsl:variable>
<xsl:variable name="acls">
<xsl:copy-of
select="document('$top_builddir/src/libvirt_access.xml')/aclinfo/api"/>
</xsl:variable>
<xsl:variable name="qemuacls">
<xsl:copy-of
select="document('$top_builddir/src/libvirt_access_qemu.xml')/aclinfo/api"/>
</xsl:variable>
<xsl:variable name="lxcacls">
<xsl:copy-of
select="document('$top_builddir/src/libvirt_access_lxc.xml')/aclinfo/api"/>
</xsl:variable>
And then in the Makefile.am add
--stringparam top_builddir $(top_builddir)
as an arg to $(XSLTPROC)
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
--
libvir-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libvir-list