[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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

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

  <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 name="qemuacls">
    <xsl:copy-of select="document('$top_builddir/src/libvirt_access_qemu.xml')/aclinfo/api"/>
  <xsl:variable name="lxcacls">
    <xsl:copy-of select="document('$top_builddir/src/libvirt_access_lxc.xml')/aclinfo/api"/>

And then in the Makefile.am add

  --stringparam top_builddir $(top_builddir)

as an arg to $(XSLTPROC)

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

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]