[xml/sgml-commit] r182 - in packages/xmltex/trunk: . debian

Graham Wilson graham@haydn.debian.org
Fri, 25 Jun 2004 11:34:57 -0600


Author: graham
Date: 2004-06-25 11:34:55 -0600 (Fri, 25 Jun 2004)
New Revision: 182

Added:
   packages/xmltex/trunk/debian/
   packages/xmltex/trunk/debian/20xmltex.cnf
   packages/xmltex/trunk/debian/40xmltex.cnf
   packages/xmltex/trunk/debian/changelog
   packages/xmltex/trunk/debian/conffiles
   packages/xmltex/trunk/debian/control
   packages/xmltex/trunk/debian/copyright
   packages/xmltex/trunk/debian/dirs
   packages/xmltex/trunk/debian/doc-base.xmltex
   packages/xmltex/trunk/debian/docs
   packages/xmltex/trunk/debian/manpages
   packages/xmltex/trunk/debian/postinst
   packages/xmltex/trunk/debian/postrm
   packages/xmltex/trunk/debian/rules
   packages/xmltex/trunk/pdfxmltex.1
   packages/xmltex/trunk/xmltex.1
Log:
Load xmltex-1.9 into packages/xmltex/trunk.


Added: packages/xmltex/trunk/debian/20xmltex.cnf
===================================================================
--- packages/xmltex/trunk/debian/20xmltex.cnf	2004-06-25 17:34:08 UTC (rev 181)
+++ packages/xmltex/trunk/debian/20xmltex.cnf	2004-06-25 17:34:55 UTC (rev 182)
@@ -0,0 +1,2 @@
+% Settings for Debian xmltex
+TEXINPUTS.pdfxmltex = .;$TEXMF/{pdftex,tex}/{xmltex,plain,generic,}//

Added: packages/xmltex/trunk/debian/40xmltex.cnf
===================================================================
--- packages/xmltex/trunk/debian/40xmltex.cnf	2004-06-25 17:34:08 UTC (rev 181)
+++ packages/xmltex/trunk/debian/40xmltex.cnf	2004-06-25 17:34:55 UTC (rev 182)
@@ -0,0 +1,2 @@
+xmltex		tex	language.dat	&latex xmltex.ini
+pdfxmltex	pdftex	language.dat	&pdflatex pdfxmltex.ini

