specfiles.xsl
author Alex Viskovatoff <herzen@imap.cc>
Sat, 25 Jun 2011 21:27:50 +0100
changeset 1 b967c1549045
parent 0 9673581c82b4
child 3 38fa0b983302
permissions -rw-r--r--
Make pkgbuild use packages.xml to set ips_package_name; stop it from packaging sources
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
     2
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
     3
  <xsl:strip-space elements="*"/>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
     4
  <xsl:output method="text"/>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
     5
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
     6
  <xsl:param name="encumbered">false</xsl:param>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
     7
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
     8
  <xsl:template match="/pkgs">
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
     9
    <xsl:apply-templates/>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    10
  </xsl:template>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    11
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    12
  <xsl:template match="pkg">
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    13
    <xsl:if test="($encumbered='true' and @encumbered='true') or ($encumbered!='true' and not(@encumbered='true'))">
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    14
      <xsl:value-of select="./name"/>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    15
      <xsl:text>.spec</xsl:text>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    16
      <xsl:text>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    17
</xsl:text>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    18
    </xsl:if>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    19
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    20
  </xsl:template>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    21
</xsl:stylesheet>