Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Aug 2001 00:55:46 -0700
From:      Murray Stokely <murray@FreeBSD.org>
To:        freebsd-doc@FreeBSD.org
Subject:   generating the pgp keyring
Message-ID:  <20010822005546.T14209@windriver.com>

index | next in thread | raw e-mail

[-- Attachment #1 --]
  It seems silly to rely on a person to manually update a PGP keyring
now that all of the key data is clearly marked up in <programlisting
role="pgpkey">.  I've just written a little hack that uses
pgpkeys/chapter.sgml and generates a keyring that can easily be
imported into gpg.  Any comments?  Can we integrate this with the doc
or web build to automatically update the the keyring referenced from
the top of the PGP Keys appendix?

    - Murray

--[ pgp.dsl ]---------------

<!-- $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>

---[ Diff 1 of 2 ]-------------------

---
diff -u -r1.45 Makefile
--- Makefile   2001/08/21 23:38:28	1.45
+++ Makefile   2001/08/22 07:44:21
@@ -142,6 +142,9 @@
 book.pdf: book.ps
	   ps2pdf book.ps book.pdf
 
+pgpkeyring: pgpkeys/chapter.sgml
+	     ${JADE} -V nochunks ${JADEOPTS} -d ${DSLPGP} -t sgml
${MASTERDOC} > ${.TARGET}
+
 DOC_PREFIX?= ${.CURDIR}/../../..
 
 #
---[ Diff 2 of 2 ]------------------------
(edit /usr/doc/share/mk/doc.docbook.mk)

+DSLPGP?=	${DOC_PREFIX}/share/sgml/pgp.dsl

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (SunOS)
Comment: For info see http://www.gnupg.org

iD8DBQE7g2WBtNcQog5FH30RApVLAJ96NGkNpOJV4EuQv/6j7wayccw2xwCfTW8i
gp3UVVozbnJOBvZCQBVyvVo=
=hbSP
-----END PGP SIGNATURE-----
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010822005546.T14209>