Added: packages/xmltex/trunk/debian/changelog
===================================================================
--- packages/xmltex/trunk/debian/changelog	2004-06-25 17:34:08 UTC (rev 181)
+++ packages/xmltex/trunk/debian/changelog	2004-06-25 17:34:55 UTC (rev 182)
@@ -0,0 +1,96 @@
+xmltex (1.9-7) unstable; urgency=low
+
+  * Rebuild with a fixed build tool. (closes: #235413)
+
+ -- Graham Wilson <graham@debian.org>  Wed, 03 Mar 2004 22:52:19 +0000
+
+xmltex (1.9-6) unstable; urgency=low
+
+  * New maintainer.
+  * Remove README.Debian, as it didn't have anything useful.
+  * Update the copyright file.
+
+ -- Graham Wilson <graham@debian.org>  Fri, 27 Feb 2004 21:54:19 +0000
+
+xmltex (1.9-5) unstable; urgency=low
+
+  * Oops! Small error at recompilation.
+
+ -- Fabien Ninoles <fabien@debian.org>  Mon, 16 Dec 2002 17:23:18 -0500
+
+xmltex (1.9-4) unstable; urgency=medium
+
+  * Rename 20xmltex into 20xmltex.cnf for the new tetex.
+  * Handle conffile in the recommended way.
+  * Closes: #172859, #173338.
+
+ -- Fabien Ninoles <fabien@debian.org>  Mon, 16 Dec 2002 15:00:53 -0500
+
+xmltex (1.9-3) unstable; urgency=low
+
+  * Undo last change. It's really a passivetex bug.
+  * Remove conffile handling.   Dpkg already handle such things.
+
+ -- Fabien Ninoles <fabien@debian.org>  Fri,  1 Nov 2002 14:04:30 -0500
+
+xmltex (1.9-2) unstable; urgency=low
+
+  * Import passivetex setting here to be considered in the fmt creation.
+    Thanks to Ralph Giles to point this out. (closes: 166922)
+
+ -- Fabien Ninoles <fabien@debian.org>  Tue, 29 Oct 2002 08:49:10 -0500
+
+xmltex (1.9-1) unstable; urgency=low
+
+  * New maintainer.
+  * Add manual.html to /usr/share/doc/xmltex. (closes: #141150)
+  * Add anti-noclobbering redirection in postinst. (closes: #144948)
+  * New version and new passivetex package. (closes: #151676)
+  * Add man page (closes: #154588)
+
+ -- Fabien Ninoles <fabien@debian.org>  Thu, 22 Aug 2002 10:41:52 -0400
+
+xmltex (1.9-0.1) unstable; urgency=low
+
+  * New upstream version.
+
+ -- Fabien Ninoles <fabien@tzone.org>  Wed, 21 Aug 2002 14:48:31 -0400
+
+xmltex (0.14-3) unstable; urgency=low
+
+  * fix conffile handling
+  * Closes: #143251
+
+ -- Steve Dunham <dunham@debian.org>  Wed, 17 Apr 2002 09:37:50 -0700
+
+xmltex (0.14-2) unstable; urgency=low
+
+  * Properly mark conffiles
+  * Fix typo in build-depends
+  * Add search paths to texmf.cnf
+  * Change doc-base file to point to /usr/share/doc
+  * Closes: #132090, #92562, #127108
+
+ -- Steve Dunham <dunham@debian.org>  Sat, 23 Feb 2002 13:39:02 -0800
+
+xmltex (0.14-1.1) unstable; urgency=low
+
+  * Non maintainer upload
+  * texlinks fixed in tetex-bin 1.0.6-4, Closes: #65781
+  * Fix order of calling texhash and fmtutil, with the above fix,
+    Closes: #65921
+  * Depends: on tetex-extra to generate the pdflatex.fmt files
+  * changed shell in maintainer scripts to /bin/bash because they
+    depend on non-POSIX features of bash
+  * Added Build-Depends: and bumped Standards-Version: to 3.1
+  * Changed Section: to tex
+  
+ -- Ingo Saitz <ingo@debian.org>  Sat, 17 Mar 2001 19:38:36 +0000
+
+xmltex (0.14-1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Steve Dunham <dunham@debian.org>  Thu, 27 Apr 2000 09:21:57 -0700
+
+

Added: packages/xmltex/trunk/debian/conffiles
===================================================================
--- packages/xmltex/trunk/debian/conffiles	2004-06-25 17:34:08 UTC (rev 181)
+++ packages/xmltex/trunk/debian/conffiles	2004-06-25 17:34:55 UTC (rev 182)
@@ -0,0 +1,3 @@
+/etc/texmf/xmltex/xmltex.cfg
+/etc/texmf/xmltex/pdfxmltex.ini
+/etc/texmf/xmltex/xmltex.ini

Added: packages/xmltex/trunk/debian/control
===================================================================
--- packages/xmltex/trunk/debian/control	2004-06-25 17:34:08 UTC (rev 181)
+++ packages/xmltex/trunk/debian/control	2004-06-25 17:34:55 UTC (rev 182)
@@ -0,0 +1,15 @@
+Source: xmltex
+Section: tex
+Priority: optional
+Maintainer: Graham Wilson <graham@debian.org>
+Build-Depends-Indep: debhelper, tetex-base, tetex-bin, tetex-extra
+Standards-Version: 3.5.8
+
+Package: xmltex
+Architecture: all
+Depends: tetex-base, tetex-bin (>= 1.0.7+20011202-5.1), tetex-extra
+Conflicts: passivetex (<< 1.21-2)
+Recommends: passivetex
+Description: TeX package for processing XML files
+ XMLTeX is a non-validating, namespace-aware XML parser written 
+ in TeX.  It allows TeX to directly process XML files.

Added: packages/xmltex/trunk/debian/copyright
===================================================================
--- packages/xmltex/trunk/debian/copyright	2004-06-25 17:34:08 UTC (rev 181)
+++ packages/xmltex/trunk/debian/copyright	2004-06-25 17:34:55 UTC (rev 182)
@@ -0,0 +1,329 @@
+This package was debianized by Steve Dunham <dunham@debian.org>, was later
+maintained by Fabien Ninoles <fabien@debian.org>, and is now maintained by
+Graham Wilson <graham@debian.org>.
+
+It was downloaded from: ftp://www.ctan.org/tex-archive/macros/xmltex.tar.gz
+
+xmltex was originally written by David Carlisle <davidc@nag.co.uk>, and has
+been re-released with improvements by Sebastian Rahtz
+<sebastian.rahtz@oucs.ox.ac.uk>.
+
+Copyright 2000 David Carlisle
+
+This collection of files is distributed under the LaTeX Project Public
+License a (LPPL) as found at http://www.latex-project.org/lppl.txt
+Either version 1.0, or at your option, any later version.
+
+The LaTeX Project Public License
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
+
+LPPL Version 1.1  1999-07-10
+
+Copyright 1999 LaTeX3 Project
+    Everyone is allowed to distribute verbatim copies of this
+    license document, but modification of it is not allowed.
+
+
+PREAMBLE
+========
+
+The LaTeX Project Public License (LPPL) is the license under which the
+base LaTeX distribution is distributed.
+
+You may use this license for any program that you have written and wish
+to distribute.  This license may be particularly suitable if your
+program is TeX-related (such as a LaTeX package), but you may use it
+even if your program is unrelated to TeX.  The section `WHETHER AND HOW
+TO DISTRIBUTE PROGRAMS UNDER THIS LICENSE', below, gives instructions,
+examples, and recommendations for authors who are considering
+distributing their programs under this license.
+
+In this license document, `The Program' refers to any program
+distributed under this license.
+
+This license gives conditions under which The Program may be distributed
+and conditions under which modified versions of The Program may be
+distributed.  Individual files of The Program may bear supplementary
+and/or superseding conditions on modification of themselves and on the
+distribution of modified versions of themselves, but *no* file of The
+Program may bear supplementary or superseding conditions on the
+distribution of an unmodified copy of the file.  A distributor wishing
+to distribute a complete, unmodified copy of The Program therefore
+needs to check the conditions only in this license and nowhere else.
+
+Activities other than distribution and/or modification of The Program
+are not covered by this license; they are outside its scope.  In
+particular, the act of running The Program is not restricted.
+
+We, the LaTeX3 Project, believe that the conditions below give you
+the freedom to make and distribute modified versions of The Program
+that conform with whatever technical specifications you wish while
+maintaining the availability, integrity, and reliability of
+The Program.  If you do not see how to achieve your goal while 
+meeting these conditions, then read the document `cfgguide.tex'
+in the base LaTeX distribution for suggestions.
+
+
+CONDITIONS ON DISTRIBUTION AND MODIFICATION
+===========================================
+
+You may distribute a complete, unmodified copy of The Program.
+Distribution of only part of The Program is not allowed.
+
+You may not modify in any way a file of The Program that bears a legal
+notice forbidding modification of that file.
+
+You may distribute a modified file of The Program if, and only if, the
+following eight conditions are met:
+
+  1. You must meet any additional conditions borne by the file on the
+     distribution of a modified version of the file as described below
+     in the subsection `Additional Conditions on Individual Files of
+     The Program'.
+ 
+  2. If the file is a LaTeX software file, then you must meet any
+     applicable additional conditions on the distribution of a modified
+     version of the file that are described below in the subsection
+     `Additional Conditions on LaTeX Software Files'.
+ 
+  3. You must not distribute the modified file with the filename of the
+     original file.
+ 
+  4. In the modified file, you must acknowledge the authorship and
+     name of the original file, and the name (if any) of the program
+     which contains it.
+ 
+  5. You must change any identification string in the file to indicate
+     clearly that the modified file is not part of The Program.
+ 
+  6. You must change any addresses in the modified file for the
+     reporting of errors in the file or in The Program generally to
+     ensure that reports for files no longer maintained by the original
+     maintainers will be directed to the maintainers of the modified
+     files.
+ 
+  7. You must distribute the modified file under a license that forbids
+     distribution both of the modified file and of any files derived
+     from the modified file with the filename of the original file.
+ 
+  8. You must do either (A) or (B):
+
+       (A) distribute a copy of The Program (that is, a complete,
+           unmodified copy of The Program) together with the modified
+           file; if your distribution of the modified file is made by
+           offering access to copy the modified file from a designated
+           place, then offering equivalent access to copy The Program
+           from the same place meets this condition, even though third
+           parties are not compelled to copy The Program along with the
+           modified file;
+
+       (B) provide to those who receive the modified file information
+           that is sufficient for them to obtain a copy of The Program;
+           for example, you may provide a Uniform Resource Locator (URL)
+           for a site that you expect will provide them with a copy of 
+           The Program free of charge (either the version from which
+           your modification is derived, or perhaps a later version).
+
+Note that in the above, `distribution' of a file means making the
+file available to others by any means.  This includes, for instance,
+installing the file on any machine in such a way that the file is
+accessible by users other than yourself.  `Modification' of a file
+means any procedure that produces a derivative file under any
+applicable law -- that is, a file containing the original file or
+a significant portion of it, either verbatim or with modifications
+and/or translated into another language.
+
+Changing the name of a file is considered to be a modification of
+the file.
+
+The distribution conditions in this license do not have to be
+applied to files that have been modified in accordance with the
+above conditions.  Note, however, that Condition 7. does apply to
+any such modified file.
+
+The conditions above are not intended to prohibit, and hence do not
+apply to, the updating, by any method, of a file so that it becomes
+identical to the latest version of that file of The Program.
+
+ 
+
+A Recommendation on Modification Without Distribution
+-----------------------------------------------------
+
+It is wise never to modify a file of The Program, even for your own
+personal use, without also meeting the above eight conditions for
+distributing the modified file.  While you might intend that such
+modified files will never be distributed, often this will happen by
+accident -- you may forget that you have modified the file; or it may
+not occur to you when allowing others to access the modified file
+that you are thus distributing it and violating the conditions of
+this license.  It is usually in your best interest to keep your copy
+of The Program identical with the public one.  Many programs provide
+ways to control the behavior of that program without altering its
+licensed files.
+
+
+Additional Conditions on Individual Files of The Program
+--------------------------------------------------------
+
+An individual file of The Program may bear additional conditions that
+supplement and/or supersede the conditions in this license if, and only
+if, such additional conditions exclusively concern modification of the
+file or distribution of a modified version of the file.  The conditions
+on individual files of The Program therefore may differ only with
+respect to the kind and extent of modification of those files that
+is allowed, and with respect to the distribution of modified versions
+of those files.
+
+
+Additional Conditions on LaTeX Software Files
+---------------------------------------------
+
+If a file of The Program is intended to be used with LaTeX (that is,
+if it is a LaTeX software file), then the following additional
+conditions, which supplement and/or supersede the conditions
+above, apply to the file according to its filename extension:
+
+  - You may not modify any file with filename extension `.ins' since
+    these are installation files containing the legal notices that are
+    placed in the files they generate.
+ 
+  - You may distribute modified versions of files with filename
+    extension `.fd' (LaTeX font definition files) under the standard
+    conditions of the LPPL as described above.  You may also distribute
+    such modified LaTeX font definition files with their original names
+    provided that:
+    (1) the only changes to the original files either enable use of
+        available fonts or prevent attempts to access unavailable fonts;
+    (2) you also distribute the original, unmodified files (TeX input
+        paths can be used to control which set of LaTeX font definition
+        files is actually used by TeX).
+
+  - You may distribute modified versions of files with filename
+    extension `.cfg' (configuration files) with their original names.
+    The Program may (and usually will) specify the range of commands
+    that are allowed in a particular configuration file.
+ 
+Because of portability and exchangeability issues in LaTeX software,
+The LaTeX3 Project deprecates the distribution of modified versions of
+components of LaTeX or of generally available contributed code for them,
+but such distribution can meet the conditions of this license.
+
+
+NO WARRANTY
+===========
+
+There is no warranty for The Program.  Except when otherwise stated in
+writing, The Copyright Holder provides The Program `as is', without
+warranty of any kind, either expressed or implied, including, but not
+limited to, the implied warranties of merchantability and fitness for
+a particular purpose.  The entire risk as to the quality and performance
+of The Program is with you.  Should The Program prove defective, you
+assume the cost of all necessary servicing, repair, or correction.
+
+In no event unless agreed to in writing will The Copyright Holder, or
+any author named in the files of The Program, or any other party who may
+distribute and/or modify The Program as permitted below, be liable to
+you for damages, including any general, special, incidental or
+consequential damages arising out of any use of The Program or out of
+inability to use The Program (including, but not limited to, loss of
+data, data being rendered inaccurate, or losses sustained by anyone as
+a result of any failure of The Program to operate with any other
+programs), even if The Copyright Holder or said author or said other
+party has been advised of the possibility of such damages.
+
+
+WHETHER AND HOW TO DISTRIBUTE PROGRAMS UNDER THIS LICENSE
+=========================================================
+
+This section contains important instructions, examples, and
+recommendations for authors who are considering distributing their
+programs under this license.  These authors are addressed as `you' in
+this section.
+
+
+Choosing This License or Another License
+----------------------------------------
+
+If for any part of your program you want or need to use *distribution*
+conditions that differ from those in this license, then do not refer to
+this license anywhere in your program but instead distribute your
+program under a different license.  You may use the text of this license
+as a model for your own license, but your license should not refer to
+the LPPL or otherwise give the impression that your program is
+distributed under the LPPL.
+
+The document `modguide.tex' in the base LaTeX distribution explains
+the motivation behind the conditions of this license.  It explains,
+for example, why distributing LaTeX under the GNU General Public
+License (GPL) was considered inappropriate.  Even if your program is
+unrelated to LaTeX, the discussion in `modguide.tex' may still be
+relevant, and authors intending to distribute their programs under any
+license are encouraged to read it.
+
+
+How to Use This License
+-----------------------
+
+To use this license, place in each of the files of your program both
+an explicit copyright notice including your name and the year and also
+a statement that the distribution and/or modification of the file is
+constrained by the conditions in this license.
+
+Here is an example of such a notice and statement:
+
+  %% pig.dtx
+  %% Copyright 2001 M. Y. Name
+  %
+  % This program may be distributed and/or modified under the
+  % conditions of the LaTeX Project Public License, either version 1.1
+  % of this license or (at your option) any later version.
+  % The latest version of this license is in
+  %   http://www.latex-project.org/lppl.txt
+  % and version 1.1 or later is part of all distributions of LaTeX 
+  % version 1999/06/01 or later.
+  %
+  % This program consists of the files pig.dtx and pig.ins
+
+Given such a notice and statement in a file, the conditions given in
+this license document would apply, with `The Program' referring to the
+two files `pig.dtx' and `pig.ins', and `The Copyright Holder' referring
+to the person `M. Y. Name'.
+
+
+Important Recommendations
+-------------------------
+
+ Defining What Constitutes The Program
+
+   The LPPL requires that distributions of The Program contain all the
+   files of The Program.  It is therefore important that you provide a
+   way for the licensee to determine which files constitute The Program.
+   This could, for example, be achieved by explicitly listing all the
+   files of The Program near the copyright notice of each file or by
+   using a line like
+
+    % This program consists of all files listed in manifest.txt.
+
+   in that place.  In the absence of an unequivocal list it might be
+   impossible for the licensee to determine what is considered by you
+   to comprise The Program.
+
+ Noting Exceptional Files
+  
+   If The Program contains any files bearing additional conditions on
+   modification, or on distribution of modified versions, of those
+   files (other than those listed in `Additional Conditions on LaTeX
+   Software Files'), then it is recommended that The Program contain a
+   prominent file that defines the exceptional conditions, and either
+   lists the exceptional files or defines one or more categories of
+   exceptional files.
+
+   Files containing the text of a license (such as this file) are
+   often examples of files bearing more restrictive conditions on
+   modification.  LaTeX configuration files (with filename extension
+   `.cfg') are examples of files bearing less restrictive conditions
+   on the distribution of a modified version of the file.  The
+   additional conditions on LaTeX software given above are examples 
+   of declaring a category of files bearing exceptional additional
+   conditions.

Added: packages/xmltex/trunk/debian/dirs
===================================================================
--- packages/xmltex/trunk/debian/dirs	2004-06-25 17:34:08 UTC (rev 181)
+++ packages/xmltex/trunk/debian/dirs	2004-06-25 17:34:55 UTC (rev 182)
@@ -0,0 +1,7 @@
+/etc/texmf/fmt.d
+/etc/texmf/texmf.d
+/etc/texmf/xmltex
+/usr/share/doc/xmltex/examples
+/usr/share/texmf/tex/xmltex/base
+/usr/share/texmf/tex/xmltex/templates
+/usr/share/xmltex

Added: packages/xmltex/trunk/debian/doc-base.xmltex
===================================================================
--- packages/xmltex/trunk/debian/doc-base.xmltex	2004-06-25 17:34:08 UTC (rev 181)
+++ packages/xmltex/trunk/debian/doc-base.xmltex	2004-06-25 17:34:55 UTC (rev 182)
@@ -0,0 +1,17 @@
+Document: xmltex
+Title: XMLTeX Manual
+Author: David Carlisle <davidc@nag.co.uk>
+Abstract: This manual describes how to use xmltex
+Section: text
+
+Format: tei-xml
+Files: /usr/share/doc/xmltex/manual.xml.gz
+
+Format: postscript
+Files: /usr/share/doc/xmltex/manual.ps.gz
+
+Format: HTML
+Index: /usr/share/doc/xmltex/manual.html
+Files: /usr/share/doc/xmltex/manual.html
+
+  

Added: packages/xmltex/trunk/debian/docs
===================================================================
--- packages/xmltex/trunk/debian/docs	2004-06-25 17:34:08 UTC (rev 181)
+++ packages/xmltex/trunk/debian/docs	2004-06-25 17:34:55 UTC (rev 182)
@@ -0,0 +1,7 @@
+manual.dvi
+manual.xml
+manual.xsl
+manual.tex
+manual.ps
+manual.html
+readme.txt

Added: packages/xmltex/trunk/debian/manpages
===================================================================
--- packages/xmltex/trunk/debian/manpages	2004-06-25 17:34:08 UTC (rev 181)
+++ packages/xmltex/trunk/debian/manpages	2004-06-25 17:34:55 UTC (rev 182)
@@ -0,0 +1,2 @@
+xmltex.1
+pdfxmltex.1

Added: packages/xmltex/trunk/debian/postinst
===================================================================
--- packages/xmltex/trunk/debian/postinst	2004-06-25 17:34:08 UTC (rev 181)
+++ packages/xmltex/trunk/debian/postinst	2004-06-25 17:34:55 UTC (rev 182)
@@ -0,0 +1,180 @@
+#!/bin/bash
+# postinst script for xmltex
+#
+# pieces cribbed from xmltex postinst
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see /usr/doc/packaging-manual/
+#
+# quoting from the policy:
+#     Any necessary prompting should almost always be confined to the
+#     post-installation script, and should be protected with a conditional
+#     so that unnecessary prompting doesn't happen if a package's
+#     installation fails and the `postinst' is called with `abort-upgrade',
+#     `abort-remove' or `abort-deconfigure'.
+
+FMTDIR=/etc/texmf/fmt.d
+TEXMFDIR=/etc/texmf/texmf.d
+TMPLDIR=/usr/share/texmf/tex/xmltex/templates
+umask 022
+
+warn ( ) {
+   echo $* 1>&2
+}
+
+installconf () {
+    # mv on disable file or copy template
+    while [ $# -gt 0 ]; do
+        conffile=$1
+        shift
+        if [ -f $conffile ] ; then
+           :
+        elif [ -f $conffile.disable ]; then
+            mv $conffile.disable $conffile
+        else
+            cp $TMPLDIR/`basename $conffile` $conffile
+        fi
+    done
+}
+
+checkconf ( ) {
+    # Treat old conffiles
+    if [ -f $TEXMFDIR/20xmltex ] ; then
+        mv $TEXMFDIR/20xmltex $TEXMFDIR/20xmltex.cnf
+    fi
+
+    if [ -f /etc/texmf/xmltex.cfg ] ; then
+        mv -f /etc/texmf/xmltex.cfg /etc/texmf/xmltex/xmltex.cfg
+    fi
+
+    # copy template files
+    installconf $TEXMFDIR/20xmltex.cnf $FMTDIR/40xmltex.cnf
+    
+}
+
+checkfmt ( ) {
+    format=$1
+    baseformat=$(basename $1 .fmt)
+    if ! kpsewhich $format > /dev/null ; then
+        warn "WARNING: $format not found, attempting to reconstruct ..."
+        echo "running 'fmtutil --byfmt $baseformat'" >> $MYTMP
+        fmtutil --byfmt $baseformat >> $MYTMP
+        if kpsewhich $format > /dev/null ; then
+            warn "Success"
+        else
+            warn "*** ERROR: cannot create TeX memory dump $format"
+            warn "*** see $MYTMP for details"
+            exit 1
+        fi
+    fi
+}
+
+makexmltexfmt ( ) {
+    local goterror
+    goterror=false
+
+    if ! fmtutil --byfmt xmltex >> $MYTMP
+    then
+        warn "ERROR: xmltex fmtutil failed" 1>&2
+        goterror=true
+    fi
+    if ! fmtutil --byfmt pdfxmltex >> $MYTMP
+    then
+        warn "ERROR: pdfxmltex fmtutil failed" 1>&2
+        goterror=true
+    fi
+    if $goterror; then
+        return 1
+    else
+        return 0
+    fi
+}
+
+xmltexfmtcheck ( ) {
+    # check whether it actually worked, since the texconfig program
+    # doesn't exit non-zero
+
+    # file exists test
+    local goterror
+    goterror=false
+    if ! kpsewhich xmltex.fmt > /dev/null ; then
+        warn "ERROR: XMLTeX memory dump (xmltex.fmt) cannot be found"
+        goterror=true
+    fi
+    if ! kpsewhich pdfxmltex.fmt > /dev/null ; then
+        warn "ERROR: PDFXMLTeX memory dump (pdfxmltex.fmt) cannot be found"
+        goterror=true
+    fi
+
+    if $goterror; then
+        return -1
+    else
+        return 0
+    fi
+}
+
+
+
+case "$1" in
+    configure)
+        checkconf
+
+        update-fmtutil
+
+        update-texmf
+
+	texhash
+
+	MYTMP=$(mktemp /tmp/xmltex-postinst.XXXXXX)
+	: >| $MYTMP
+
+	echo -e "Checking for TeX format files  we depend on ... \c"
+	checkfmt latex.fmt
+	checkfmt pdflatex.fmt
+	echo "done."
+
+	echo "Creating xmltex format files..."
+	if makexmltexfmt && xmltexfmtcheck; then
+            echo "Done."
+        else
+	    echo "Trying fmtutil --all"
+	    fmtutil --all >>$MYTMP
+	    if xmltexfmtcheck; then
+		echo "   done."
+            else
+                echo "*** ERROR: can't make xmltex fmt files, bailing "
+                echo "*** see $MYTMP for details"
+                exit 1
+            fi
+        fi
+	texlinks
+	texhash
+	;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+
+    ;;
+
+    *)
+        echo "postinst called with unknown argument '$1'" >&2
+        exit 0
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

Added: packages/xmltex/trunk/debian/postrm
===================================================================
--- packages/xmltex/trunk/debian/postrm	2004-06-25 17:34:08 UTC (rev 181)
+++ packages/xmltex/trunk/debian/postrm	2004-06-25 17:34:55 UTC (rev 182)
@@ -0,0 +1,58 @@
+#!/bin/bash
+# postrm script for xmltex
+#
+# Some code cribbed from jadetex prerm
+#
+# see: dh_installdeb(1)
+
+set -e
+
+FMTDIR=/etc/texmf/fmt.d
+TEXMFDIR=/etc/texmf/texmf.d
+
+case "$1" in
+    remove)
+	# remove fmt files
+	XMLTEXFMT=$(kpsewhich xmltex.fmt) || true
+	PDFXMLTEXFMT=$(kpsewhich pdfxmltex.fmt) || true
+	rm -f $XMLTEXFMT $PDFXMLTEXFMT
+
+	# remove fmt file logs
+	LOGDIR=$(dirname $XMLTEXFMT) || true
+	rm -f $LOGDIR/xmltex.log $LOGDIR/pdfxmltex.log
+
+	# disable conf files
+	if [ -f ${FMTDIR}/40xmltex.cnf ]; then
+	    mv -f ${FMTDIR}/40xmltex.cnf ${FMTDIR}/40xmltex.cnf.disable
+	fi
+	update-fmtutil
+	if [ -f ${TEXMFDIR}/20xmltex.cnf ]; then
+            mv -f ${TEXMFDIR}/20xmltex.cnf ${TEXMFDIR}/20xmltex.cnf.disable
+	fi
+	update-texmf
+        ;;
+    purge)
+        rm -f ${TEXMFDIR}/20xmltex.cnf.disable
+        rm -f ${FMTDIR}/40xmltex.cnf.disable
+        rm -rf /etc/texmf/xmltex || true
+        ;;
+    upgrade)
+        if command -v texhash >/dev/null 2>&1; then  
+            texhash || true
+        fi
+	;;
+    failed-upgrade|deconfigure)
+        ;;
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+

Added: packages/xmltex/trunk/debian/rules
===================================================================
--- packages/xmltex/trunk/debian/rules	2004-06-25 17:34:08 UTC (rev 181)
+++ packages/xmltex/trunk/debian/rules	2004-06-25 17:34:55 UTC (rev 182)
@@ -0,0 +1,76 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+#export DH_VERBOSE=1
+export DH_COMPAT=1
+package = xmltex
+
+build: build-stamp
+build-stamp:
+	dh_testdir
+
+	for i in 1 2 3;do latex -interaction=batchmode manual;done
+	dvips -o manual.ps manual
+
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp $(addprefix manual.,toc log aux dvi ps)
+	dh_clean
+
+test:
+	dh_testdir
+	sh -n debian/postrm
+	sh -n debian/postinst
+
+prefix = debian/tmp
+sharedir = /usr/share/texmf/tex/$(package)
+confdir = /etc/texmf/$(package)
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+# Add here commands to install the package into debian/tmp.
+	install -m 0644 *.xmt xmltex.tex \
+		$(prefix)$(sharedir)/base
+	install -m 0644 *.ini xmltex.cfg $(prefix)$(confdir)
+	install -m 0644 debian/*.cnf $(prefix)$(sharedir)/templates
+# Create links for confdir to sharedir/base, one link per file so
+
+	ln -sf $(confdir) $(prefix)$(sharedir)/config
+
+# some of these files conflict with base files
+	install -m 0644 *test* debian/tmp/usr/share/doc/xmltex/examples
+	install -m 0644 *xml debian/tmp/usr/share/doc/xmltex/examples
+	rm -f debian/tmp/usr/share/doc/xmltex/examples/manual.xml
+
+
+binary-indep: build test install
+
+binary-arch: build test install
+#	dh_testversion
+	dh_testdir
+	dh_testroot
+#	dh_installdebconf	
+	dh_installdocs
+	dh_installexamples
+	dh_installmenu
+	dh_installman
+#	dh_undocumented
+	dh_installchangelogs 
+	dh_link
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install


Property changes on: packages/xmltex/trunk/debian/rules
___________________________________________________________________
Name: svn:executable
   + *

Added: packages/xmltex/trunk/pdfxmltex.1
===================================================================
--- packages/xmltex/trunk/pdfxmltex.1	2004-06-25 17:34:08 UTC (rev 181)
+++ packages/xmltex/trunk/pdfxmltex.1	2004-06-25 17:34:55 UTC (rev 182)
@@ -0,0 +1 @@
+.so man1/xmltex.1

Added: packages/xmltex/trunk/xmltex.1
===================================================================
--- packages/xmltex/trunk/xmltex.1	2004-06-25 17:34:08 UTC (rev 181)
+++ packages/xmltex/trunk/xmltex.1	2004-06-25 17:34:55 UTC (rev 182)
@@ -0,0 +1,43 @@
+.TH XMLTEX 1
+.SH NAME
+xmltex, pdfxmltex \- xml non-validating parser in TeX
+.SH SYNOPSIS
+.B xmltex
+.I "xml file"
+.br
+.B pdfxmltex
+.I "xml file"
+.SH DESCRIPTION
+This manual page documents briefly the
+.BR xmltex ,
+and
+.B pdfxmltex
+commands.  This manual page was written for the Debian GNU/Linux
+distribution because the original program does not have a manual page.
+Instead, it has documentation in HTML and PS format in the
+/usr/share/doc/xmltex directory.
+.PP
+.B xmltex
+and
+.B pdfxmltex
+is a TeX XML parser able to transform xml document into .dvi files.
+xmltex know nothing about your XML files.  It needs to load some
+special macros files, usually with the .xmt extensions.  A
+configuration file, either named xmltex.cfg or \\jobname.cfg are
+parsed.  An especially useful configuration command is
+.I \\xmltraceoff
+which disable xml elements tracing.
+.PP
+.B xmltex
+already about many xml schema, such as TEI, TEI.2, MathML, SEC, HTML
+and XSL-FO, the support for the latest being provide by the passivetex
+package.
+.SH "SEE ALSO"
+The programs are documented fully in their own manual in the
+/usr/share/doc/xmltex directory.
+.br
+.BR latex (1),
+.BR tex (1)
+.SH AUTHOR
+This manual page was written by Fabien Niņoles <fabien@debian.org>,
+for the Debian GNU/Linux system (but may be used by others).