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>

next in thread | raw e-mail | index | archive | help

--Uzkapz4/HjIvV4VZ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

  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=3D"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 Stylesh=
eet//EN" CDATA DSSSL>
]>

<style-sheet>
  <style-specification use=3D"docbook">
    <style-specification-body>

      (element book
        (process-node-list (select-elements (descendants (current-node)) (n=
ormalize "programlisting"))))

      (element programlisting
        (if (equal? (attribute-string (normalize "role")) "pgpkey")
            (make sequence
	      (process-children)
	      (literal "
"))
	    (empty-sosofo)))

    </style-specification-body>
  </style-specification>
     =20
  <external-specification id=3D"docbook" document=3D"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
=20
+pgpkeyring: pgpkeys/chapter.sgml
+	     ${JADE} -V nochunks ${JADEOPTS} -d ${DSLPGP} -t sgml
${MASTERDOC} > ${.TARGET}
+
 DOC_PREFIX?=3D ${.CURDIR}/../../..
=20
 #
---[ Diff 2 of 2 ]------------------------
(edit /usr/doc/share/mk/doc.docbook.mk)

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

--Uzkapz4/HjIvV4VZ
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQE7g2WBtNcQog5FH30RApVLAJ96NGkNpOJV4EuQv/6j7wayccw2xwCfTW8i
gp3UVVozbnJOBvZCQBVyvVo=
=hbSP
-----END PGP SIGNATURE-----

--Uzkapz4/HjIvV4VZ--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message




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