- Allow generating only PGP fingerprints
This commit is contained in:
parent
2fb105f2e7
commit
42293fc096
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=44165
2 changed files with 23 additions and 5 deletions
|
@ -288,7 +288,7 @@ XMLFLAGS+= ${CHAPTERS:S/\/chapter.xml//:S/^/-i chap./}
|
||||||
XMLFLAGS+= -i chap.freebsd-glossary
|
XMLFLAGS+= -i chap.freebsd-glossary
|
||||||
|
|
||||||
pgpkeyring: pgpkeys/chapter.xml ${DOC}.parsed.xml
|
pgpkeyring: pgpkeys/chapter.xml ${DOC}.parsed.xml
|
||||||
@${XSLTPROC} ${XSLPGP} ${DOC}.parsed.xml
|
@${XSLTPROC} ${XSLTPROCOPTS} ${XSLPGP} ${DOC}.parsed.xml
|
||||||
|
|
||||||
#
|
#
|
||||||
# Handbook-specific variables
|
# Handbook-specific variables
|
||||||
|
@ -343,3 +343,8 @@ SRCS+= mirrors.lastmod.inc \
|
||||||
eresources.xml.www.index.inc
|
eresources.xml.www.index.inc
|
||||||
|
|
||||||
.include "${DOC_PREFIX}/share/mk/doc.project.mk"
|
.include "${DOC_PREFIX}/share/mk/doc.project.mk"
|
||||||
|
|
||||||
|
# XXX
|
||||||
|
.if defined(FINGERPRINTS_ONLY)
|
||||||
|
XSLTPROCOPTS+=--param generate.fingerprint.only '1'
|
||||||
|
.endif
|
||||||
|
|
|
@ -8,10 +8,23 @@
|
||||||
|
|
||||||
<xsl:output method="text"/>
|
<xsl:output method="text"/>
|
||||||
|
|
||||||
|
<xsl:param name="generate.fingerprint.only" select="0"/>
|
||||||
|
|
||||||
<xsl:template match="/">
|
<xsl:template match="/">
|
||||||
<xsl:for-each select="//db:programlisting[@role='pgpkey']">
|
<xsl:choose>
|
||||||
<xsl:value-of select="."/>
|
<xsl:when test="$generate.fingerprint.only">
|
||||||
<xsl:text>
</xsl:text>
|
<xsl:for-each select="//db:programlisting[@role='pgpfingerprint']">
|
||||||
</xsl:for-each>
|
<xsl:value-of select="."/>
|
||||||
|
<xsl:text>
</xsl:text>
|
||||||
|
</xsl:for-each>
|
||||||
|
</xsl:when>
|
||||||
|
|
||||||
|
<xsl:otherwise>
|
||||||
|
<xsl:for-each select="//db:programlisting[@role='pgpkey' or @role='pgpfingerprint']">
|
||||||
|
<xsl:value-of select="."/>
|
||||||
|
<xsl:text>
</xsl:text>
|
||||||
|
</xsl:for-each>
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
</xsl:stylesheet>
|
</xsl:stylesheet>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue