debian/0000755000000000000000000000000012032516560007166 5ustar debian/patches/0000755000000000000000000000000012032516560010615 5ustar debian/patches/fixdocbookurl.patch0000644000000000000000000000076012023630455014513 0ustar Description: debian does not use upstream convention. Instead use full path to directory Author: Mathieu Malaterre --- xmlformat-1.04.orig/docs/Makefile +++ xmlformat-1.04/docs/Makefile @@ -14,7 +14,7 @@ XML_CATALOG_FILES ?= ./catalog.xml # systemIdStartString="docbook://xsl-current/" # rewritePrefix="file:///usr/local/sgml/docbook-xsl-1.69.1/" /> -DOCBOOK_XSL = docbook://xsl-current +DOCBOOK_XSL = /usr/share/xml/docbook/stylesheet/docbook-xsl LN = ln -s -f debian/patches/removefopext.patch0000644000000000000000000000150712023632631014362 0ustar Description: Need to use new fop 0.95 and above parameter. See: http://docbook.sourceforge.net/release/xsl/current/doc/fo/use.extensions.html and http://docbook.sourceforge.net/release/xsl/current/doc/fo/fop1.extensions.html Author: Mathieu Malaterre Index: xmlformat-1.04/docs/Makefile =================================================================== --- xmlformat-1.04.orig/docs/Makefile 2012-09-11 14:36:17.063693744 +0200 +++ xmlformat-1.04/docs/Makefile 2012-09-11 14:57:48.723647118 +0200 @@ -86,7 +86,9 @@ %.fo: %.xml xsltproc \ --novalid \ - --param fop.extensions 1 \ + --param use.extensions 1 \ + --param fop1.extensions 1 \ + --param tablecolumns.extension 0 \ --param section.autolabel 1 \ --param section.label.includes.component.label 1 \ --stringparam page.margin.inner "1in" \ debian/patches/series0000644000000000000000000000004712023622550012030 0ustar fixdocbookurl.patch removefopext.patch debian/source/0000755000000000000000000000000012032516560010466 5ustar debian/source/format0000644000000000000000000000001411752757301011704 0ustar 3.0 (quilt) debian/xmlformat.1.in0000644000000000000000000000032712032316102011656 0ustar [NAME] xmlformat \- XML Document Formatter [AUTHOR] Paul DuBois paul@kitebird.com This manual page was written by Mathieu Malaterre for the Debian GNU/Linux system, but may be used by others. debian/xmlformat-doc.docs0000644000000000000000000000016312032316102012602 0ustar BUGS docs/xmlformat.conf docs/tutorial.html-chunk/ docs/xmlformat.html-chunk/ docs/xmlformat.pdf docs/tutorial.pdf debian/xmlformat-doc.doc-base.tutorial0000644000000000000000000000104712023622550015202 0ustar Document: xmlformat-tutorial Title: xmlformat Tutorial Author: Paul DuBois Abstract: xmlformat Tutorial This document is a user guide that provides a tutorial introduction to the xmlformat program. Another document, The xmlformat Document Formatter, describes the capabilities of xmlformat in more detail. Section: Programming Format: HTML Index: /usr/share/doc/xmlformat-doc/tutorial.html-chunk/index.html Files: /usr/share/doc/xmlformat-doc/tutorial.html-chunk/* Format: PDF Files: /usr/share/doc/xmlformat-doc/tutorial.pdf debian/rules0000755000000000000000000000162512032316102010240 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 %: dh $@ --parallel pkg_perl = xmlformat-perl pkg_ruby = xmlformat-ruby pkg_doc = xmlformat-doc override_dh_install: dh_install -p$(pkg_perl) xmlformat.pl usr/bin dh_install -p$(pkg_ruby) xmlformat.rb usr/bin # rename: mv $(CURDIR)/debian/xmlformat-perl/usr/bin/xmlformat.pl $(CURDIR)/debian/xmlformat-perl/usr/bin/xmlformat mv $(CURDIR)/debian/xmlformat-ruby/usr/bin/xmlformat.rb $(CURDIR)/debian/xmlformat-ruby/usr/bin/xmlformat override_dh_installman: dh_installman -p$(pkg_perl) debian/xmlformat.1 dh_installman -p$(pkg_ruby) debian/xmlformat.1 override_dh_auto_build-indep: $(MAKE) dist-prep override_dh_compress: dh_compress -X.pdf # ruby and perl use the same interface: debian/xmlformat.1: debian/xmlformat.1.in help2man --include=debian/xmlformat.1.in \ --output=$@ --no-info xmlformat get-orig-source: uscan --verbose --force-download --rename debian/compat0000644000000000000000000000000211753223612010366 0ustar 9 debian/changelog0000644000000000000000000000051212032316102011024 0ustar xmlformat (1.04-2) unstable; urgency=low * Fix example.conf installation * Add upstream BUGS -- Mathieu Malaterre Mon, 01 Oct 2012 15:32:48 +0200 xmlformat (1.04-1) unstable; urgency=low * Initial release. (Closes: #687277) -- Mathieu Malaterre Tue, 11 Sep 2012 14:23:44 +0200 debian/watch0000644000000000000000000000012212023604407010210 0ustar version=3 http://www.kitebird.com/software/xmlformat/xmlformat-([\d\.]+)\.tar\.gz debian/copyright0000644000000000000000000000775612023622550011135 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Source: http://www.kitebird.com/software/xmlformat/ Upstream-Name: xmlformat Files: * Copyright: Copyright (c) 2004, 2005, Kitebird, LLC. All rights reserved. Copyright (c) 1998, Robert D. Cameron. REX is described in this document: License: BSD Files: debian/* Copyright: 2012, Mathieu Malaterre License: BSD License: BSD Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . 3. Neither the name of Kitebird nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Comment: The REX parser . xmlformat contains code based on the REX parser, which is Copyright (c) 1998, Robert D. Cameron. REX is described in this document: . http://www.cs.sfu.ca/~cameron/REX.html . The document contains a Perl implementation of REX: . --- begin REX code --- # REX/Perl 1.0 # Robert D. Cameron "REX: XML Shallow Parsing with Regular Expressions", # Technical Report TR 1998-17, School of Computing Science, Simon Fraser # University, November, 1998. # Copyright (c) 1998, Robert D. Cameron. # The following code may be freely used and distributed provided that # this copyright and citation notice remains intact and that modifications # or additions are clearly identified. . $TextSE = "[^<]+"; $UntilHyphen = "[^-]*-"; $Until2Hyphens = "$UntilHyphen(?:[^-]$UntilHyphen)*-"; $CommentCE = "$Until2Hyphens>?"; $UntilRSBs = "[^\\]]*](?:[^\\]]+])*]+"; $CDATA_CE = "$UntilRSBs(?:[^\\]>]$UntilRSBs)*>"; $S = "[ \\n\\t\\r]+"; $NameStrt = "[A-Za-z_:]|[^\\x00-\\x7F]"; $NameChar = "[A-Za-z0-9_:.-]|[^\\x00-\\x7F]"; $Name = "(?:$NameStrt)(?:$NameChar)*"; $QuoteSE = "\"[^\"]*\"|'[^']*'"; $DT_IdentSE = "$S$Name(?:$S(?:$Name|$QuoteSE))*"; $MarkupDeclCE = "(?:[^\\]\"'><]+|$QuoteSE)*>"; $S1 = "[\\n\\r\\t ]"; $UntilQMs = "[^?]*\\?+"; $PI_Tail = "\\?>|$S1$UntilQMs(?:[^>?]$UntilQMs)*>"; $DT_ItemSE = "<(?:!(?:--$Until2Hyphens>|[^-]$MarkupDeclCE)|\\?$Name(?:$PI_Tail))|%$Name;|$S"; $DocTypeCE = "$DT_IdentSE(?:$S)?(?:\\[(?:$DT_ItemSE)*](?:$S)?)?>?"; $DeclCE = "--(?:$CommentCE)?|\\[CDATA\\[(?:$CDATA_CE)?|DOCTYPE(?:$DocTypeCE)?"; $PI_CE = "$Name(?:$PI_Tail)?"; $EndTagCE = "$Name(?:$S)?>?"; $AttValSE = "\"[^<\"]*\"|'[^<']*'"; $ElemTagCE = "$Name(?:$S$Name(?:$S)?=(?:$S)?(?:$AttValSE))*(?:$S)?/?>?"; $MarkupSPE = "<(?:!(?:$DeclCE)?|\\?(?:$PI_CE)?|/(?:$EndTagCE)?|(?:$ElemTagCE)?)"; $XML_SPE = "$TextSE|$MarkupSPE"; . sub ShallowParse { my($XML_document) = @_; return $XML_document =~ /$XML_SPE/g; } --- end REX code --- . The Perl and Ruby implementations of xmlformat contain parsers that are based on the preceding code and are essentially the same, with the exception of changes to variable and function names. debian/control0000644000000000000000000000412312032516551010571 0ustar Source: xmlformat Section: utils Priority: optional Maintainer: Mathieu Malaterre Build-Depends: debhelper (>= 9) Build-Depends-Indep: xsltproc, fop, docbook-xsl, ruby Homepage: http://www.kitebird.com/software/xmlformat/ Vcs-Browser: http://anonscm.debian.org/viewvc/collab-maint/deb-maint/xmlformat/trunk/ Vcs-Svn: svn://svn.debian.org/collab-maint/deb-maint/xmlformat/trunk Standards-Version: 3.9.3 Package: xmlformat-perl Architecture: all Depends: ${perl:Depends}, ${misc:Depends} Provides: xmlformat Conflicts: xmlformat Replaces: xmlformat Suggests: libxml2-utils Description: XML Document Formatter xmlformat is a configurable formatter (or "pretty-printer") for XML documents. It provides control over indentation, line-breaking, and text wrapping. These properties can be defined on a per-element basis. . xmlformat provides improved diagnostic information when a document is not well-formed. (Prints line and token number, and stack trace). . This is the perl implementation Package: xmlformat-ruby Architecture: all Depends: ${misc:Depends}, ruby Provides: xmlformat Conflicts: xmlformat Replaces: xmlformat Suggests: libxml2-utils Description: XML Document Formatter xmlformat is a configurable formatter (or "pretty-printer") for XML documents. It provides control over indentation, line-breaking, and text wrapping. These properties can be defined on a per-element basis. . xmlformat provides improved diagnostic information when a document is not well-formed. (Prints line and token number, and stack trace). . This is the ruby implementation Package: xmlformat-doc Architecture: all Section: doc Depends: ${misc:Depends}, doc-base Description: XML Document Formatter documentation xmlformat is a configurable formatter (or "pretty-printer") for XML documents. It provides control over indentation, line-breaking, and text wrapping. These properties can be defined on a per-element basis. . xmlformat provides improved diagnostic information when a document is not well-formed. (Prints line and token number, and stack trace). . This is the documentation for xmlformat debian/xmlformat.10000644000000000000000000000361512032316102011254 0ustar .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.40.12. .TH XMLFORMAT "1" "October 2012" "xmlformat 1.04 (Perl version)" "User Commands" .SH NAME xmlformat \- XML Document Formatter .SH SYNOPSIS .B xmlformat [\fIoptions\fR] \fIxml-file\fR .SH OPTIONS \fB\-\-help\fR, \fB\-h\fR .IP Print this message and exit. .PP \fB\-\-backup\fR suffix \fB\-b\fR suffix .IP Back up the input document, adding suffix to the input filename to create the backup filename. .PP \fB\-\-canonized\-output\fR .IP Proceed only as far as the document canonization stage, printing the result. .PP \fB\-\-check\-parser\fR .IP Parse the document into tokens and verify that their concatenation is identical to the original input document. This option suppresses further document processing. .PP \fB\-\-config\-file\fR file_name, \fB\-f\fR file_name .IP Specify the configuration filename. If no file is named, xmlformat uses the file named by the environment variable XMLFORMAT_CONF, if it exists, or ./xmlformat.conf, if it exists. Otherwise, xmlformat uses built\-in formatting options. .PP \fB\-\-in\-place\fR, \fB\-i\fR .IP Format the document in place, replacing the contents of the input file with the reformatted document. (It's a good idea to use \fB\-\-backup\fR along with this option.) .PP \fB\-\-show\-config\fR .IP Show configuration options after reading configuration file. This option suppresses document processing. .PP \fB\-\-show\-unconfigured\-elements\fR .IP Show elements that are used in the document but for which no options were specified in the configuration file. This option suppresses document output. .PP \fB\-\-verbose\fR, \fB\-v\fR .IP Be verbose about processing stages. .PP \fB\-\-version\fR, \fB\-V\fR .IP Show version information and exit. .SH AUTHOR Paul DuBois paul@kitebird.com This manual page was written by Mathieu Malaterre for the Debian GNU/Linux system, but may be used by others. debian/xmlformat-doc.doc-base.xmlformat0000644000000000000000000000073612023622550015354 0ustar Document: xmlformat-xml Title: The xmlformat XML Document Formatter Author: Paul DuBois Abstract: xmlformat is a formatter (or "pretty-printer") for XML documents. It is useful when you want XML documents to have a standard format. Section: Programming Format: HTML Index: /usr/share/doc/xmlformat-doc/xmlformat.html-chunk/index.html Files: /usr/share/doc/xmlformat-doc/xmlformat.html-chunk/* Format: PDF Files: /usr/share/doc/xmlformat-doc/xmlformat.pdf