[xml/sgml-commit] r617 - in packages/docbook/trunk/debian: .
examples
Daniel Leidert
dleidert-guest at alioth.debian.org
Fri Mar 9 14:07:33 CET 2007
Author: dleidert-guest
Date: 2007-03-09 13:07:33 +0000 (Fri, 09 Mar 2007)
New Revision: 617
Added:
packages/docbook/trunk/debian/README.debian
packages/docbook/trunk/debian/README.docbook.dcl
packages/docbook/trunk/debian/TODO
packages/docbook/trunk/debian/changelog
packages/docbook/trunk/debian/compat
packages/docbook/trunk/debian/control
packages/docbook/trunk/debian/copyright
packages/docbook/trunk/debian/examples/
packages/docbook/trunk/debian/examples/Makefile
packages/docbook/trunk/debian/examples/docbk42.sgml
packages/docbook/trunk/debian/examples/docbk43.sgml
packages/docbook/trunk/debian/examples/docbk44.sgml
packages/docbook/trunk/debian/install_docbook.sh
packages/docbook/trunk/debian/postinst
packages/docbook/trunk/debian/rules
packages/docbook/trunk/debian/watch
Log:
Initially inject docbook (4.4-1) debian directory.
Added: packages/docbook/trunk/debian/README.debian
===================================================================
--- packages/docbook/trunk/debian/README.debian 2007-03-09 12:58:45 UTC (rev 616)
+++ packages/docbook/trunk/debian/README.debian 2007-03-09 13:07:33 UTC (rev 617)
@@ -0,0 +1,36 @@
+ DocBook DTDs for Debian GNU/Linux
+ ---------------------------------
+
+DocBook is an SGML DTD for software documentation. It is very
+thorough, and is used by many different organization to produce books,
+articles, references, and even manual pages.
+
+The home page for DocBook is <URL:http://www.oasis-open.org/docbook/>.
+
+The docbook-doc package contains reference documentation on DocBook.
+A wonderful introduction and reference is available in the
+docbook-book package, which can also be read online at
+<URL:http://www.docbook.org/>.
+
+To format DocBook documents, you'll need a style-sheet package, either
+docbook-dsssl or docbook-xsl, depending on what styling language you
+would like to use.
+
+There are far too many other packages to describe here, both for
+authors, editors, stylers, or information architects. A list of such
+packages may be perused, for instance, using 'apt-cache search
+docbook'.
+
+If you have a question about how to work with DocBook, there are many
+mailing lists available; see <URL:http://www.docbook.org/>.
+
+If you have suggestions or questions regarding debian-specific issues,
+please consult the debian-sgml at lists.debian.org mailing list,
+<URL:http://lists.debian.org/>.
+
+--
+.....Adam Di Carlo....adam at onshore.com.....<URL:http://www.onshored.com/>
+(previously, Mark Eichin <eichin at thok.org>, Mon, 30 Jun 1997 14:11:38 -0400)
+
+
+
Added: packages/docbook/trunk/debian/README.docbook.dcl
===================================================================
--- packages/docbook/trunk/debian/README.docbook.dcl 2007-03-09 12:58:45 UTC (rev 616)
+++ packages/docbook/trunk/debian/README.docbook.dcl 2007-03-09 13:07:33 UTC (rev 617)
@@ -0,0 +1,98 @@
+From: Adam Di Carlo <adam at onshore.com>
+Subject: DOCBOOK: objection to docbook.dcl
+To: docbook at lists.oasis-open.org
+Cc: docbook-tc at oasis-open.org
+Date: Wed, 21 Mar 2001 02:35:31 -0500
+
+
+Shipped with the DocBook DTDs from 2.4.1 and up is 'docbook.dcl', an
+SGML declaration for use with DocBook documents. However, this
+declartion is unnecessarily restrictive, to the level where it is
+rather cumbersome to implement.
+
+My argument is that the DocBook declaration should diverge from the SP
+(and OpenSP) implied declarations only where the divergance expresses
+a real necessity to diverge. This is based on the principle that
+software (including SGML parsers) should be tolerant of what they
+accept. The unnecessarily broad divergance of the shipped Docbook
+declaration puts a burden on document engineers using DocBook.
+
+I am considering here only the DocBook SGML DTD, since I presume the
+Declaration is rather irrelevant for XML files, since all XML files
+have the same XML declaration applied to them.
+
+I consider here 'docbook.dcl' as shipped with DocBook 4.1.
+
+Major problems:
+
+ OMITTAG is turned off (why?)
+
+ NAMELEN is too short
+
+ Document Character set is too restrictive
+
+ SUBDOC is turned off (why?)
+
+
+Description:
+
+* OMITTAG is turned off
+
+'OMITTAG' is turned off in 'docbook.dcl', disallowing markup
+minimization of any sort. This is on in the implied declaration of
+both Jade and OpenJade. This creates problems because documents using
+the default declaration for their parser will have a valid document,
+but if the user decides to be more fasidious and user the docbook SGML
+declaration, sudden their document will not be valid.
+
+The major problem is that trying to turn this on will make a large
+number of existing SGML DocBook instances invalid.
+
+
+* NAMELEN is too short
+
+The NAMELEN quantity set in docbook.dcl is set to 45, rather than the
+default SP NAMELEN of 99999999.
+
+A number of users have complained of problems due to this limitation
+(do a google search on 'docbook namelen' to see what I mean) in any
+cases (such as the SUSE Linux distribution) where the declaration is
+enforced.
+
+Quoting <URL:http://xml.coverpages.org/wlw14.html>:
+
+ Care should be used when changing these since creating a variant
+ syntax may make it difficult for some SGML systems to process
+ documents created with that syntax. The best means of guaranteeing
+ portability between different SGML systems and applications is to
+ use the reference concrete syntax as much as possible.
+
+One wonders why we need to diverge from the reference concrete syntax
+here.
+
+
+* Document Character set it too restrictive
+
+As an example, to workaround limitations in the support of KOI-R SDATA
+entities in Jade and OpenJade, KOI-R users have to use unicode
+entities. With the docbook.dcl file, these entities are disallowed,
+although they are perfectly valid with the implied SP declaration.
+Example of being disallowed:
+
+ jade:/usr/share/sgml/entities/sgml-iso-entities-8879.1986/ISOcyr1.ent:1:16:E: \
+ "1072" is not a character number in the document character set
+
+
+* SUBDOC is turned off
+
+Why is it necessary to disallow SUBDOC in DocBook SGML documents?
+Seems like some authors may wish to use this, even if its not fully
+supported by existing stylesheets.
+
+
+
+I hope I got my facts correct, and that this commentary is useful.
+
+--
+.....Adam Di Carlo....adam at onshore.com.....<URL:http://www.onshored.com/>
+
Added: packages/docbook/trunk/debian/TODO
===================================================================
--- packages/docbook/trunk/debian/TODO 2007-03-09 12:58:45 UTC (rev 616)
+++ packages/docbook/trunk/debian/TODO 2007-03-09 13:07:33 UTC (rev 617)
@@ -0,0 +1,13 @@
+docbook-TODO (0.0)
+
+ * Just because somethings on this list, that doesn't mean you can't go
+ ahead and submit a wishlist bug against it. Please feel free, it lets
+ me know what people want the most.
+
+ * for all versions, dbgenent.mod should be a conffile
+
+ --
+
+Local variables:
+mode: debian-changelog
+End:
Added: packages/docbook/trunk/debian/changelog
===================================================================
--- packages/docbook/trunk/debian/changelog 2007-03-09 12:58:45 UTC (rev 616)
+++ packages/docbook/trunk/debian/changelog 2007-03-09 13:07:33 UTC (rev 617)
@@ -0,0 +1,289 @@
+docbook (4.4-1) unstable; urgency=low
+
+ * acknowledge NMU; closes: #301786
+ * new upstream version; closes: #339774
+ * docbook4{3,4}/docbookx.dtd: turn on SGML mode
+ * docbook4{3,4}: sync with dbpoolx.mod and htmltblx.mod from
+ docbook-xml; closes: #256119
+ * conflict with docbook-xml prior to 4.4-5, otherwise the 4.3 and 4.4
+ DTDs don't work
+ * docbook4.3 catalog: don't provide "-//OASIS//DTD DocBook XML V4.3//EN"
+ * add really basic docbook 4.2, 4.3, and 4.4 books to test with
+
+ -- Adam Di Carlo <aph at debian.org> Thu, 25 May 2006 19:09:05 -0400
+
+docbook (4.3-1.1) unstable; urgency=high
+
+ * Non-maintainer upload.
+ * High-urgency upload for sarge-targetted RC bugfix.
+ * Drop use of symlinks for finding dangling links, as we can do the
+ same using a find command; thanks to Joey Hess for the patch.
+ Closes: #301786.
+
+ -- Steve Langasek <vorlon at debian.org> Wed, 6 Apr 2005 11:24:24 -0700
+
+docbook (4.3-1) unstable; urgency=low
+
+ * new upstream version; closes: #243666
+ * make the usual array of minor corrections in upstream catalogs
+ * minor package description changes
+ * postinst legacy remove is more conditional and more robust; hopefully,
+ closes: #242833
+ * really don't register "-//OASIS//DTD DocBook XML V4.2//EN" in
+ catalog.xml
+
+ -- Adam Di Carlo <aph at debian.org> Tue, 15 Jun 2004 22:15:02 -0400
+
+docbook (4.2-3) unstable; urgency=low
+
+ * stop providing "-//OASIS//DTD DocBook XML V4.2//EN", that is in the
+ docbook-xml package
+ * policy compliance updated to 3.5.8, no changes needed
+ * debhelper 4 compat mode
+ * use new dh_installcatalog, it simplifies our maintainer scripts
+ * remove build-depends on M4, we don't need to process maintainer
+ scripts anymore
+ * remove suggests on sp or jade or docbook-xml, add suggests for
+ docbook-dsssl and docbook-doc
+ * improve the package synopsis and description, add the Homepage
+ * stop using sgml-catalog-check.pl from sgml-data during build, the
+ /usr/share/sgml symlinking is no longer needed (SGML Policy update
+ pending)
+
+ -- Adam Di Carlo <aph at debian.org> Tue, 25 Feb 2003 02:18:52 -0500
+
+docbook (4.2-2) unstable; urgency=low
+
+ * SGML catalogs should be named 'catalog' according to policy; retain
+ the 'docbook.cat' as a symlink in case anyone is using that directly
+
+ -- Adam Di Carlo <aph at debian.org> Mon, 20 Jan 2003 04:44:52 -0500
+
+docbook (4.2-1) unstable; urgency=low
+
+ * new upstream version, closes: #155105
+ * latest DocBook version bumped to 4.2
+
+ -- Adam Di Carlo <aph at debian.org> Wed, 7 Aug 2002 01:12:49 -0400
+
+docbook (4.1.99really4.2.cr1-2) unstable; urgency=low
+
+ * oops, remove ISO entity sets from docbook 4.2cr1 catalog
+ * minor typo in generalized.cat fixed
+
+ -- Adam Di Carlo <aph at debian.org> Sun, 31 Mar 2002 01:40:26 -0500
+
+docbook (4.1.99really4.2.cr1-1) unstable; urgency=low
+
+ * new upstream version, pre-release of docbook 4.2;
+ note that docbook 4.1 is still considered the latest version and
+ latest 4.x version until 4.2 is actually released
+ * policy checked up to 3.5.6, no changes required
+ * disable DTDDECL in generalized.cat, I think this just slipped through
+ * debian/rules: some housekeeping
+
+ -- Adam Di Carlo <aph at debian.org> Sun, 31 Mar 2002 01:28:04 -0500
+
+docbook (4.1-6) unstable; urgency=low
+
+ * another cut at the package description, hopefully it satisfies the
+ user; closes: #112021
+ * debian/rules: installing *everything* as documentation was not my
+ intention in the last release, fix that
+ * require sgml-data 1.5.3 or better, which calls an element an element
+ when making the creepy symlinks; closes: #51043
+
+ -- Adam Di Carlo <aph at debian.org> Tue, 2 Oct 2001 03:06:21 -0400
+
+docbook (4.1-5) unstable; urgency=low
+
+ * all docbook catalog files now have "OVERRIDE YES", which forces the
+ PUBID rather than the SYSID in DTD declarations; closes: #97330
+ * correct upstream 40chg.txt to notate the change from ArtHeader to
+ ArticleInfo; closes: #101779
+ * README.Debian rewritten; closes: #106379
+ * it's apparently not nice to call dh_installdocs more than once per
+ package, so stop doing that; closes#98440
+
+ -- Adam Di Carlo <aph at debian.org> Tue, 2 Oct 2001 01:49:30 -0400
+
+docbook (4.1-4) unstable; urgency=low
+
+ * debian/rules: re-work fix for files in debian not preserving execute
+ bit
+ closes: #90627
+
+ -- Adam Di Carlo <aph at debian.org> Sun, 8 Apr 2001 14:37:42 -0400
+
+docbook (4.1-3) unstable; urgency=low
+
+ * debian/control: build-depends-indep includes m4
+ * debian/rules: cope with my local CVS not preserving executable bit,
+ making the source unbuildable
+ closes: #90627
+
+ -- Adam Di Carlo <aph at debian.org> Thu, 22 Mar 2001 02:23:56 -0500
+
+docbook (4.1-2) unstable; urgency=low
+
+ * disable docbook.dcl as DTDDECL, otherwise lots of otherwise valid SGML
+ files will break (when using DTDDECL comprehending processors like
+ OpenJade, anyhow). For more info, see README.docbook.dcl.
+ * include docbook 4.0
+ closes: #68666
+
+ -- Adam Di Carlo <aph at debian.org> Wed, 21 Mar 2001 03:37:38 -0500
+
+docbook (4.1-1) unstable; urgency=low
+
+ * new maintainer, with permission from Mark Eichin
+ closes: #19682, #19683, #36956, #47375, #50243, #51032, #68033
+ closes: #87325, #88679
+ * debian/control: require new sgml-base and sgml-data; suggest
+ docbook-xml; fix a grammar error in the description
+ * transition to new SGML standard system, /usr/share/sgml, and delegated
+ catalogs
+ closes: #90034
+ * rework the maintainer scripts accordingly; use m4 to dynamically set
+ some variables; move the removal work from postrm to prerm; don't
+ bother scrubbing legacy junk in prerm, since postinst configure
+ already ran, what's the point?
+ * provide new catalog entries for just referring to DocBook, generalized
+ to mean the last recommended DocBook, or the latest DocBook v4, or the
+ latest DocBook v3.
+ * delegated catalogs have proper DTDDECLs
+ closes: #63046 (again)
+ * debian/rules: stop using debstd
+ closes: #90122
+ * already fixed in earlier versions
+ closes: #90125
+ * debian/control: add Build-Depends-Indep; update standards to 3.5.2
+ * debian/copyright: update maintainership info and add coverage of the
+ debian integration scripts
+
+ -- Adam Di Carlo <aph at debian.org> Mon, 19 Mar 2001 01:56:38 -0500
+
+docbook (4.1-0.2) unstable; urgency=low
+
+ * non-maintainer upload
+ * sgml-data/sgml-catalog-check.pl location moved
+ closes: #88679
+ * debian/postrm: fix some of the legacy FPI removal logic
+ closes: #87325
+ * debian/postinst: analogous fix, and remove some scrubbing of the SGML
+ catalog which really seemed overreaching (such as fudging with
+ SGMLDECL, and stuff which really ought to be handled by
+ install-sgmlcatalog)
+
+ -- Adam Di Carlo <aph at debian.org> Sat, 17 Mar 2001 16:54:59 -0500
+
+docbook (4.1-0.1) unstable; urgency=low
+
+ * NMU because Mark lacks time.
+ * New upstream release (Closes: #68033).
+ * Do not include 4.0 DTD because 4.1 has no user-level changes from
+ 4.0.
+ * Install doc files into /usr/share/doc/ as per policy (Closes:
+ #50243, #51032).
+ * Uncommented DTDDECL entries from the catalog (Closes: #63046).
+ * Updated download location and copyright notice.
+ * Commented out obsolete line in debian/watch.
+
+ -- Yann Dirson <dirson at debian.org> Tue, 1 Aug 2000 01:01:59 +0200
+
+docbook (3.1-2) unstable; urgency=low
+
+ * debian/control: fix Maintainer realname for consistency.
+
+ -- Mark W. Eichin <eichin at thok.org> Wed, 3 Nov 1999 16:14:46 -0500
+
+docbook (3.1-1) unstable; urgency=low
+
+ * Thanks for all the work; closing the bugs for real and updating my
+ email addresses. closes: #19682, #19683, #36956, #47375.
+
+ -- Mark W. Eichin <eichin at thok.org> Wed, 3 Nov 1999 00:43:12 -0500
+
+docbook (3.1-0.4) unstable; urgency=low
+
+ * NMU so it can be removed when install-sgmlcatalog isn't present.
+ (Closes: #47375).
+
+ -- J.H.M. Dassen (Ray) <jdassen at debian.org> Sat, 30 Oct 1999 14:31:46 +0200
+
+docbook (3.1-0.3) unstable; urgency=low
+
+ * non-maintainer release, blessed by Mark Eichin
+ * at the suggestion of Norm Walsh, retain DTD and entity file name
+ (closes Bug#36956) -- he also suggests that we don't split entities
+ into a separate dir, which is a reasonable thought, but I leave it to
+ others to file a bug if they agree with Norm.
+
+ -- Adam Di Carlo <aph at debian.org> Sat, 22 May 1999 16:43:06 -0400
+
+docbook (3.1-0.2) unstable; urgency=low
+
+ * non-maintainer release
+ * docbook.cat: fix problems with some system identifiers, bugs I
+ introduced
+ * use script from sgml-data to create nice SGML links (completes closing
+ of Bug#19682)
+
+ -- Adam Di Carlo <aph at debian.org> Fri, 26 Mar 1999 04:25:09 -0500
+
+docbook (3.1-0.1) unstable; urgency=low
+
+ * non-maintainer release
+ * new upstream version (blessed by Mark Eichin)
+ * deliver docbook 2.4.1, 3.0, and 3.1 DTDs (closes Bug#19683)
+ * put DTDs, entities, and declarations in standard locations under
+ /usr/lib/sgml; make symlinks under there too in compliance with the
+ sgml-base subpolicy (closes Bug#19682)
+ * debian/control: bump standards version to 2.5.0, reconcile priority to
+ what it is in the archive, update description
+ * debian/rules: some modularization
+ * debian/copyright: updated
+ * README.debian: adding some pointer on other packages and the home page
+
+ -- Adam Di Carlo <aph at debian.org> Fri, 26 Mar 1999 01:36:31 -0500
+
+docbook (3.0-5) unstable; urgency=low
+
+ * debian/rules: use install -m 0644 so text files don't get installed
+ gratuitously executable (lintian).
+
+ -- Mark Eichin <eichin at kitten.gen.ma.us> Wed, 29 Apr 1998 05:39:56 -0400
+
+docbook (3.0-4) unstable; urgency=low
+
+ * docbook.cat: comment out DTDDECL to avoid warnings from jade. Removed
+ ISO entity pointers, since they are now supplied by sgml-data.
+
+ -- Mark Eichin <eichin at kitten.gen.ma.us> Tue, 7 Apr 1998 02:39:48 -0400
+
+docbook (3.0-3) unstable; urgency=low
+
+ * debian/postinst, debian/postrm: use sgml-base like jade does.
+ * debian/control: depend on sgml-base now.
+
+ -- Mark W. Eichin <eichin at kitten.gen.ma.us> Tue, 4 Nov 1997 18:18:18 -0500
+
+docbook (3.0-2) unstable; urgency=low
+
+ * debian/{postinst, postrm}: change md5sum markers to make them easier
+ to find later (and consistent with jade); add cleanup of older form.
+
+ -- Mark W. Eichin <eichin at kitten.gen.ma.us> Tue, 1 Jul 1997 01:08:31 -0400
+
+docbook (3.0-1) unstable; urgency=low
+
+ * Initial Release.
+ * docbook.cat: point to davenport subdir.
+ * rules: install everything, under binary-indep.
+ * debian/{postinst, postrm}: use md5sum markers to add/remove catalog
+ entries. Also nuke SGMLDECL line (by wrapping it in an sgml -- comment
+ --.)
+
+ -- Mark Eichin <eichin at kitten.gen.ma.us> Mon, 30 Jun 1997 14:11:38 -0400
+
+
Added: packages/docbook/trunk/debian/compat
===================================================================
--- packages/docbook/trunk/debian/compat 2007-03-09 12:58:45 UTC (rev 616)
+++ packages/docbook/trunk/debian/compat 2007-03-09 13:07:33 UTC (rev 617)
@@ -0,0 +1 @@
+4
\ No newline at end of file
Added: packages/docbook/trunk/debian/control
===================================================================
--- packages/docbook/trunk/debian/control 2007-03-09 12:58:45 UTC (rev 616)
+++ packages/docbook/trunk/debian/control 2007-03-09 13:07:33 UTC (rev 617)
@@ -0,0 +1,31 @@
+Source: docbook
+Section: text
+Priority: optional
+Maintainer: Adam Di Carlo <aph at debian.org>
+Standards-Version: 3.5.8
+Build-Depends-Indep: debhelper (>= 4.1.31)
+
+Package: docbook
+Architecture: all
+Depends: sgml-data (>= 1.5.0), ${misc:Depends}
+Conflicts: docbook-xml (<= 4.4-4)
+Suggests: psgml, docbook-xml, docbook-dsssl
+Description: standard SGML representation system for technical documents
+ DocBook is an SGML document type definition (DTD) that is well-suited
+ to books, articles, or reference documentation about technical
+ matters, systems, or software (although it is by no means limited to
+ these applications). It has emerged as an open and standard DTD in the
+ software industry, and is used as the documentation system of choice
+ for many free software projects.
+ .
+ This package contains the SGML DTD for DocBook, which describes
+ the formal structure for documents following this format. If you
+ wish to author DocBook documents using XML rather than SGML, use the
+ 'docbook-xml' package. You will need other packages in order to edit
+ (psgml), validate (opensp) or format (docbook-xsl, docbook-dsssl)
+ DocBook documents.
+ .
+ This package includes the 2.4.1, 3.0, 3.1, 4.0, 4.1, 4.2 and 4.3 versions
+ of the DocBook SGML DTD.
+ .
+ Homepage: http://www.oasis-open.org/docbook/sgml/
Added: packages/docbook/trunk/debian/copyright
===================================================================
--- packages/docbook/trunk/debian/copyright 2007-03-09 12:58:45 UTC (rev 616)
+++ packages/docbook/trunk/debian/copyright 2007-03-09 13:07:33 UTC (rev 617)
@@ -0,0 +1,33 @@
+This package was debianized by Mark Eichin <eichin at thok.org> on Mon,
+30 Jun 1997 14:11:38 -0400. It is currently maintained by Adam Di
+Carlo <aph at debian.org>. No changes were made to the upstream version
+of these materials, although the provided SGML Open catalogs were
+trimmed or enhanced to suit Debian's SGML infrastructure. All Debian
+integration scripts and packages are under the GPL v2 or better, a
+copy of which can be found on Debian systems in
+'/usr/share/common-licenses/GPL'.
+
+The original upstream materials may be downloaded from
+<URL:http://www.oasis-open.org/docbook/sgml/>
+
+Copyright:
+
+<!-- Copyright 1992-2000 HaL Computer Systems, Inc.,
+ O'Reilly & Associates, Inc., ArborText, Inc., Fujitsu Software
+ Corporation, and the Organization for the Advancement of
+ Structured Information Standards (OASIS).
+
+ Permission to use, copy, modify and distribute the DocBook DTD and
+ its accompanying documentation for any purpose and without fee is
+ hereby granted in perpetuity, provided that the above copyright
+ notice and this paragraph appear in all copies. The copyright
+ holders make no representation about the suitability of the DTD for
+ any purpose. It is provided "as is" without expressed or implied
+ warranty.
+
+ If you modify the DocBook DTD in any way, except for declaring and
+ referencing additional sets of general entities and declaring
+ additional notations, label your DTD as a variant of DocBook. See
+ the maintenance documentation for more information.
+
+-->
Added: packages/docbook/trunk/debian/examples/Makefile
===================================================================
--- packages/docbook/trunk/debian/examples/Makefile 2007-03-09 12:58:45 UTC (rev 616)
+++ packages/docbook/trunk/debian/examples/Makefile 2007-03-09 13:07:33 UTC (rev 617)
@@ -0,0 +1,21 @@
+SRCS := $(wildcard *.sgml)
+NSGMLS := $(shell if command -v onsgmls 2>/dev/null; then \
+ : ;\
+ elif command -v nsgmls 2>/dev/null; then \
+ : ;\
+ else \
+ echo "false" ;\
+ echo "warning: no nsgmls found" >&2 ;\
+ fi)
+
+NSGMLSARGS=
+
+.PHONY: validate
+validate: $(addsuffix .nsgmls,$(SRCS))
+
+%.nsgmls : %
+ $(NSGMLS) -E1 -wall $(NSGMLSARGS) -gues $<
+
+.PHONY: clean
+clean:
+ rm -f *.html *~
Added: packages/docbook/trunk/debian/examples/docbk42.sgml
===================================================================
--- packages/docbook/trunk/debian/examples/docbk42.sgml 2007-03-09 12:58:45 UTC (rev 616)
+++ packages/docbook/trunk/debian/examples/docbk42.sgml 2007-03-09 13:07:33 UTC (rev 617)
@@ -0,0 +1,2 @@
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
+<book></book>
\ No newline at end of file
Added: packages/docbook/trunk/debian/examples/docbk43.sgml
===================================================================
--- packages/docbook/trunk/debian/examples/docbk43.sgml 2007-03-09 12:58:45 UTC (rev 616)
+++ packages/docbook/trunk/debian/examples/docbk43.sgml 2007-03-09 13:07:33 UTC (rev 617)
@@ -0,0 +1,2 @@
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V4.3//EN">
+<book></book>
\ No newline at end of file
Added: packages/docbook/trunk/debian/examples/docbk44.sgml
===================================================================
--- packages/docbook/trunk/debian/examples/docbk44.sgml 2007-03-09 12:58:45 UTC (rev 616)
+++ packages/docbook/trunk/debian/examples/docbk44.sgml 2007-03-09 13:07:33 UTC (rev 617)
@@ -0,0 +1,2 @@
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V4.4//EN">
+<book></book>
\ No newline at end of file
Added: packages/docbook/trunk/debian/install_docbook.sh
===================================================================
--- packages/docbook/trunk/debian/install_docbook.sh 2007-03-09 12:58:45 UTC (rev 616)
+++ packages/docbook/trunk/debian/install_docbook.sh 2007-03-09 13:07:33 UTC (rev 617)
@@ -0,0 +1,66 @@
+#!/bin/bash
+# given a docbook directory $1, install the files
+
+set -e
+
+install_file="install -o root -g root -m 644 --preserve-timestamps"
+make_dir="install -d -o root -g root -m 755"
+
+me=`basename $0`
+verbose=true
+numargs=3
+
+usage () {
+ cat <<EOU
+Usage: $me <directory> <prefix> <dtddir>
+EOU
+}
+
+infomsg () {
+ if $verbose; then
+ echo "$*"
+ fi
+}
+
+if [ "$#" -lt $numargs ]; then
+ echo "$me: not enough arguments" 1>&2
+ usage
+ exit 1
+elif [ "$#" -gt $numargs ]; then
+ echo "$me: too many arguments" 1>&2
+ usage
+ exit 1
+fi
+
+if [ ! -d $1 ]; then
+ echo "$me: no such directory '$1'" 1>&2
+ exit 1
+fi
+
+srcdir=$1
+prefix=$2
+dtddir=$3
+
+ver=$(echo $srcdir | sed -e 's/docbk\(.\)\(.*\)/\1.\2/; s/\(...\)\(.\)/\1.\2/;')
+# DTD dir without the prefix
+dtddirrel=${dtddir#${prefix}}
+
+$make_dir $dtddir/$ver
+
+infomsg "installing from '$srcdir' into $dtddir/$ver"
+
+for file in $srcdir/*.{mod,dtd,dcl}; do
+ [ -f $file ]
+ infomsg " $file"
+ $install_file ${file} ${dtddir}/${ver}/
+done
+
+# catalogs, named docbook.cat and installed using dh_installcatalog
+file=$srcdir/docbook.cat
+[ -f $file ]
+infomsg " $file -> $ver/catalog (debian/sgmlcatalogs)"
+echo ${file} ${dtddirrel}/${ver}/catalog >> debian/sgmlcatalogs
+ln -sf catalog ${dtddir}/${ver}/$(basename ${file})
+
+exit 0
+
Added: packages/docbook/trunk/debian/postinst
===================================================================
--- packages/docbook/trunk/debian/postinst 2007-03-09 12:58:45 UTC (rev 616)
+++ packages/docbook/trunk/debian/postinst 2007-03-09 13:07:33 UTC (rev 617)
@@ -0,0 +1,50 @@
+#!/bin/sh
+# docbook postinst
+# jobs: install SGML catalog
+# remove old catalog cruft
+
+set -e
+
+# cleaning out legacy stuff
+clean_legacy ( ) {
+ SIG="d8642a455eaf7d28d7432401694ccc1e"
+ SBEG="-- SGML BEGIN docbook.cat"
+ SEND="-- SGML END docbook.cat"
+ SIGNBEG="$SBEG $SIG --"
+ SIGNEND="$SEND $SIG --"
+ # md5sum of docbook.cat, in an SGML comment
+ OLDSIGNBEG='-- SGML BEGIN d8642a455eaf7d28d7432401694ccc1e docbook.cat --'
+ OLDSIGNEND='-- SGML END d8642a455eaf7d28d7432401694ccc1e docbook.cat --'
+
+ # remove entries from transitional.cat
+ if [ -f /usr/lib/sgml/transitional.cat ]; then
+ install-sgmlcatalog --quiet --remove docbook || true
+ fi
+
+ # look for old legacy crap
+ for CAT in /etc/sgml.catalog /etc/sgml/transitional.cat /usr/lib/sgml/transitional.cat; do
+ if [ -f $CAT -a ! -h $CAT ]; then
+ if grep -q "^$OLDSIGNBEG" $CAT && grep -q "^$OLDSIGNEND" $CAT; then
+ echo "cleaning out legacy docbook DTD entries from $CAT (OLDSIGN)"
+ sed -e "/$OLDSIGNBEG/,/$OLDSIGNEND/d" < $CAT > ${CAT}.new
+ mv ${CAT}.new ${CAT}
+ fi
+ if grep -q "^$SBEG" $CAT && grep -q "^$SEND" $CAT; then
+ echo "cleaning out legacy docbook DTD entries from $CAT (SBEG)"
+ sed -e "/$SBEG/,/$SEND/d" < $CAT > ${CAT}.new
+ mv ${CAT}.new ${CAT}
+ fi
+ break
+ fi
+ done
+}
+
+if [ "$1" = configure ]; then
+ # remove any legacy junk from old versions
+ clean_legacy
+fi
+
+# automatically generated debhelper commands
+#DEBHELPER#
+
+exit 0
Added: packages/docbook/trunk/debian/rules
===================================================================
--- packages/docbook/trunk/debian/rules 2007-03-09 12:58:45 UTC (rev 616)
+++ packages/docbook/trunk/debian/rules 2007-03-09 13:07:33 UTC (rev 617)
@@ -0,0 +1,84 @@
+#!/usr/bin/make -f
+# Made with the aid of debmake, by Christoph Lameter,
+# based on the sample debian/rules file for GNU hello by Ian Jackson.
+
+package := docbook
+
+PREFIX := debian/$(package)
+SGMLDIR := $(PREFIX)/usr/share/sgml
+DTDDIR := $(SGMLDIR)/docbook/dtd
+
+newestdbdir := docbk44
+
+install_file := install -o root -g root -m 644 --preserve-timestamps
+make_dir := install -d -o root -g root -m 755
+
+build:
+# nothing to be done
+
+clean:
+ $(checkdir)
+ rm -f `find . -name "*~"`
+ rm -f debian/sgmlcatalogs
+ dh_clean
+
+.PHONY: test
+test:
+ $(checkdir)
+ sh -n debian/postinst
+ sh -n debian/install_docbook.sh
+
+binary-indep: build test
+ $(checkdir)
+ $(checkroot)
+ dh_clean -k
+ $(make_dir) $(DTDDIR)
+
+# reset our dh_installcatalog file with the generalized catalog
+ echo "catalog /usr/share/sgml/docbook/dtd/catalog" > debian/sgmlcatalogs
+
+ chmod a+x debian/install_docbook.sh
+# for each docbk* dir, we walk through and install the appropriate files
+ set -e; for dir in docbk*; do \
+ ./debian/install_docbook.sh $$dir $(PREFIX) $(DTDDIR) ;\
+ done
+
+ dh_installcatalogs
+
+# install the newest docbook's ChangeLog as our upstream changelog
+ dh_installchangelogs $(newestdbdir)/ChangeLog
+
+# install documentation
+ find docbk* -name '*.txt' | xargs dh_installdocs
+ dh_installexamples -i debian/examples/*
+
+# check for bad links
+ find $(PREFIX) -type l -follow >/dev/null # exits 1 on broken links
+
+ dh_compress -i
+
+ dh_installdeb -i
+ dh_gencontrol -i
+ dh_md5sums -i
+ dh_builddeb -i
+
+binary-arch: build
+ $(checkdir)
+# There are no architecture-dependent files to be uploaded
+# generated by this package. If there were any they would be
+# made here.
+
+define checkdir
+ test -f debian/rules
+ test -f catalog
+endef
+
+# Below here is fairly generic really
+
+binary: binary-indep binary-arch
+
+define checkroot
+ test `id -u` = 0
+endef
+
+.PHONY: binary binary-arch binary-indep clean checkroot
Property changes on: packages/docbook/trunk/debian/rules
___________________________________________________________________
Name: svn:executable
+ *
Added: packages/docbook/trunk/debian/watch
===================================================================
--- packages/docbook/trunk/debian/watch 2007-03-09 12:58:45 UTC (rev 616)
+++ packages/docbook/trunk/debian/watch 2007-03-09 13:07:33 UTC (rev 617)
@@ -0,0 +1,5 @@
+# Example watch control file for uscan
+# Rename this file to "watch" and then you can run the "uscan" command
+# to check for upstream updates and more.
+# Site Directory Pattern Version Script
+#ftp.ora.com /pub/davenport/docbook docbk*.tar.Z debian uupdate
More information about the debian-xml-sgml-commit
mailing list