debian/0000755000000000000000000000000012201646641007170 5ustar debian/copyright0000644000000000000000000000530212201131202011101 0ustar This package was debianized by W. Borgert on Sat, 2004-03-13 17:04:55 GMT 2004. It was downloaded from Sourceforge: Upstream Author: Steve Cheng Copyright: Copyright (C) 2000-2006 Steve Cheng . Parts have been derived from the docbook-xsl stylesheet distribution, that is: Copyright (C) 1999, 2000, 2001, 2002 Norman Walsh. License and Warranty for docbook2X: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALNGS IN THE SOFTWARE. License and Warranty for derived parts: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ``Software''), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in al copies or substantial portions of the Software. Except as contained in this notice, the names of individuals credited with contribution to this software shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from the individuals in question. Any stylesheet derived from this Software that is publicly distributed will be identified with a different name and the version strings in any derived Software will be changed s that no possibility of confusion between the derived package and this Software will exist. debian/docbook2x.examples0000644000000000000000000000002212201131202012572 0ustar debian/examples/* debian/TODO0000644000000000000000000000163012201131202007636 0ustar Things that should (IMHO definitely) be done in the near future: * make the package XML policy compliant. - move the stylesheets and DTDs into /usr/share/xml * solve the conflict with the docbook-utils package binaries (including: man-pages and docs currently use the names chosen by upstream, not "our" tranformed binary names) * the man-pages contain references to files in /usr/share [.. citing Steve Cheng ..] So you have two choices: 1. You can either use a sed script afterwards to fix the paths in the installed man pages (and HTML, Texinfo documentation). 2. Or, force the rebuild of the documentation at your end. After running the configure --with-html-xsl, touch doc/docbook2X.xml and then make. (Note: don't use VPATH builds in this situation; it breaks.) Of course you will need the xsltproc and the DocBook XSL stylesheets for this procedure. [..] debian/examples/0000755000000000000000000000000012201127277011005 5ustar debian/examples/ttcn-el.dbk0000644000000000000000000001470712201131202013025 0ustar Debian GNU/Linux"> GNU Emacs"> TTCN-3"> TTCN.MP"> ]> &emacs; modes for protocol testing languages TTCN-3 mode
debacle@debian.org
W. Borgert 2000 W. Borgert 2000-07-28
ttcn-el 7 Development ttcn-el &emacs; modes for protocol testing languages. ttcn-3-mode ttcn-mode tm-functions Description The programming modes ttcn-3-mode, ttcn-mode, and tm-functions for &emacs; are for programming in the &ttcn3;, core language (Testing and Test Control Notation - 3), &ttcnmp; format (Tree and Tabulart Combined Notation), or the Test Manager scripts, an enhancement to the Forth programming language, used in the Tektronix K1297 protocol tester. The &ttcn3; programming mode (ttcn-3-mode, file ttcn3.el) does indentation, code colourisation (so-called font-locking) and gives you an index of test cases and other important definitions via the Module-Index. With the command ttcn3-parse you can run an external TTCN3Parser or ttthreeparser, if available. The keywords are according to the TTCN-3 BNF of 2001-10. To switch off the logo splash screen, set the variable ttcn3-show-logo to nil in your ~/.emacs file. The logo is by Patrick Andrieu, the ASCII art version by W. Borgert. This mode is based on CC Mode, please look in the CC Mode documentation for further information. The &ttcnmp; programming mode (ttcn-mode, file ttcn.el) is not for writing test suites from scratch, but for fixing small errors or doing little changes or just looking at the MP format. No indentation is done, but some code colourisation, an index, and a menu with some navigation functions are given. Note: For large test suites startup might become very slow. If one want that &emacs; treats files with the .mp extension automatically as &ttcnmp; files instead of MetaPost files, add the following lines to your ~/.emacs file: (setq auto-mode-alist (cons '("\\.mp\\'" . ttcn-mode) auto-mode-alist)) The Test Manager programming functions (tm-functions, file tm.el)is an addition to the Forth programming mode (forth-mode, file forth.el). It includes only minor additions to the regular Forth mode, i.e. font-locking, index menu, and support of the Test Manager specific words. To enable the tm-functions by default, add the following line to your ~/.emacs: (add-hook 'forth-mode-hook 'tm-functions) Files All lisp source files are in /usr/share/emacs/site-lisp/ttcn-el/. Author These programmes are made by W. Borgert <debacle@debian.org>, as well as this documentation. Thanks All important ideas and some code are taken from other &emacs; modes, and adapted to work with TTCN-3, &ttcnmp; and Test Manager files. Thanks to Csaba Koppany and Theofanis Vassiliou-Gioles for valuable hints on current TTCN-3 keywords and regular expressions. Copyright Copyright 2000 W. Borgert and released under the GNU General Public License (GPL). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1; with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. Bugs The indentation is not correct in many cases. History Version 0.6 released on 2001-10-10. Updated keywords. Version 0.5 released on 2001-05-05. Updated keywords. Version 0.4 released on 2001-02-02. Calls external parser. Version 0.3 released on 2001-01-31. ttcn3.el should now work with GNU Emacs 21.0 and XEmacs 21.1, too. Version 0.2 released on 2000-07-28. Includes updates for &ttcn3; keywords in ttcn3.el and makes tm.el a function library instead of a major mode. Version 0.1 released on 2000-03-31. Initial release.
debian/examples/Makefile0000644000000000000000000000176512201131202012435 0ustar # -*- makefile -*- # Notes: # 1. you must have package libxml2-python2.3 installed # 2. your document must have a titleabbrev in the refentryinfo # 3. your document must have a refmiscinfo with role=infodirsection XTR=python -c 'import sys, libxml2; \ print libxml2.parseFile(sys.argv[1]).xpathEval(sys.argv[2])[0].content' all: $(patsubst %.dbk,%.info,$(wildcard *.dbk)) %.info: %.dbk docbook2x-texi --info --to-stdout $< | \ awk -v base=`basename $< .dbk` \ -v sect="`${XTR} $< '//refmiscinfo[@role="infodirsection"]'`" \ -v title="`${XTR} $< '/refentry/refentryinfo/titleabbrev'`" \ 'BEGIN { p=1 } \ /^START-INFO-DIR-ENTRY/ { print \ "INFO-DIR-SECTION " sect "\n" $$0; p=0 } \ /^END-INFO-DIR-ENTRY/ { p=1 } \ /^\* / { if (p==0) { gsub(/.*\./, ""); \ print "* " title ": (" base ")." $$0 } } \ /^File: stdout,/ { if (p==1) { \ gsub(/File: stdout/, "File: " base ".info"); p=2 } } \ { if (p) { print } }' > $@ clean:: rm -f *.info *~ debian/source/0000755000000000000000000000000012200736105010462 5ustar debian/source/format0000644000000000000000000000001412201131202011654 0ustar 3.0 (quilt) debian/rules0000755000000000000000000000265112201646570010255 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/autotools.mk PACKAGE := docbook2x DEB_CONFIGURE_EXTRA_FLAGS := --program-transform-name="s/^docbook2/docbook2x-/" --with-html-xsl common-install-prehook-arch:: sed "s/^INFO-DIR-SECTION Document Preparation/INFO-DIR-SECTION Text/" \ doc/docbook2X.info > debian/docbook2X.info sed "s/^INFO-DIR-SECTION Document Preparation/INFO-DIR-SECTION Text/" \ xslt/documentation/docbook2man-xslt.info > debian/docbook2man-xslt.info sed "s/^INFO-DIR-SECTION Document Preparation/INFO-DIR-SECTION Text/" \ xslt/documentation/docbook2texi-xslt.info > debian/docbook2texi-xslt.info binary-install/docbook2x:: dh_installinfo -pdocbook2x debian/docbook2X.info \ debian/docbook2man-xslt.info \ debian/docbook2texi-xslt.info dh_installchangelogs doc/changes.html dh_installxmlcatalogs binary-post-install/docbook2x:: mv $(CURDIR)/debian/$(PACKAGE)/usr/share/doc/docbook2X \ $(CURDIR)/debian/$(PACKAGE)/usr/share/doc/docbook2x sed -i -e 's/docbook2man/docbook2x\\-man/g' \ $(CURDIR)/debian/$(PACKAGE)/usr/share/man/man1/docbook2x-man.1 sed -i -e 's/docbook2texi/docbook2x\\-texi/g' \ $(CURDIR)/debian/$(PACKAGE)/usr/share/man/man1/docbook2x-texi.1 clean:: make -C debian/examples clean rm -f debian/docbook2X.info debian/docbook2man-xslt.info debian/docbook2texi-xslt.info debian/watch0000644000000000000000000000013212201131202010173 0ustar # See uscan(1) for format version=3 http://sf.net/docbook2x/docbook2X-([\d\.]+)\.tar\.gz debian/patches/0000755000000000000000000000000012201127103010602 5ustar debian/patches/02_fix_418703_dont_use_abbreviated_sfnet_address.patch0000644000000000000000000000253012201131202022667 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 02_fix_418703_dont_use_abbreviated_sfnet_address.dpatch by Daniel Leidert (dale) ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Ondrej Certik reported a resolver issue: http://bugs.debian.org/418703. ## DP: The error seems to be caused by using the abbreviated sf.net URLs. But ## DP: it is possible, that this issue only occurs together with the issue ## DP: described in 01_fix_static_datadir_evaluation.dpatch, because the path ## DP: to the catalog also suffers from this issue. @DPATCH@ diff -urNad docbook2x-0.8.8~/perl/db2x_xsltproc.pl docbook2x-0.8.8/perl/db2x_xsltproc.pl --- docbook2x-0.8.8~/perl/db2x_xsltproc.pl 2004-08-18 16:21:52.000000000 +0200 +++ docbook2x-0.8.8/perl/db2x_xsltproc.pl 2007-04-12 16:07:20.000000000 +0200 @@ -110,10 +110,10 @@ if($options->{'stylesheet'} eq 'texi') { $options->{'stylesheet'} = - "http://docbook2x.sf.net/latest/xslt/texi/docbook.xsl"; + "http://docbook2x.sourceforge.net/latest/xslt/texi/docbook.xsl"; } elsif($options->{'stylesheet'} eq 'man') { $options->{'stylesheet'} = - "http://docbook2x.sf.net/latest/xslt/man/docbook.xsl"; + "http://docbook2x.sourceforge.net/latest/xslt/man/docbook.xsl"; } if(scalar(@argv) != 1) { debian/patches/04_fix_442782_preprocessor_declaration_syntax.patch0000644000000000000000000000643612201131202022333 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 04_fix_442782_preprocessor_declaration_syntax.dpatch by Colin Watson . ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Conventionally, preprocessor declarations should start with ## DP: '\" ## DP: rather than ## DP: .\" ## DP: Current man-db only supports the first (and recommended) syntax. So ## DP: Colin Watson provided this patch to fix docbook2x. ## DP: ## DP: ## DP: @DPATCH@ diff -urNad trunk~/perl/db2x_manxml.pl trunk/perl/db2x_manxml.pl --- trunk~/perl/db2x_manxml.pl 2006-04-22 17:21:32.000000000 +0200 +++ trunk/perl/db2x_manxml.pl 2007-11-24 01:27:37.000000000 +0100 @@ -342,6 +342,25 @@ $self->{line_start} = 1; } +# +# Print a comment in the output, without causing a break. +# Params: comment - the comment text. +# May use any characters; they need not be escaped. +# +sub comment_nobreak +{ + my ($self, $comment) = @_; + $self->write("\n") unless $self->{line_start}; + + foreach my $line (split(/\n/, $comment)) { + $self->write('\'\" '); + $self->write($line); + $self->write("\n"); + } + + $self->{line_start} = 1; +} + # # Use a roff "escape" i.e. commands embedded in text starting with \ @@ -510,16 +529,20 @@ $self->{'adjust-stack'} = [ 'b' ]; - $self->{rw}->comment($elem->attr('preprocessors')) - if($elem->attr('preprocessors') ne ''); - + my $preprocessors = $elem->attr('preprocessors'); # I've dug through the Internet to see if there was any # standard way to specify encoding with man pages. # The following seems to be a reasonable proposal: # my $encoding = $self->{options}->{'encoding'}; $encoding =~ s#//TRANSLIT$##i; - $self->{rw}->comment("-*- coding: $encoding -*-"); + $encoding = "-*- coding: $encoding -*-"; + if ($preprocessors eq '') { + $preprocessors = $encoding; + } else { + $preprocessors = "$preprocessors $encoding"; + } + $self->{rw}->comment_nobreak($preprocessors); # Define escapes for switching to and from monospace fonts (groff only) $self->{rw}->request(qw{ .if \n(.g .ds T< \\\\FC}); diff -urNad trunk~/xslt/backend/db2x_manxml.xsl trunk/xslt/backend/db2x_manxml.xsl --- trunk~/xslt/backend/db2x_manxml.xsl 2006-04-23 16:44:52.000000000 +0200 +++ trunk/xslt/backend/db2x_manxml.xsl 2007-11-24 01:27:37.000000000 +0100 @@ -528,7 +528,7 @@ - .\" -*- coding: + '\" -*- coding: -*- @@ -538,7 +538,7 @@ - .\" -*- coding: + '\" -*- coding: -*- debian/patches/03_fix_420153_filename_whitespace_handling.patch0000644000000000000000000000404012201131202021442 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 03_fix_420153_filename_whitespace_handling.dpatch by ## Daniel Leidert (dale) ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Peter Eisentraut reported a regression in the whitespace handling of ## DP: refentrytitle content during filename creation: ## DP: http://bugs.debian.org/420153. The problem is, that upstream first ## DP: replaces all spaces (but not linebreaks btw) with underlines and then ## DP: it tries to normalize the result. This means, that a linebreak with ## DP: additional whitespaces results in manpage names like 'foo_ ____bar.9'. ## DP: So what we basically do in this patch is, that we first normalize the ## DP: refentrytitle and then replace any spaces left with underlines. @DPATCH@ diff -urNad docbook2x-0.8.8~/xslt/man/manpage.xsl docbook2x-0.8.8/xslt/man/manpage.xsl --- docbook2x-0.8.8~/xslt/man/manpage.xsl 2006-04-20 15:45:55.000000000 +0200 +++ docbook2x-0.8.8/xslt/man/manpage.xsl 2007-04-20 16:19:28.000000000 +0200 @@ -30,7 +30,7 @@ - + diff -urNad docbook2x-0.8.8~/xslt/man/refentry.xsl docbook2x-0.8.8/xslt/man/refentry.xsl --- docbook2x-0.8.8~/xslt/man/refentry.xsl 2006-04-21 04:39:55.000000000 +0200 +++ docbook2x-0.8.8/xslt/man/refentry.xsl 2007-04-20 16:21:53.000000000 +0200 @@ -38,7 +38,11 @@ - + + + + +