equal
deleted
inserted
replaced
1 <?xml version="1.0" encoding="UTF-8"?> |
1 <?xml version="1.0" encoding="UTF-8"?> |
2 <!-- |
2 <!-- |
3 Sane Software Manifesto helper tools |
3 Sane software manifesto helper tools |
4 Copyright © 2019 František Kučera (Frantovo.cz, GlobalCode.info) |
4 Copyright © 2019 František Kučera (Frantovo.cz, GlobalCode.info) |
5 |
5 |
6 This program is free software: you can redistribute it and/or modify |
6 This program is free software: you can redistribute it and/or modify |
7 it under the terms of the GNU General Public License as published by |
7 it under the terms of the GNU General Public License as published by |
8 the Free Software Foundation, version 3. |
8 the Free Software Foundation, version 3. |
25 |
25 |
26 <xsl:template name="version"> |
26 <xsl:template name="version"> |
27 <xsl:param name="tag"/> |
27 <xsl:param name="tag"/> |
28 <xsl:param name="distance"/> |
28 <xsl:param name="distance"/> |
29 <xsl:param name="hash"/> |
29 <xsl:param name="hash"/> |
|
30 <xsl:param name="changedFiles"/> |
30 |
31 |
31 <xsl:value-of select="$tag"/> |
32 <xsl:value-of select="$tag"/> |
32 <xsl:if test="$distance > 1"> |
33 <xsl:if test="$distance > 1 or $changedFiles > 0"> |
33 <xsl:text>+</xsl:text> |
34 <xsl:text>+</xsl:text> |
34 <xsl:value-of select="$distance - 1"/> |
35 <xsl:value-of select="$distance - 1"/> |
35 <xsl:text> (</xsl:text> |
36 <xsl:text> (</xsl:text> |
36 <xsl:value-of select="$hash"/> |
37 <xsl:value-of select="$hash"/> |
|
38 <xsl:if test="$changedFiles > 0"> |
|
39 <xsl:text>+</xsl:text> |
|
40 <xsl:value-of select="$changedFiles"/> |
|
41 </xsl:if> |
37 <xsl:text>)</xsl:text> |
42 <xsl:text>)</xsl:text> |
38 </xsl:if> |
43 </xsl:if> |
39 </xsl:template> |
44 </xsl:template> |
40 |
45 |
41 </xsl:stylesheet> |
46 </xsl:stylesheet> |