[libvirt] [PATCH] build: Generate libvirt_access*.xml in source dir

Daniel P. Berrange berrange at redhat.com
Fri Sep 20 12:16:06 UTC 2013


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 :|




More information about the libvir-list mailing list