Add a new target to the Handbook makefile: 'pgpkeyring'.

This target finds all <programlisting role="pgpkey"> elements in the
Handbook and writes out a flat text file suitable for importing into
PGP or GPG.

This can be used in the web build to automatically update the public
keyring of FreeBSD developers.
This commit is contained in:
Murray Stokely 2001-08-23 07:59:07 +00:00
parent 32d1e01323
commit e90bee4e01
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=10445
3 changed files with 41 additions and 2 deletions

View file

@ -1,5 +1,5 @@
#
# $FreeBSD: doc/en_US.ISO8859-1/books/handbook/Makefile,v 1.45 2001/08/21 23:38:28 nik Exp $
# $FreeBSD: doc/en_US.ISO8859-1/books/handbook/Makefile,v 1.46 2001/08/22 20:38:03 rpratt Exp $
#
# Build the FreeBSD Handbook.
#
@ -13,6 +13,15 @@
# entire key to be displayed, then set this variable.
# This option has no affect on the HTML formats.
#
# Handbook-specific targets
#
# pgpkeyring This target will read the contents of
# pgpkeys/chapter.sgml and will extract all of
# the pgpkeys to standard out. This output can then
# be redirected into a file and distributed as a
# public keyring of FreeBSD developers that can
# easily be imported into PGP/GPG.
#
# ------------------------------------------------------------------------
MAINTAINER=nik@FreeBSD.org
@ -143,6 +152,9 @@ book.tex-pdf:
book.pdf: book.ps
ps2pdf book.ps book.pdf
pgpkeyring: pgpkeys/chapter.sgml
@${JADE} -V nochunks ${JADEOPTS} -d ${DSLPGP} -t sgml ${MASTERDOC}
DOC_PREFIX?= ${.CURDIR}/../../..
#

View file

@ -1,5 +1,5 @@
#
# $FreeBSD: doc/share/mk/doc.docbook.mk,v 1.43 2001/08/16 05:19:51 dd Exp $
# $FreeBSD: doc/share/mk/doc.docbook.mk,v 1.44 2001/08/22 22:30:26 nik Exp $
#
# This include file <doc.docbook.mk> handles building and installing of
# DocBook documentation in the FreeBSD Documentation Project.
@ -90,6 +90,7 @@ NSGMLS?= ${PREFIX}/bin/nsgmls
DSLHTML?= ${DOC_PREFIX}/share/sgml/default.dsl
DSLPRINT?= ${DOC_PREFIX}/share/sgml/default.dsl
DSLPGP?= ${DOC_PREFIX}/share/sgml/pgp.dsl
FREEBSDCATALOG= ${DOC_PREFIX}/share/sgml/catalog
LANGUAGECATALOG=${DOC_PREFIX}/${LANGCODE}/share/sgml/catalog

26
share/sgml/pgp.dsl Normal file
View file

@ -0,0 +1,26 @@
<!-- $FreeBSD$ -->
<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
<!ENTITY docbook.dsl PUBLIC "-//Norman Walsh//DOCUMENT DocBook HTML Stylesheet//EN" CDATA DSSSL>
]>
<style-sheet>
<style-specification use="docbook">
<style-specification-body>
(element book
(process-node-list (select-elements (descendants (current-node)) (normalize "programlisting"))))
(element programlisting
(if (equal? (attribute-string (normalize "role")) "pgpkey")
(make sequence
(process-children)
(literal "
"))
(empty-sosofo)))
</style-specification-body>
</style-specification>
<external-specification id="docbook" document="docbook.dsl">
</style-sheet>