- Timestamp:
- 12/16/2021 09:26:43 AM (3 years ago)
- Branches:
- ablfs-more, legacy, trunk
- Children:
- b8e5cad
- Parents:
- f9a7f8e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BLFS/xsl/bump.xsl
rf9a7f8e ra6fbc65 8 8 <xsl:param name="version" select="'N'"/> 9 9 10 <xsl:variable name="realpackage"> 11 <xsl:choose> 12 <xsl:when test="contains($package, '-pass1')"> 13 <xsl:copy-of select="substring-before($package, '-pass1')"/> 14 </xsl:when> 15 <xsl:otherwise> 16 <xsl:copy-of select="$package"/> 17 </xsl:otherwise> 18 </xsl:choose> 19 </xsl:variable> 20 10 21 <xsl:variable name="vers"> 11 22 <xsl:choose> … … 13 24 <xsl:value-of select= 14 25 "document($packages)//*[self::package or self::module] 15 [string(name)=$ package]/version"/>26 [string(name)=$realpackage]/version"/> 16 27 </xsl:when> 17 28 <xsl:otherwise> 18 <xsl: value-of select="$version"/>29 <xsl:copy-of select="$version"/> 19 30 </xsl:otherwise> 20 31 </xsl:choose> … … 32 43 <xsl:if test="not(.//package[string(name)=$package])"> 33 44 <package> 34 <name><xsl: value-of select="$package"/></name>35 <version><xsl: value-of select="$vers"/></version>45 <name><xsl:copy-of select="$package"/></name> 46 <version><xsl:copy-of select="$vers"/></version> 36 47 </package> 37 48 </xsl:if> … … 43 54 <xsl:when test="string(name)=$package"> 44 55 <package> 45 <name><xsl: value-of select="name"/></name>46 <version><xsl: value-of select="$vers"/></version>56 <name><xsl:copy-of select="$package"/></name> 57 <version><xsl:copy-of select="$vers"/></version> 47 58 </package> 48 59 </xsl:when>
Note:
See TracChangeset
for help on using the changeset viewer.