aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2022-06-04 20:12:49 +0200
committerUlrich Müller <ulm@gentoo.org>2022-06-10 19:17:31 +0200
commitd925226a528dc974b765a41d20da937b97342ea6 (patch)
tree72dbe30ad89b52d58a705e887cb616aa85745dcd
parenttools-reference/bash: Add tables of metacharacters and constructs (diff)
downloaddevmanual-d925226a528dc974b765a41d20da937b97342ea6.tar.gz
devmanual-d925226a528dc974b765a41d20da937b97342ea6.tar.bz2
devmanual-d925226a528dc974b765a41d20da937b97342ea6.zip
devbook.xsl: Eclass documentation needs GPL-2 in the footer
Eclasses are licensed GPL-2, therefore we need a different footer. Hardcode this for all sub-pages of eclass-reference/. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
-rw-r--r--devbook.xsl10
1 files changed, 9 insertions, 1 deletions
diff --git a/devbook.xsl b/devbook.xsl
index 9a254a7..1aebead 100644
--- a/devbook.xsl
+++ b/devbook.xsl
@@ -665,7 +665,15 @@
<small>
Gentoo is a trademark of the Gentoo Foundation, Inc.
The text of this document is distributed under the
- <a href="https://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>.
+ <xsl:choose>
+ <!-- Eclasses are GPL-2, so we need a different footer -->
+ <xsl:when test="starts-with(/guide/@self, 'eclass-reference/') and $relative_path_depth &gt;= 2">
+ <a href="https://www.gnu.org/licenses/gpl-2.0.html">GNU General Public License, version 2</a>.
+ </xsl:when>
+ <xsl:otherwise>
+ <a href="https://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>.
+ </xsl:otherwise>
+ </xsl:choose>
The <a href="https://www.gentoo.org/inside-gentoo/foundation/name-logo-guidelines.html">Gentoo Name and Logo Usage Guidelines</a> apply.
</small>
</div>