sgml-base-1.26+nmu4ubuntu1/0000775000000000000000000000000010107425130012400 5ustar sgml-base-1.26+nmu4ubuntu1/README0000664000000000000000000000033310060757204013267 0ustar This is the Debian sgml-base package. To install it on a non-Debian system edit the Makefile and then run `make`, `make install`. The changelog is in the 'debian' directory. -- Ardo van Rangelrooij sgml-base-1.26+nmu4ubuntu1/Makefile0000664000000000000000000000213610020504057014042 0ustar ## ---------------------------------------------------------------------- ## Makefile : makefile for sgml-base ## ---------------------------------------------------------------------- ## ---------------------------------------------------------------------- include MAKE/include ## ---------------------------------------------------------------------- ## source package subdirectory definitions subdirs = \ tools ## ---------------------------------------------------------------------- ## SGML infrastructure directory definitions sgml_dirs = \ declaration \ dtd \ entities \ misc \ stylesheet ## ---------------------------------------------------------------------- ## targets all: set -e; \ for d in $(subdirs); \ do \ $(MAKE) -C $${d} ${@}; \ done install: set -e; \ for d in $(sgml_dirs); \ do \ $(INSTALL_DIR) $(sgml_dir)/$${d}; \ $(INSTALL_DIR) $(local_sgml_dir)/$${d}; \ done set -e; \ for d in $(subdirs); \ do \ $(MAKE) -C $${d} ${@}; \ done .PHONY: \ all \ install ## ---------------------------------------------------------------------- sgml-base-1.26+nmu4ubuntu1/debian/0000775000000000000000000000000012057652314013636 5ustar sgml-base-1.26+nmu4ubuntu1/debian/sgml-base.examples0000664000000000000000000000001307715543572017254 0ustar examples/* sgml-base-1.26+nmu4ubuntu1/debian/README.Debian0000664000000000000000000000275610065404223015700 0ustar sgml-base for Debian -------------------- De-Facto Standard Tool for Debian SGML Catalog System Maintenance ---------------------------------------------------------------- update-sgmlcatalog(8) in the sgml-base package is the de-facto standard tool to be used to maintain SGML catalog files on a Debian system, just as update-xmlcatalog(8) in the xml-core package is the standard tool to be used to maintain XML catalog files on a Debian system. A Debian XML/SGML Policy document to this effect is currently under development. Debhelper Support ----------------- The debhelper package contains the debhelper script dh_installcatalogs to support installing SGML package catalog files and registering SGML package catalog files in the SGML catalog system. It complies with the current draft Debian XML/SGML policy. For more information see the manual page. Debian XML & SGML Mailing List ------------------------------ The Debian mailing list 'debian-sgml@lists.debian.org' is used to discuss issues related to XML and SGML on Debian systems, with an emphasis on proper integration of tools, packaging standards and the writing of documentation for XML and SGML users. Debian XML & SGML Group Project ------------------------------- The 'Debian XML/SGML Group' project (http://debian-xml-sgml.alioth.debian.org/) has been setup on Debian Alioth (http://alioth.debian.org/) to develop and maintain XML and SGML packages for the Debian Project in a collaborative effort. -- Ardo van Rangelrooij sgml-base-1.26+nmu4ubuntu1/debian/sgml-base.postrm0000664000000000000000000000222011760664137016760 0ustar #!/bin/sh ## ---------------------------------------------------------------------- ## debian/postrm : postremoval script for sgml-base ## ---------------------------------------------------------------------- ## ---------------------------------------------------------------------- set -e ## ---------------------------------------------------------------------- if [ "$1" = "purge" ] then ## ------------------------------------------------------------------ ## remove SGML root catalog rm -f /etc/sgml/catalog /etc/sgml/catalog.old rm -f /var/lib/sgml-base/supercatalog rm -f /var/lib/sgml-base/supercatalog.new rm -f /var/lib/sgml-base/supercatalog.old ## ------------------------------------------------------------------ ## remove /etc/sgml and /var/lib/sgml-base for dir in /etc/sgml /var/lib/sgml-base; do if [ -d $dir ]; then rmdir --ignore-fail-on-non-empty $dir fi done fi ## ---------------------------------------------------------------------- ## automatically generated debhelper commands #DEBHELPER# exit 0 ## ---------------------------------------------------------------------- sgml-base-1.26+nmu4ubuntu1/debian/copyright0000664000000000000000000000163311760664137015602 0ustar This the Debian package of sgml-base. It was assembled by Christian Schwarz . It is currently maintained by Ardo van Rangelrooij . Copyright: Copyright (C) 1997 Christian Schwarz . Copyright (C) 2001-2004 Ardo van Rangelrooij Copyright (C) 2012 Helmut Grohne This is free software; you may redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. See the GNU General Public License for more details. On a Debian system a copy of the GNU General Public Licence can be found in the file '/usr/share/common-licenses/GPL'. sgml-base-1.26+nmu4ubuntu1/debian/changelog0000664000000000000000000003046212057652314015515 0ustar sgml-base (1.26+nmu4ubuntu1) raring; urgency=low * Resynchronize on Debian, remaining change: * debian/rules: use "dh_perl -d" to drop unnecessary "perl" dependency. -- Sebastien Bacher Wed, 05 Dec 2012 15:06:01 +0100 sgml-base (1.26+nmu4) unstable; urgency=low * Non-maintainer upload. * update-catalog --update-super ignores catalogs referencing non-existent files. (Closes: #676717) Thanks to Jakub Wilk for contributing the parser. * Remove warning about rebuilding packages as it may confuse users. * Quieten update-catalog during trigger and postinst, to avoid warnings for packages in "rc" state. * Pre-Depend on dpkg >= 1.16.4 (Closes: #678902). Removed dependency on dpkg >= 1.14.18. sgml-base highlights a bug in dpkg's trigger processing. -- Helmut Grohne Thu, 21 Jun 2012 16:09:07 +0200 sgml-base (1.26+nmu3) unstable; urgency=low * Non-maintainer upload. * "--" may not appear in comments. (Closes: #674933) -- Helmut Grohne Mon, 28 May 2012 20:51:56 +0200 sgml-base (1.26+nmu2) unstable; urgency=low * Non-maintainer upload. * Generate the super catalog from /etc/sgml directory contents. This does not solve #477751, but the upcoming debhelper changes will solve that bug based on this work. * Do not truncate the manual pages during build. -- Helmut Grohne Mon, 30 Apr 2012 17:15:48 +0200 sgml-base (1.26+nmu1) unstable; urgency=low * Non-maintainer upload * Applied patch from Hideki Yamane adding a check whether directories exist before removing them on purge (closes: Bug#576445) * Moved debhelper from Build-Depends-Indep to Build-Depends as it is used in the clean target, as per Policy section 7.7. -- Michael Banck Sat, 17 Jul 2010 16:27:02 +0200 sgml-base (1.26) unstable; urgency=low * Removed creation of the transitional catalog in a installation - debian/sgml-base.postinst - debian/sgml-base.prerm - tools/install-sgmlcatalog -- Ardo van Rangelrooij Sat, 14 Aug 2004 10:03:56 -0500 sgml-base (1.25) unstable; urgency=low * debian/sgml-base.postinst: fixed transitional SGML catalog initialization (closes: Bug#255627) -- Ardo van Rangelrooij Tue, 22 Jun 2004 20:06:53 -0500 sgml-base (1.24) unstable; urgency=low * debian/sgml-base.*inst: moved SGML root catalog initialization from the preinst to the postinst (closes: Bug#255472) -- Ardo van Rangelrooij Mon, 21 Jun 2004 13:58:25 -0500 sgml-base (1.23) unstable; urgency=low * Removed support for '/usr/lib/sgml' - debian/sgml-base.p*: remove support for '/usr/lib/sgml/catalog' - debian/sgml-base.p*: moved transitional SGML catalog to /etc/sgml - tools/install-sgmlcatalog: updated accordingly - tools/install-sgmlcatalog.8: updated accordingly * debian/control: rewrote short and long description * README: updated * Added README.Debian * debian/copyright: updated -- Ardo van Rangelrooij Sun, 20 Jun 2004 16:59:11 -0500 sgml-base (1.22) unstable; urgency=low * Added SGML infrastructure directories - Makefile: created the SGML infrastructure directories under /usr/share/sgml and under /usr/share/local/sgml - debian/rules: updated to use 'dh_usrlocal' * Moved 'update-catalog*', 'install-sgmlcatalog*' and SGML catalog templates to 'tools' directory * Added Makefiles to 'tools' subdirectory and put all the common parts in 'MAKE/include' * tools/update-catalog: absorbed manual page in POD format * tools/install-sgmlcatalog: absorbed manual page in POD format * debian/control: changed 'Maintainer' to 'Debian XML/SGML Group ' and added current maintainer to 'Uploaders' * debian/control: upgraded to Debian Policy 3.6.1 (no changes) -- Ardo van Rangelrooij Wed, 21 Apr 2004 14:34:27 -0500 sgml-base (1.21) unstable; urgency=low * debian/sgml-base.prerm: updated to remove the transitional catalog from the super catalog also during package upgrade per current sgml-base practice -- Ardo van Rangelrooij Sun, 21 Sep 2003 16:14:18 -0500 sgml-base (1.20) unstable; urgency=low * Added examples * debian/sgml-base.p*:various cosmetic changes * debian/control: upgraded to Debian Policy 3.6.1 (no changes) -- Ardo van Rangelrooij Sun, 21 Sep 2003 16:02:18 -0500 sgml-base (1.19) unstable; urgency=low * install-sgmlcatalog: re-added '--quiet' option (closes: Bug#204891) -- Ardo van Rangelrooij Mon, 11 Aug 2003 05:36:09 -0500 sgml-base (1.18) unstable; urgency=low * install-sgmlcatalog: marked '--install' option as deprecated (closes: Bug#174831) * debian/rules: moved debhelper compatibility level setting to 'debian/compat' per latest debhelper best practices * debian/control: changed build dependency on 'debhelper' to '(>= 4.1)' * debian/copyright: updated * debian/control: upgraded to Debian Policy 3.6.0 (no changes) -- Ardo van Rangelrooij Sun, 10 Aug 2003 17:43:56 -0500 sgml-base (1.17) unstable; urgency=low * debian/control: updated short description and long description -- Ardo van Rangelrooij Sat, 10 Aug 2002 19:00:51 -0500 sgml-base (1.16) unstable; urgency=low * debian/rules: upgraded to debhelper v4 * debian/control: changed build dependency on debhelper accordingly * debian/rules: migrated from 'dh_movefiles' to 'dh_install' * debian/rules: split off 'install' target from 'binary-indep' target * debian/copyright: added pointer to license -- Ardo van Rangelrooij Sat, 10 Aug 2002 13:37:14 -0500 sgml-base (1.15) unstable; urgency=low * debian/control: removed explicit and versioned dependency on 'sed' -- Ardo van Rangelrooij Sun, 26 May 2002 16:49:02 -0500 sgml-base (1.14) unstable; urgency=low * '/usr/share/sgml-base/catalog' -> '/usr/share/sgml-base/catalog.super' (closes: Bug#135279) -- Ardo van Rangelrooij Fri, 22 Feb 2002 21:01:54 -0600 sgml-base (1.13) unstable; urgency=low * Moved documentation into a separate package (closes: Bug#130208) -- Ardo van Rangelrooij Sun, 17 Feb 2002 14:17:29 -0600 sgml-base (1.12) unstable; urgency=low * debian/sgml-base.prerm: split into prerm and postrm to remove catalog files properly upon purge -- Ardo van Rangelrooij Sat, 15 Dec 2001 09:55:45 -0600 sgml-base (1.11) unstable; urgency=low * Removed explicit dhelp support since doc-base now takes care of this * debian/control: added build dependency on sp * Added documentation in PDF format * debian/control: added build dependency on 'libpaperg', 'tetex-bin' and 'tetex-extra' * debian/control: removed obsolete build dependency on 'perl' * debian/control: upgraded to Debian Policy 3.5.6 -- Ardo van Rangelrooij Sun, 4 Nov 2001 13:29:14 -0600 sgml-base (1.10) unstable; urgency=low * debian/postinst: corrected install of 'transitional.cat' (closes: Bug#96163) * debian/prerm: added purge handling (closes: Bug#93036) -- Ardo van Rangelrooij Thu, 3 May 2001 12:05:03 -0500 sgml-base (1.09) unstable; urgency=low * Moved the transitional catalog from '/etc/sgml' to '/usr/lib/sgml' (closes: Bug#87943, Bug#90164) -- Ardo van Rangelrooij Tue, 10 Apr 2001 20:35:14 -0500 sgml-base (1.08) unstable; urgency=low * debian/control: added Conflicts with 'sgmltools-2 (< 2.0.2-5)' (closes: Bug#88078) * debian/postinst: remove circular catalog (closes: Bug#86603, Bug#88009, Bug#88339, Bug#89538, Bug#90766) * debian/postinst: no conffiles anymore (closes: Bug#88003) * debian/control: updated dependencies * debian/control: upgraded to Debian Policy 3.5.2 * debian/control: upgraded to Debian Perl Policy 1.17 -- Ardo van Rangelrooij Mon, 9 Apr 2001 20:44:57 -0500 sgml-base (1.07) unstable; urgency=low * debian/postinst: forgot to `mkdir -p /usr/lib/sgml` * debian/postinst: put various steps in correct order (closes: Bug#87704) -- Ardo van Rangelrooij Mon, 26 Feb 2001 09:47:45 -0600 sgml-base (1.06) unstable; urgency=low * debian/postinst: forgot to `mkdir -p /etc/sgml` -- Ardo van Rangelrooij Sun, 25 Feb 2001 13:10:52 -0600 sgml-base (1.05) unstable; urgency=low * Install '/etc/sgml/catalog' and '/etc/sgml/transitional.cat' as templates from '/usr/share/sgml-base' (closes: Bug#86600) * debian/rules: updated to install to 'debian/tmp' and use 'dh_movefiles' -- Ardo van Rangelrooij Sun, 25 Feb 2001 12:37:03 -0600 sgml-base (1.04) unstable; urgency=low * First steps in migrating '/usr/lib/sgml' to '/usr/share/sgml' * Moved '/etc/sgml.catalog' to '/etc/sgml/transitional.cat' * install-sgmlcatalog: updated to reflect catalog change * install-sgmlcatalog.8: updated to reflect catalog change * Added empty super catalog '/etc/sgml/catalog' * /usr/lib/sgml/catalog: updated to point to the super catalog * Added template for centralized catalogs * Added `update-catalog` for maintaining the super catalog and centralized catalogs * Added various policy documents * README: updated * Added TODO -- Ardo van Rangelrooij Sun, 18 Feb 2001 11:28:05 -0600 sgml-base (1.03) unstable; urgency=low * debian/rules: split functionality between 'Makefile' and 'debian/rules' * Makefile: cleaned-up * debian/rules: cleaned up and migrated to debhelper * debian/control: upgraded to Debian Policy 3.2.1 * Added doc-base support (closes: Bug#31188) -- Ardo van Rangelrooij Tue, 9 Jan 2001 21:22:46 -0600 sgml-base (1.02) unstable; urgency=low * New maintainer. * debian/rules: moved manpage to /usr/share/man (closes: Bug#80768) -- Ardo van Rangelrooij Mon, 8 Jan 2001 09:17:42 -0600 sgml-base (1.01) unstable; urgency=high * Arrgh. It was creating the link in /usr/lib/sgml-base/catalog! My bad. closes: Bug#19873 -- Manoj Srivastava Wed, 18 Mar 1998 00:16:08 -0600 sgml-base (1.00) unstable; urgency=low * New maintainer. * Added the SGML entity management document (thanks to aph@debian.org), and normalized the sgml (I like normalized sgml), and modified and expanded the document. Since an agreement has been reached about the location of declaration files (and, by extention, notations), I incorporatred them as such in the document) * Changed the rules file to conform to my standard rule file * Imported to CVS using cvs-inject * Use cvs-buildpackage to update * Put the text and HTML vversions of the Entity Management docs in /usr/doc. -- Manoj Srivastava Sun, 15 Mar 1998 16:33:58 -0600 sgml-base (0.4.2) unstable; urgency=low * changed usr/lib/sgml/catalog into an absolute link (reported by Lintian) * debian/control: Upgraded to Standards Version 2.4.0.0 (no changes) -- Christian Schwarz Sat, 14 Feb 1998 01:05:39 +0100 sgml-base (0.4.1) unstable; urgency=low * debian/rules: Don't use debstd anymore * debian/rules: Compress changelog file (fixes:#15403) * debian/control: Upgraded to Standards Version 2.3.0.1 * debian/control: Removed perl dependency (perl-base is tagged `Essential') -- Christian Schwarz Wed, 24 Dec 1997 12:19:22 +0100 sgml-base (0.4) unstable; urgency=low * Don't fail if /etc/sgml.catalog does not exist when removing an entry (fixes #13937) * Upgraded to Standards Version 2.3.0.0 -- Christian Schwarz Fri, 17 Oct 1997 16:00:44 +0200 sgml-base (0.3) unstable; urgency=low * Use absolute path spec for conffile "/etc/sgml.catalog" (fixes #9755) * Conflict with sgml-data <= 0.02 (fixes #9941) -- Christian Schwarz Sun, 25 May 1997 14:24:36 +0200 sgml-base (0.2) unstable; urgency=low * Removed symlink /usr/lib/sgml/sgml.catalog . * Wrote README.debian (Guidelines for SGML packages). -- Christian Schwarz Thu, 8 May 1997 11:06:35 +0200 sgml-base (0.1) unstable; urgency=low * Initial release. -- Christian Schwarz Tue, 6 May 1997 16:51:44 +0200 sgml-base-1.26+nmu4ubuntu1/debian/rules0000775000000000000000000000244512057647645014736 0ustar #!/usr/bin/make -f ## ---------------------------------------------------------------------- ## debian/rules : package script for sgml-base ## ---------------------------------------------------------------------- ## ---------------------------------------------------------------------- ## uncomment this to turn on verbose mode #export DH_VERBOSE=1 ## ---------------------------------------------------------------------- TMP_DIR = debian/tmp ## ---------------------------------------------------------------------- ## targets clean: dh_testdir dh_testroot dh_clean rm -f build-stamp install-stamp build: build-stamp build-stamp: dh_testdir $(MAKE) touch build-stamp install: install-stamp install-stamp: build dh_testdir dh_testroot dh_clean -k dh_installdirs $(MAKE) install prefix=$(PWD)/$(TMP_DIR)/usr touch install-stamp binary-indep: build install dh_testdir dh_testroot dh_install --sourcedir=$(TMP_DIR) dh_installdocs dh_installexamples dh_installchangelogs dh_usrlocal dh_compress dh_fixperms dh_installdeb dh_perl -d dh_gencontrol dh_md5sums dh_builddeb binary-arch: binary: binary-indep binary-arch .PHONY: clean build install binary-indep binary-arch binary ## ---------------------------------------------------------------------- sgml-base-1.26+nmu4ubuntu1/debian/TODO0000664000000000000000000000302110060757204014316 0ustar ------------------------------------------------------------------------------ To do list for sgml-base ------------------------------------------------------------------------------ BUGS: ------------------------------------------------------------------------------ Number Description ------------------------------------------------------------------------------ 88008 update-catalog should change its name 125706 does not remove /etc/sgml, /usr/lib/sgml on purge ------------------------------------------------------------------------------ WISHLIST: ------------------------------------------------------------------------------ Number Description ------------------------------------------------------------------------------ 85682 install-catalog (or whatever) should support filename derivative lines in SGML dir 88010 please consider catalog design change ------------------------------------------------------------------------------ VARIOUS: ------------------------------------------------------------------------------ * implement an `sgml-config` tool ala `pkg-config` (look at `sgmlwhich`): * SGML_CATALOG_FILES=`sgml-config --catalogs xml-resume` * other options: --dtd list the dtd path of such package --decl list the declaration file associate --doctype produce a valid doctype header for a document * move `sgml-catalog-check.pl` from 'sgml-data' to 'sgml-base' * 'xsltproc --catalogs [..]' ------------------------------------------------------------------------------ sgml-base-1.26+nmu4ubuntu1/debian/sgml-base.dirs0000664000000000000000000000002211760664137016373 0ustar var/lib/sgml-base sgml-base-1.26+nmu4ubuntu1/debian/sgml-base.install0000664000000000000000000000000407525256726017105 0ustar usr sgml-base-1.26+nmu4ubuntu1/debian/sgml-base.postinst0000664000000000000000000000432712016375220017314 0ustar #!/bin/sh ## ---------------------------------------------------------------------- ## debian/postinst : postinstallation script for sgml-base ## ---------------------------------------------------------------------- ## ---------------------------------------------------------------------- set -e ## ---------------------------------------------------------------------- if [ "$1" = "configure" ] then ## ------------------------------------------------------------------ ## clean up /usr/lib/sgml if [ -d /usr/lib/sgml ] then ## -------------------------------------------------------------- ## remove symlink to /etc/sgml/catalog rm -f /usr/lib/sgml/catalog ## -------------------------------------------------------------- ## move transitional SGML catalog to /etc/sgml TRANSCAT=transitional.cat if [ -f /usr/lib/sgml/${TRANSCAT} ] then mv -f /usr/lib/sgml/${TRANSCAT} /etc/sgml/${TRANSCAT} if [ -f /usr/lib/sgml/${TRANSCAT}.old ] then mv -f /usr/lib/sgml/${TRANSCAT}.old /etc/sgml/${TRANSCAT}.old fi fi ## -------------------------------------------------------------- ## remove /usr/lib/sgml cd /usr/lib rmdir --ignore-fail-on-non-empty sgml cd - >/dev/null fi ## ------------------------------------------------------------------ ## evolve legacy /etc/sgml.catalog OCATALOG=/etc/sgml.catalog if [ -f ${OCATALOG} ] then TRANSCAT=/etc/sgml/transitional.cat if [ -f ${TRANSCAT} ] then cp ${TRANSCAT} ${TRANSCAT}.old else cp /usr/share/sgml-base/transitional.cat ${TRANSCAT} fi sed -e '1,10d' <${OCATALOG} >>${TRANSCAT} rm -f ${OCATALOG} if [ -f ${OCATALOG}.old ] then sed -e '1,10d' <${OCATALOG}.old >>${TRANSCAT}.old rm -f ${OCATALOG}.old fi fi ## ------------------------------------------------------------------ update-catalog --quiet --update-super ln -sf /var/lib/sgml-base/supercatalog /etc/sgml/catalog fi if [ "$1" = "triggered" ] then update-catalog --quiet --update-super fi ## ---------------------------------------------------------------------- ## automatically generated debhelper commands #DEBHELPER# exit 0 ## ---------------------------------------------------------------------- sgml-base-1.26+nmu4ubuntu1/debian/sgml-base.triggers0000664000000000000000000000002311760664137017261 0ustar interest /etc/sgml sgml-base-1.26+nmu4ubuntu1/debian/sgml-base.NEWS0000664000000000000000000000142411760664137016215 0ustar sgml-base (1.26+nmu2) unstable; urgency=low Starting with this release the SGML super catalog /etc/sgml/catalog will be replaced with a symbolic link to /var/lib/sgml-base/supercatalog. The latter file can be regenerated from the contents of the /etc/sgml directory including all files ending in .cat using the new update-catalog --update-super option. This call will be (dpkg) triggered by packages placing files in /etc/sgml. The transition to this way of handling the super catalog will loose user changes to /etc/sgml/catalog. Further overwriting of user changes will happen until all packages using dh_installcatalogs are built with a fixed version of debhelper. Sorry for the inconvenience. -- Helmut Grohne Mon, 30 Apr 2012 16:37:01 +0200 sgml-base-1.26+nmu4ubuntu1/debian/control0000664000000000000000000000210112057647753015246 0ustar Source: sgml-base Section: text Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian XML/SGML Group Uploaders: Ardo van Rangelrooij Standards-Version: 3.6.1 Build-Depends: debhelper (>= 4.1) Package: sgml-base Section: text Priority: optional Architecture: all Conflicts: sgml-data (<= 0.02), sgmltools-2 (<= 2.0.2-4) Depends: ${perl:Depends} Pre-Depends: dpkg (>= 1.16.4) Suggests: sgml-base-doc Description: SGML infrastructure and SGML catalog file support This package creates the SGML infrastructure directories and provides SGML catalog file support in compliance with the current Debian SGML Policy draft: . * infrastructure directories: - /etc/sgml - /usr/share/sgml/{declaration,dtd,entities,misc,stylesheet} - /usr/share/local/sgml/{declaration,dtd,entities,misc,stylesheet} . * update-catalog(8): tool for maintaining the root SGML catalog file and the package SGML catalog files in the '/etc/sgml' directory sgml-base-1.26+nmu4ubuntu1/debian/compat0000664000000000000000000000000207715543572015046 0ustar 4 sgml-base-1.26+nmu4ubuntu1/debian/sgml-base.preinst0000664000000000000000000000176110065627131017117 0ustar #!/bin/sh ## ---------------------------------------------------------------------- ## debian/preinst : preinstallation script for sgml-base ## ---------------------------------------------------------------------- ## ---------------------------------------------------------------------- set -e ## ---------------------------------------------------------------------- if [ "$1" = "install" -o "$1" = "upgrade" ] then ## ------------------------------------------------------------------ ## create /var/lib/sgml-base if [ ! -d /var/lib/sgml-base ] then mkdir /var/lib/sgml-base 2>/dev/null fi ## ------------------------------------------------------------------ ## create /etc/sgml if [ ! -d /etc/sgml ] then mkdir /etc/sgml 2>/dev/null fi fi ## ---------------------------------------------------------------------- ## automatically generated debhelper commands #DEBHELPER# exit 0 ## ---------------------------------------------------------------------- sgml-base-1.26+nmu4ubuntu1/debian/sgml-base.prerm0000664000000000000000000000153511760664137016571 0ustar #!/bin/sh ## ---------------------------------------------------------------------- ## debian/prerm : preremoval script for sgml-base ## ---------------------------------------------------------------------- ## ---------------------------------------------------------------------- set -e ## ---------------------------------------------------------------------- if [ "$1" = "remove" ] || [ "$1" = "upgrade" ] then ## ------------------------------------------------------------------ TRANSCAT=/etc/sgml/transitional.cat if [ -f ${TRANSCAT} ] then rm -f ${TRANSCAT} ${TRANSCAT}.old update-catalog --update-super fi fi ## ---------------------------------------------------------------------- ## automatically generated debhelper commands #DEBHELPER# exit 0 ## ---------------------------------------------------------------------- sgml-base-1.26+nmu4ubuntu1/tools/0000775000000000000000000000000012016375220013545 5ustar sgml-base-1.26+nmu4ubuntu1/tools/install-sgmlcatalog0000775000000000000000000001070710107424757017452 0ustar #!/usr/bin/perl ## ---------------------------------------------------------------------- ## install-sgmlcatalog : Debian SGML catalog management tool ## ---------------------------------------------------------------------- ## Copyright (c) 1997 Christian Schwarz ## Copyright (c) 2001-2004 Ardo van Rangelrooij ## ## This is free software; see the GNU General Public Licence version 2 ## or later for copying conditions. There is NO warranty. ## ---------------------------------------------------------------------- ## ---------------------------------------------------------------------- use strict; use warnings; ## ---------------------------------------------------------------------- use Getopt::Long qw( &GetOptions ); ## ---------------------------------------------------------------------- $0 =~ m|[^/]+$|; ## ---------------------------------------------------------------------- my $name = $&; ## ---------------------------------------------------------------------- use vars qw( $package ); use vars qw( $quiet ); ## ---------------------------------------------------------------------- Getopt::Long::Configure( 'no_ignore_case' ); if ( ! GetOptions( 'quiet' => \$quiet, 'remove=s' => \$package, ) ) { &usage(); exit 1; } ## ---------------------------------------------------------------------- if ( ! defined( $package ) ) { &usage(); exit -1; } ## ---------------------------------------------------------------------- &remove( $package ); ## ---------------------------------------------------------------------- exit 0; ## ---------------------------------------------------------------------- sub remove { ## ------------------------------------------------------------------ my $package = $_[0]; ## ---------------------------------------------------------------------- my $catalog = '/etc/sgml/transitional.cat'; my $backup = '/etc/sgml/transitional.cat.old'; ## ------------------------------------------------------------------ return if ( ! -f $catalog ); ## ---------------------------------------------------------------------- my $top_marker = '-- START SGML CATALOG ENTRY FOR PACKAGE'; my $bottom_marker = '-- END SGML CATALOG ENTRY FOR PACKAGE'; my $eol_marker = '--'; ## ------------------------------------------------------------------ my @data; ## ------------------------------------------------------------------- open( CATALOG, '<', $catalog ) or &error( "cannot open SGML catalog $catalog for reading: $!" ); ## ------------------------------------------------------------------- while ( ) { chop; if ( /$top_marker $package $eol_marker/o ) { if ( $data[ $#data ] =~ /^\s*/o ) { pop( @data ); } while ( !/$bottom_marker $package $eol_marker/o ) { if ( not ($_ = ) ) { &error( "cannot find bottom marker for package $package:\n $bottom_marker $package $eol_marker\nplease remove the entry for $package manually" ); } } } else { push( @data, $_ ); } } ## ------------------------------------------------------------------ close( CATALOG ) or &error( "cannot close SGML catalog $catalog: $!" ); ## ------------------------------------------------------------------ if ( -f $catalog ) { if ( -f $backup ) { unlink( $backup ) or &error( "cannot remove backup of catalog $backup: $!" ); } rename( $catalog, $backup ) or &error( "cannot rename $catalog to $backup: $!" ); } ## ------------------------------------------------------------------ open( CATALOG, '>', $catalog ) or &error( "cannot open SGML catalog $catalog for writing: $!" ); ## ------------------------------------------------------------------ for ( @data ) { print CATALOG "$_\n"; } ## ------------------------------------------------------------------ close( CATALOG ) or &error( "cannot close SGML catalog $catalog: $!" ); } ## remove ## ---------------------------------------------------------------------- sub usage { ## ------------------------------------------------------------------ print STDERR < .br Christian Schwarz (original version) .\" .\" ---------------------------------------------------------------------- .SH COPYRIGHT Copyright \(co 1997 Christian Schwarz .br Copyright \(co 2001-2004 Ardo van Rangelrooij This is free software; see the GNU General Public Licence version 2 or later for copying conditions. There is .I no warranty. .\" .\" ---------------------------------------------------------------------- sgml-base-1.26+nmu4ubuntu1/tools/update-catalog.80000664000000000000000000000674512016375220016544 0ustar .\" -*- nroff -*- .\" ---------------------------------------------------------------------- .\" Copyright (c) 2001-2004 Ardo van Rangelrooij .\" .\" This is free software; see the GNU General Public Licence version 2 .\" or later for copying conditions. There is NO warranty. .\" ---------------------------------------------------------------------- .\" .\" ---------------------------------------------------------------------- .TH UPDATE-CATALOG 8 "June 2004" "Debian Project" "Debian" .\" .\" ---------------------------------------------------------------------- .SH NAME update-catalog \- create or update entry in SGML catalog file .\" .\" ---------------------------------------------------------------------- .SH SYNOPSIS .B update-catalog .RI [ options ] .B --add .I centralized_catalog ordinary_catalog .PP .B update-catalog .RI [ options ] .B --remove .I centralized_catalog ordinary_catalog .PP .B update-catalog .RI [ options ] .B --update-super .\" .\" ---------------------------------------------------------------------- .SH DESCRIPTION .PP .B update-catalog inserts, updates or removes entries in the SGML centralized catalogs located in .IR /etc/sgml . To change the SGML super catalog located in .IR /etc/sgml/catalog modify the directory contents of .IR /etc/sgml to contain new files or symbolic links having a .B .cat extension or remove (or move) existing centralized catalogs and regenerate the super catalog using the .B --update-super option. See section .B SUPER CATALOG for details on the generation process. .\" .\" ---------------------------------------------------------------------- .SH OPTIONS .TP .B --add Adds an entry for the .I ordinary_catalog in the .IR centralized_catalog . .TP .B --remove Removes the entry for the .I ordinary_catalog from the .IR centralized_catalog . .TP .B --update-super Regenerates the SGML super catalog from the contents of the .IR /etc/sgml directory. See section .B SUPER CATALOG for details on the super catalog generation. .TP .B --quiet Prevents the usual diagnostic output. .TP .B --test Prevents the update of the catalog and writes the resulting SGML catalog to standard output. .TP .B --version Displays the version information and exits. .TP .B --help Display the usage information and exits. .\" .\" ---------------------------------------------------------------------- .SH SUPER CATALOG The super-catalog located in .IR /etc/sgml/catalog cannot be directly modified. It is generated by the .IR update-catalog .IR --update-super command. The generation considers files in the .IR /etc/sgml directory that have a .B .cat extension. For instance files ending in .old or .disabled are not considered. Before adding a catalog to the super catalog it is parsed and verified in order to not corrupt the super catalog. All referenced catalogs are verified to actually exist. If the check fails, a message is printed and the complete catalog is ignored. This check ensures that a catalog from a package, which is removed but not purged, is removed from the super catalog. .\" .\" ---------------------------------------------------------------------- .SH AUTHOR Ardo van Rangelrooij .\" .\" ---------------------------------------------------------------------- .SH COPYRIGHT Copyright \(co 2001-2004 Ardo van Rangelrooij Copyright \(co 2012 Helmut Grohne This is free software; see the GNU General Public Licence version 2 or later for copying conditions. There is .I no warranty. .\" .\" ---------------------------------------------------------------------- sgml-base-1.26+nmu4ubuntu1/tools/catalog.super0000664000000000000000000000051710020504060016227 0ustar -- ## ====================================================================== ## /etc/sgml/catalog : SGML Open Style super catalog ## ====================================================================== ## Please use update-catalog(8) to modify this file. ## ====================================================================== -- sgml-base-1.26+nmu4ubuntu1/tools/catalog.centralized0000664000000000000000000000051310020504060017371 0ustar -- ## ====================================================================== ## CATALOG : SGML Open Style centralized catalog ## ====================================================================== ## Please use update-catalog(8) to modify this file. ## ====================================================================== -- sgml-base-1.26+nmu4ubuntu1/tools/update-catalog0000775000000000000000000002222612016375220016371 0ustar #!/usr/bin/perl ## ---------------------------------------------------------------------- ## Debian GNU/Linux update-catalog version 0.2 ## ---------------------------------------------------------------------- ## Copyright (c) 2001-2004 Ardo van Rangelrooij ## Copyright (c) 2012 Helmut Grohne ## Copyright (c) 2012 Jakub Wilk ## ## This is free software; see the GNU General Public Licence version 2 ## or later for copying conditions. There is NO warranty. ## ---------------------------------------------------------------------- ## ---------------------------------------------------------------------- use strict; ## ---------------------------------------------------------------------- $0 =~ m|[^/]+$|; ## ---------------------------------------------------------------------- use vars qw( $name ); $name = $&; ## ---------------------------------------------------------------------- use vars qw( $add ); use vars qw( $backup ); use vars qw( $catalog ); use vars qw( @data ); use vars qw( $debug ); use vars qw( $entry ); use vars qw( $quiet ); use vars qw( $remove ); use vars qw( $super ); use vars qw( $updatesuper ); use vars qw( $template ); use vars qw( $type ); ## ---------------------------------------------------------------------- while ( $ARGV[0] =~ m/^--/ ) { $_ = shift( @ARGV ); last if $_ eq '--'; if ( $_ eq '--add' ) { $add = 1; } elsif ( $_ eq '--remove' ) { $remove = 1; } elsif ( $_ eq '--quiet' ) { $quiet = 1; } elsif ( $_ eq '--super' ) { $super = 1; } elsif ( $_ eq '--test' ) { $debug = 1; } elsif ( $_ eq '--update-super' ) { $updatesuper = 1; } elsif ( $_ eq '--help' ) { &help; exit -1; } elsif ( $_ eq '--version' ) { &help; exit -1; } else { print STDERR "$name: unknown option \`$_'\n"; &help; exit 1; } } ## ---------------------------------------------------------------------- if ( $add + $remove + $updatesuper != 1) { print "Huh? You have to use precisely one out of --add --remove or --update-super.\n"; exit 1; } ## ---------------------------------------------------------------------- if ( $add || $remove ) { if ( ! @ARGV ) { print STDERR "\n"; &help; exit 1; } if ( $super ) { $catalog = '/etc/sgml/catalog'; } else { $catalog = shift( @ARGV ); } if ( ! @ARGV ) { print STDERR "\n"; &help; exit 1; } $entry = shift( @ARGV ); } ## ---------------------------------------------------------------------- if ( @ARGV ) { print STDERR "$name: too many arguments\n"; &help; exit 1; } ## ---------------------------------------------------------------------- print STDERR "$name: test mode - catalog file will not be updated\n" if $debug && ! $quiet; ## ---------------------------------------------------------------------- if ( $super ) { print "update-catalog: Suppressing action on super catalog. Invoking trigger instead.\n"; system("dpkg-trigger /etc/sgml"); if ( $? != 0 ) { print "Invocation of dpkg-trigger failed with status $?.\n"; print "Forcing update of the super catalog...\n"; &update_super; } } elsif ( $add ) { print "Adding entry $entry to catalog $catalog...\n" unless $quiet; &read_catalog_without_entry; &add_entry; &write_catalog; } elsif ( $remove ) { print "Removing entry $entry from catalog $catalog...\n" unless $quiet; &read_catalog_without_entry; &write_catalog; } elsif ( $updatesuper ) { print "Updating the super catalog...\n" unless $quiet; &update_super; } ## ---------------------------------------------------------------------- exit 0; ## ---------------------------------------------------------------------- sub read_catalog_without_entry { if ( -f $catalog ) { print "Reading catalog $catalog and removing entry $entry...\n" if $debug; open( CATALOG, "<$catalog" ) or die "cannot open catalog $catalog for reading: $!"; while ( ) { chop; push( @data, $_ ) unless m/$entry/; } close( CATALOG ); } else { $type = $super ? 'super' : 'centralized'; $template = "/usr/share/sgml-base/catalog.$type"; print "Reading template $template...\n" if $debug; open( TEMPLATE, "<$template" ) or die "cannot open template $template for reading: $!"; while (