--- jadetex-3.13.orig/doc/Makefile +++ jadetex-3.13/doc/Makefile @@ -2,7 +2,7 @@ JADE=openjade JADETEX=jadetex PDFJADETEX=pdfjadetex -XMLDECL=/usr/share/sgml/xml.dcl +XMLDECL=/usr/share/sgml/declaration/xml.dcl all: releasenotes.pdf releasenotes.html releasenotes.ps --- jadetex-3.13.orig/doc/releasenotes.xml +++ jadetex-3.13/doc/releasenotes.xml @@ -1,6 +1,6 @@ - + JadeTeX 3.12 --- jadetex-3.13.orig/jadetex.dtx +++ jadetex-3.13/jadetex.dtx @@ -58,7 +58,7 @@ \end{document} % % \fi -% \CheckSum{4434} +% \CheckSum{4435} % \StopEventually{} % % \section{Introduction} @@ -101,6 +101,7 @@ \def\JadeTeXMinorVersion{13} \def\JadeTeXDate{2003/04/27} \documentclass{minimal} +\RequirePackage[english]{babel} \RequirePackage{array}[1995/01/01] \RequirePackage{longtable}[1995/01/01] \RequirePackage{color}[1997/09/09] --- jadetex-3.13.orig/unicode.sty +++ jadetex-3.13/unicode.sty @@ -24,7 +24,8 @@ \IfFileExists{t3enc.def} { \IfFileExists{t2aenc.def} - {\RequirePackage[T3,T2A,T1]{fontenc}} + {\RequirePackage[T3,T2A,T1]{fontenc} + \DeclareFontSubstitution{T2A}{cmr}{m}{n}} {\RequirePackage[T3,T1]{fontenc}} \RequirePackage[noenc,safe]{tipa} \RequirePackage{tone} --- jadetex-3.13.orig/debian/README.Debian +++ jadetex-3.13/debian/README.Debian @@ -0,0 +1,56 @@ +JadeTeX for Debian +------------------ + +Sometimes problems occur with the installation of teTeX, and these +problems only manifest during the installation of the jadetex package. +The JadeTeX package tries to be as flexible as possible in dealing +with these problems. However, during certain upgrade paths, cases +have been reported where the only way to fix the problem was to +actually purge the tetex and jadetex packages, then reinstall them (a +clean slate). + +To use jadetex, you just do: + + > jade -t tex + +Which produces `basename `.tex, a.k.a., , and then: + + > jadetex + +An excellent paper on Jadetex can be found at +. + +You can create the memory dump files jadetex.fmt and pdfjadetex.fmt by +running `fmtutil --cnffile /etc/texmf/jadetex/fmtutil.cnf --all' as +root. This is done automatically during the installation process of +this package. + +If running jadetex gives you 'capacity exceeded' messages, please +check out /etc/texmf/texmf.cnf. The jadetex maintainer has worked +with the teTeX maintainer to ensure that the settings that teTeX ships +with generally work with JadeTeX. Yet you may have opted to *not* +install the newer versions of texmf.cnf with the expanded, so look at +that file and compare it with /etc/texmf/texmf.cnf.dpkg-dist . You +should have lines such as these near the bottom: + +% Settings for Debian jadetex + hash_extra.jadetex = 15000 + hash_extra.pdfjadetex = 15000 + ... + +If you *do* have the settings for the distributed texmf.cnf files +already in place, but are still receiving capacity exceeded messages, +the best I can tell you is to note from the error message which +setting is too small, and increase it. I'd be curious to be notified +if you do have to do this, since other users may also benefit from the +expanded sizes. + +In some cases, it is possible for pdfjadetex to error out even with +the expanded settings. You might need to fix that with special +'jadetex.cfg' settings -- see README.jadetex.cfg . + +-- +Adam Di Carlo +Marcus Brinkmann , Fri, 10 Jul 1998 04:03:33 +0200 +Christian Leutloff , Mon, 23 Feb 1998 + --- jadetex-3.13.orig/debian/changelog +++ jadetex-3.13/debian/changelog @@ -0,0 +1,593 @@ +jadetex (3.13-1.0.jp.2) unstable; urgency=low + + * Rewrite jadetex-ptex.postinst. + + -- OHURA Makoto Sat, 13 Sep 2003 22:42:28 +0900 + +jadetex (3.13-1.0.jp.1) unstable; urgency=low + + * Add support for Japanese pTeX. + + -- OHURA Makoto Tue, 9 Sep 2003 01:09:39 +0900 + +jadetex (3.13-1) unstable; urgency=medium + + * new upstream version + * ship the HTML version of the release notes, not PS/XML versions; we + have to build this at package build time, which increases build + depends + * policy compliance checked against 3.5.10 + * lower openjade/jade depends to recommends; closes: #190764 + * postinst: oops, clean up tempfile (bug introduced in last version) + * postinst: if jadetex.ini or pdfjadetex.ini, both conffiles, are + missing, we won't be able to build the memory dumps; sense this and + don't bomb out in this case; closes: #197034 + + -- Adam Di Carlo Mon, 16 Jun 2003 01:13:17 -0400 + +jadetex (3.12-5) unstable; urgency=medium + + * postinst: + - eliminate "running 'fmtutil --all' to rebuild existing TeX", it + should never happen and it's just slowing down the failure case + - cosmetic changes + - when producing our own memory dumps, use 'fmtutil --cnffile to our + specific file in /etc/texmf/fmt.d, since user may have the debconf + question tetex-bin/fmtutil turned off + closes: #183285, #196151, #196027 + + NB: last two bugs filed against tetex-bin; 'grr' to the tetex + maintainers for making this change without giving me any heads up + + -- Adam Di Carlo Thu, 5 Jun 2003 01:19:34 -0400 + +jadetex (3.12-4) unstable; urgency=low + + * improve package synopsis and description + * really require latest tetex-bin and tetex-extra from unstable + * jade dependency updated: openjade1.3 preferred, or openjade, or jade + * oops, /etc/texmf/texmf.d/96JadeTeX is supposed to be + /etc/texmf/texmf.d/96JadeTeX.cnf; remove /etc/texmf/texmf.d/96JadeTeX + in postinst + * postrm: on purge, remove /etc/texmf/texmf.d/*JadeTeX* and rerun + update-texmf if we can + + -- Adam Di Carlo Mon, 24 Feb 2003 19:35:42 -0500 + +jadetex (3.12-3) unstable; urgency=low + + * policy checked against 3.5.8 (no changes) + * depend on latest tetex-* packages from unstable; closes: #147337 + * prerm, postinst: use mktexlsr, not texhash + * prerm: replace 'command -v' with 'which' and now this script is not + bash-only + * supply /etc/texmf/texmf.d/96JadeTeX, replacing stuff which used to be + in 15Plain, 45TeXinputs, and 95NonPath; note this a conffile, not + enabled/disabled by prerm/postinst, since having it around after + removal of the package doesn't seem to hurt anything; use update-texmf + apparatus; closes: #162450 + + -- Adam Di Carlo Mon, 24 Feb 2003 15:08:42 -0500 + +jadetex (3.12-2) unstable; urgency=low + + * control: require tetex-bin >= 1.0.7+20011202-5.1 for new machinery to + let our memory dumps stay up-to-date; closes: #140231 + * use new update-fmtutil system: we install fmtutil.cnf to + /etc/texmf/fmt.d/40jadetex.cnf during installation (it's a + configuration file, not a conffile), disable that on package removal, + re-enable on install if possible preserving user configuration, purge + on purge + * policy checked against 3.5.6 + * problem could only be user error; closes: #114193 + + -- Adam Di Carlo Sat, 30 Mar 2002 16:58:31 -0500 + +jadetex (3.12-1) unstable; urgency=low + + * new upstream version + * postinst: remove some cruft + * jadetex.dtx had \CheckSum{4407} which I changed to \CheckSum{4434}, + seems like a problem with how upstream shipped... + * rules: contents of doc dir changed, accommodate + + -- Adam Di Carlo Sun, 10 Mar 2002 15:41:48 -0500 + +jadetex (3.11-2) unstable; urgency=low + + * prerm: bit more robust in case of missing conffiles + * postinst: fail early if we don't have /etc/texmf/jadetex/fmtutil.cnf + + -- Adam Di Carlo Fri, 2 Nov 2001 17:46:23 -0500 + +jadetex (3.11-1) unstable; urgency=low + + * new upstream version + + -- Adam Di Carlo Mon, 30 Jul 2001 00:47:47 -0400 + +jadetex (3.10-1) unstable; urgency=low + + * new upstream version + * debian/{copyright,control}: URLs change, now at SourceForge + + -- Adam Di Carlo Sun, 15 Jul 2001 21:30:06 -0400 + +jadetex (3.7-2) unstable; urgency=low + + * version 3.7 fixed some bugs + closes: #96641, #102598 + * use prerm rather than postrm when possible; we were also leaving the + TeX memory dumps around after removal, which is now fixed + closes: #92656 + * debian/control: update standards to 3.5.5 (no changes needed); + docbook-stylesheets now called docbook-dsssl + * README.jadetex.cfg: fix the Verso/Recto chapter settings + closes: #100601 + * README.Debian: remove some reduncdancy with README.jadetex.cfg + + -- Adam Di Carlo Tue, 10 Jul 2001 20:40:58 -0400 + +jadetex (3.7-1) unstable; urgency=low + + * new upstream version + * README.jadetex.cfg: add a note about PDF Outlines + + -- Adam Di Carlo Tue, 10 Jul 2001 20:04:39 -0400 + +jadetex (3.5-2) unstable; urgency=low + + * upgrade tetex-bin in build-depends with tetex-extra, closes: #90401 + * README.jadetex.cfg: hint at pdfpagemode=UseOutlines -- someone explain + this to me + * copyright: remove obsolete download location + + -- Adam Di Carlo Sat, 24 Mar 2001 16:37:47 -0500 + +jadetex (3.5-1) unstable; urgency=low + + * new upstream version + * debian/postinst: fix a bug in a warning message, closes: #86592 + * remove obsolete README.ver_2.1, add README.jadetex.cfg, talking about + some common jadetex.cfg (per directory settings) + + -- Adam Di Carlo Tue, 6 Mar 2001 19:15:22 -0500 + +jadetex (3.3a-1) unstable; urgency=low + + * new upstream revision to unicode.sty; any reference to non-free font + for a while, anyhow, has been wrapped inside a + \@ifpackageloaded{lucidabr}, so if that package (requesting the + non-free font hlcm) isn't loaded, an alternative is used + (closes: Bug#39711) + + -- Adam Di Carlo Sat, 17 Feb 2001 15:56:16 -0500 + +jadetex (3.3-1) unstable; urgency=low + + * new upstream version, fixes the tdot entity problem + (closes: Bug#69783) + * debian/control: standards version 3.5.0 (no changes) + * install the file ut1omlgc.fd as well + (I am confused on what files should be shipped and which one needn't + bother with) + + -- Adam Di Carlo Wed, 7 Feb 2001 00:41:55 -0500 + +jadetex (3.2-2) unstable; urgency=low + + * re-enabled language.dat handling in upstream source; i18n stuff should + work, since we don't hardcode languages or even use Babel anymore + (closes: Bug#43759) + * jadetex uses colorlinks now upstream (closes: Bug#60240) + * debian/copyright: refresh + + -- Adam Di Carlo Sat, 3 Feb 2001 19:22:56 -0500 + +jadetex (3.2-1) unstable; urgency=medium + + * new upstream version, fixes or already fixed: + - warning for undefined labels (closes: Bug#42839) + * debian/control: Policy upgraded to 3.2.1, no changes needed; add + conflicts on cslatex (closes: Bug#67549); depends on either jade + or openjade; conflict on csplain in the name of paranoia + * disable language.dat processing temporarily, since our language.dat + file has tabs in it, which aren't handled upstream + * debian/rules: make realclean from upstream + * debian/postinst: remove hackaround for bug 67549 + + -- Adam Di Carlo Thu, 25 Jan 2001 21:41:06 -0500 + +jadetex (2.20-3) unstable; urgency=low + + * debian/postrm: add #DEBHELPER# token + * debian/copyright: update copyright date for my stuff + + -- Adam Di Carlo Thu, 18 Jan 2001 01:58:57 -0500 + +jadetex (2.20-2) unstable; urgency=low + + * debian/control: update tetex-extra dependancy version to woody or so + (closes: Bug#78114) + * debian/copyright: update upstream email addr + * add norsk support -- thanks Tore Morkemo (closes: Bug#75146) + * debian/fmtutil.cnf: fix invokation in the comments, thanks to Alan + W. Irwin + + -- Adam Di Carlo Mon, 15 Jan 2001 20:11:56 -0500 + +jadetex (2.20-1) unstable; urgency=low + + * new upstream version + * debian/copyright: update + * debian/README: talk about pdfjadetex only capacity errors and the + '\LabelElementsfalse' hack + * debian/postrm: remove /etc/texmf/jadetex on purge + (closes: Bug#69551) + * debian/postinst: if we have to resort to 'fmtutil -all', redirect that + output to the log file at least; add a condition to check for failure + due to tetex-extra Bug#67549 so I don't get swamped with bug reports; + use stderr rather than stdout for errors and warnings; postinst is + still too chatty however, maybe at some point I'll debconf it + * debian/rules: clean is a bit cleaner + + -- Adam Di Carlo Sat, 14 Oct 2000 22:39:20 -0400 + +jadetex (2.18-2) unstable; urgency=low + + * debian/postinst: fmtutil seems to return error codes now, allow that + to fall through; this allows for better error reporting, but doesn't + actually fix the install problems people are having + + -- Adam Di Carlo Sat, 13 May 2000 02:20:37 -0400 + +jadetex (2.18-1) unstable; urgency=low + + * new upstream version + * debian/rules: install new documentation and tests; ship documentation + as PDF rather than dvi/ps + + -- Adam Di Carlo Sat, 6 May 2000 02:32:37 -0400 + +jadetex (2.13-1) unstable; urgency=low + + * new upstream version + * merge changes from potato branch + + -- Adam Di Carlo Tue, 28 Mar 2000 04:18:12 -0500 + +jadetex (2.9.pre.2.11-1) unstable; urgency=low + + * new upstream version + * manpages now included upstream + * debian/rules: adjust for upstream + + -- Adam Di Carlo Tue, 11 Jan 2000 23:36:37 -0500 + +jadetex (2.7-2) frozen unstable; urgency=low + + * debian/control,rules,copyright: Standards Version 3.1.1 + * debian/postinst: if we fail at creating (pdf)*jadetex.fmt, then try + 'fmtutil --all' and try again (closes: Bug#46806, Bug#49152, + Bug#50850, Bug#54405, Bug#57200) + + -- Adam Di Carlo Tue, 8 Feb 2000 19:02:31 -0500 + +jadetex (2.7-1) unstable; urgency=low + + * new upstream version + * debian/control: Standards-Version: 3.0.1 (changed man path, left doc + path); update teTeX dependancies (closes: Bug#39416, Bug#39754) + * no response from user, suspect bug is close (closes: Bug#39700) + + -- Adam Di Carlo Sat, 28 Aug 1999 06:40:03 -0400 + +jadetex (2.6-5) unstable; urgency=low + + * README.Debian: update (closes Bug#39248) + + -- Adam Di Carlo Wed, 7 Jul 1999 02:53:06 -0400 + +jadetex (2.6-4) unstable; urgency=low + + * debian/control: bump up tetex dependancies again, removed conflict and + suggest (!) on tetex-nonfree (closes Bug#38399) + * README.capacity_exceeded: no longer needed, new teTeX folds in the + needed alterations + + -- Adam Di Carlo Sun, 6 Jun 1999 01:29:53 -0400 + +jadetex (2.6-3) unstable; urgency=low + + * debian/rules: stop including our own cooked babel, which was just a + workaround for problems with older tetex; bring up to "Di Carlo" + standards + * debian/control: bump up tetex-dependancies to 0.9.990510-2, conflict + with tetex-nonfree >= 0.9.990510 temporarily, since we don't seem to + get along with the new french.sty, and I can't distributed the cooked + version since that would break licensing (closes Bug#38302, Bug#38395, + Bug#38399) + + -- Adam Di Carlo Thu, 27 May 1999 18:43:21 -0400 + +jadetex (2.6-2) unstable; urgency=low + + * postinst: attempt to cope with missing latex.fmt, pdftex.fmt or + pdflatex.fmt, in an attempt to close Bug#37414 and Bug#37727 + * debian/rules: clean is cleaner + + -- Adam Di Carlo Sat, 22 May 1999 04:35:44 -0400 + +jadetex (2.6-1) unstable; urgency=low + + * new upstream version, should fix the babel conflict which was causing + pdfjadetex to die; we still have to ship the local babel from the + cooked subdir, however, until teTeX is updated (closes Bug#36614) + * debian/postinst: when jadetex.fmt is not generated, ask the user to + submit the contents of the fmtutil run with the output; don't hardcode + TeX fmt dir, use kpsewhich, but the script must be bash for that; + quiet lintian warning about mktemp + * debian/postrm: use same techniques from postinst + * debian/rules: minor debhelper tweaks, install upstream ChangeLog, + install charlist.dtd into /usr/doc/jadetex + * debian/control: update standards to 2.5.1; update TeX dependancies + * debian/jadetex.conffiles: removed, obsolete (generated by debian/rules) + + -- Adam Di Carlo Fri, 14 May 1999 10:29:10 -0400 + +jadetex (2.5-3) unstable; urgency=low + + * README.capacity_exceeded: up the stack size to 6000, from + J.H.M. Dassen (closes Bug#36615), raise a few other parameters that + have bit me recently + * jadetex.dtx: workaround bug, 'Incomplete \ifnum; all text was ignored + after line 1410' + * debian/rules: ship older babel from the 'cooked' subdir, fixing a + nasty interaction with newer tetexen (closes Bug#36614, Bug#36268) + + -- Adam Di Carlo Tue, 27 Apr 1999 23:44:07 -0400 + +jadetex (2.5-2) unstable; urgency=low + + * README.capacity_exceeded and README.Debian updated + + -- Adam Di Carlo Fri, 23 Apr 1999 02:34:06 -0400 + +jadetex (2.5-1) unstable; urgency=low + + * new upstream version + * ship unicode.sty (required) and unicode.xml (documentation) + * debian/rules: modularize, clean up, and abstract like I like it; move + over to /usr/share/texmf/tex/jadetex (closes Bug#35836); some files + renamed in debian/* to debhelper standards + * debian/control: updated standards to 2.5.0; update tetex dependancies + to Mar. 1999 version + * debian/postinst: clean up and clean out + * README.capacity_exceeded: updated + * jadetex-texconfig: removed + * debian/copyright: updated + + -- Adam Di Carlo Sun, 11 Apr 1999 19:38:15 -0400 + +jadetex (2.2-1) stable unstable; urgency=medium + + * new maintainer + * fix fmtutil configuration file, which totally broke package + installation (close important Bug#35300, Bug#35463, Bug#35385, + Bug##34986, Bug#33336, Bug#32853, Bug#32000) + + -- Adam Di Carlo Fri, 9 Apr 1999 02:35:03 -0400 + +jadetex (2.2-0.2) frozen unstable; urgency=low + + * non-maintainer release + * jadetex.dtx: 5 line patch from upstream maintainer to use multicol.sty + if it is available, but proceed even if not; this means jadetex's + dependancy on a non-free package can be lowered to 'suggests' (closes + important Bug#28224) + * jadetex.dtx: removed [implicit=false,bookmarks=false] from hyperref + package options, since pdflatex doesn't seem to like package options + at all for hyperref (closes Bug#29170, tetex-extra bug opened) + * fmtutil.cnf: new fmtutil conffile, installed to /etc/texmf/jadetex, + which enables us to simply run + 'fmtutil -cnfffile /etc/texmf/jadetex/fmtutil.cnf --all' + which speeds up installation considerably (closes Bug#27446, at least) + * jadetex-texconfig: no longer installed + * debian/control: do not install hyperref.sty, hypertex.def, or + hpdftex.def, since they are in a new tetex-extra (closes Bug#29168) + * debian/control: bump depends accordingly, mention PDF files in the + package description + * debian/rules: add a check that postinst/postrm are valid while building + + -- Adam Di Carlo Wed, 16 Dec 1998 16:48:55 -0500 + +jadetex (2.2-0.1) unstable; urgency=low + + * non-maintainer release + * new upstream version + * fix problem with source + * jadetex.dtx: remove T3 since it causes confusing errors w/o the proper + font being installed. If someone want's to package 'tipa' from CTAN, + then we could bring it back + * debian/control: now also depends on tetex-nonfree; this means this + package must be moved to contrib. I'll let the maintainer work around + this or file the bug against ftp.debian.org (closes Bug#27487) + + -- Adam P. Harris Wed, 7 Oct 1998 23:05:14 -0400 + +jadetex (2.1-0.1) unstable; urgency=low + + * non-maintainer release + * new upstream version (depends on jade >= 1.2); pdfjadetex is now + properly called pdfjadetex (not jadetexpdf) upstream + * bump tetex Depends up to newest version of tetex-* + * reintroduced 'cooked' directory since it is upstream from 'cooked', + install t3enc.def, hypertex.def, hpdftex.def, and hyperref.sty into + /etc/texmf/jadetex/, aka /usr/lib/texmf/tex/jadetex/config/, because + it is needed in the current tetex environment + * postinst: check that the jadetex.fmt and pdfjadetex.fmt files were + actually generated, since texconfig doesn't exit with non-zero status + on failure. Consider this a failure condition. It has been + determined that this is in fact a limitiation of the upstream + 'texconfig' system employed. The hacky patch I added here to the + postinst sould probably be removed for the freeze; for now it's + probably a good way to chase down problems (closes Bug#25592, Bug#25695) + * add a few bits of documentation off the net; talk about the TeX + capacity exceeded issue in /usr/doc/jadetex/README.capacity_exceeded + (addressing but not quite closing Bug#24307) + * debian/README: how to use jadetex, 3 second overview; refer to other + READMEs now shipped + * jadetextables.html: removed ^Ms from HTML + * debian/copyright: update ftp location + * debian/rules: add '-isp' to dpkg-gencontrol + * debian/rules: explicit dependancy on /bin/bash, since curly braces are + used + * debian/jadetexcofig: run tex -ini with hugelatex if possible to fix + TeX capacity exceeded. + * link man page for jadetex-texconfig.1 to texconfig.1 + + -- Adam P. Harris Sun, 4 Oct 1998 04:13:40 -0400 + +jadetex (1.05-0.1) unstable; urgency=low + + * non-maintainer release + * new upstream version (requires new jade) + * promote jade relationship to 'Depends', so we can manage version + dependancies properly + + -- Adam P. Harris Thu, 3 Sep 1998 01:12:51 -0400 + +jadetex (1.0b5-1) unstable; urgency=low + + * New maintainer. + * New upstream version. Maybe works with tables, tell me about it. + * Changed postinst to use solely mktemp and not to fall back to insecure + tempfile allocation if mktemp does not exist. Made sure that mktemp does + exist by adding a dependency to debianutils >= 1.7. (lintian). + * JadeTeX now recommends jade and sugests docbook-stylesheets instead the + other way round. + * Documentation generation works now, and documentation is included. + * Converted debian/rules from debhelper to Manoj rules style. + * Dropped "cooked" directory, as it is not provided upstream anymore and + doesn't make much sense, IMHO. If you really need such information, I'm + happy to provide you with the version numbers of the Debian packages I + use to build JadeTeX. + * Added pdfjadetex. + * The introduction of pdfjadetex means that jadetex-texconfig is back. + I used the new version 0.9 however, and only added pdfjadetex support. + Christoph and Thomas are contacted. + * JadeTeX and pdfJadeTeX now point to TeX and pdfTeX directly, and not to + virTeX or something like this. + * Added real man pages. They are derived from the teTeX distribution, please + sent me improvements, corrections, etc. + + -- Marcus Brinkmann Thu, 9 Jul 1998 17:54:41 +0200 + +jadetex (0.61-1.2) frozen unstable; urgency=medium + + * Non-maintainer release + * eliminate jadetex-texconfig for texconfig; use tetex's texconfig + instead. The old jadetex-texconfig is still in the source archive + though; hopefully it is no longer required. + (closes grave Bug#22688, Bug#22638, Bug#22639, Bug#22766) + * Note there are known cases, such as generating php-doc, where tetex + seems to run out of memory internally; I think this is a tetex-base + bug (report as a bug) + + -- Adam P. Harris Sun, 31 May 1998 22:06:37 -0400 + +jadetex (0.61-1.1) frozen unstable; urgency=low + + * Non-maintainer release + * debian/control: starting with tetex-extra 0.9-5, hyperref is obsolete, + so we shouldn't depend on both. Used the rather complex depends + provided by Anthony Fok (closes Bug#21110, + Bug#21885, Bug#22455) + * debian/postinst: rather than hardcode the path of tempfile, use + 'command -v' to check for it (it was testing for /usr/bin/tempfile, + which seems to be in /bin now) + * strip off prepended !! from "kpsetool -v '$VAR'" (not sure if that's + actually the right thing to do, but the way it was was definately + wrong) + + -- Adam P. Harris Fri, 15 May 1998 00:39:33 -0400 + +jadetex (0.61-1) frozen; urgency=low + + * New upstream (bugfix only) release + * depends on tetex-extra (fixes Bug #18606) + * README.debian reworked (fixes Bug #18617) + * Bug #19489 should be fixed with changes in 0.57-2 + + -- Christian Leutloff Mon, 16 Mar 1998 09:35:54 +0100 + +jadetex (0.57-2) unstable; urgency=low + + * modified postinst and README.Debian + + -- Christian Leutloff Thu, 26 Feb 1998 18:43:40 +0100 + +jadetex (0.57-1) unstable; urgency=low + + * New upstream release + + -- Christian Leutloff Wed, 25 Feb 1998 09:29:10 +0100 + +jadetex (0.56-2) unstable; urgency=low + + * check for symlink to conffiles in postinst (fixes #18517) + (thanks to Francesco Potorti` ) + * README changed (#18436) + + -- Christian Leutloff Mon, 23 Feb 1998 19:26:04 +0100 + +jadetex (0.56-1) unstable; urgency=low + + * New upstream release + * fixed symlink (#18087) + + -- Christian Leutloff Fri, 20 Feb 1998 16:04:29 +0100 + +jadetex (0.55-2) unstable; urgency=low + + * added jadetex.ini and jadetexpdf.ini to conffiles and moved them to + /etc/texmf/jadetex/ + * need to add jadetex-texconfig again 8-( + * improved description, thanks to Chris Fearnley + + -- Christian Leutloff Sun, 8 Feb 1998 12:47:22 +0100 + +jadetex (0.55-1) unstable; urgency=low + + * new upstream version + + -- Christian Leutloff Tue, 3 Feb 1998 19:28:01 +0100 + +jadetex (0.53-4) unstable; urgency=low + + * texconfig.jadetex obsoleted by tetex-bin 0.4pl8-4 + + -- Christian Leutloff Sun, 14 Dec 1997 15:52:11 +0100 + +jadetex (0.53-3) unstable; urgency=low + + * now in main again, because copyright of hyperref is now DFSG compliant + + -- Christian Leutloff Thu, 27 Nov 1997 11:13:14 +0100 + +jadetex (0.53-2) unstable; urgency=low + + * changed section to contrib/tex, added dependency for hyperref + + -- Christian Leutloff Fri, 21 Nov 1997 23:34:16 +0100 + +jadetex (0.53-1) unstable; urgency=low + + * new upstream source + * minor improvements + * added set -e to postinst + * Initial Version. + + -- Christian Leutloff Fri, 7 Nov 1997 11:24:12 +0100 + + --- jadetex-3.13.orig/debian/control +++ jadetex-3.13/debian/control @@ -0,0 +1,39 @@ +Source: jadetex +Section: tex +Priority: optional +Maintainer: Adam Di Carlo +Standards-Version: 3.5.10 +Build-Depends-Indep: debhelper, tetex-extra, openjade1.3 | openjade, docbook-xml (>= 4.2), docbook-dsssl + +Package: jadetex +Architecture: all +Depends: debianutils (>= 1.7), tetex-bin (>= 2.0.1-1), tetex-extra (>= 2.0.1-2) +Recommends: openjade1.3 | openjade | jade (>= 1.2-1) +Suggests: docbook-dsssl +Conflicts: cslatex, csplain +Description: generator of printable output from SGML or XML using Jade + JadeTeX, in conjunction with Jade or OpenJade, can be used to produce + printable output from SGML or XML files. This package includes + 'jadetex', which produces DVI output, viewable with 'xdvi'; and + 'pdfjadetex', which produces PDF output. + . + JadeTeX is a set of LaTeX macros. JadeTeX process the output from + the TeX backend to Jade or OpenJade. + . + Note that Jade and JadeTeX uses DSSSL to produce formatted output + from SGML or XML source files. Debian also provides SGML/XML + document formatting using XSL stylesheets instead of DSSSL; that is + provided by other packages, such as passivetex, xsltproc, and fop. + . + Homepage: http://jadetex.sourceforge.net/ + +Package: jadetex-ptex +Architecture: all +Depends: jadetex, ptex-bin (>=3.0+0.04-1) +Description: printable output from SGML or XML using Jade, Japanese version + JadeTeX, in conjunction with Jade or OpenJade, can be used to produce + printable output from SGML or XML files. This package includes + 'jadetex-ptex', which produces DVI output suitable for Japanese. + . + This package is Japanese extension of jadetex, using ptex. For more + information, see the 'jadetex' and 'ptex-bin' packages. --- jadetex-3.13.orig/debian/README.jadetex.cfg +++ jadetex-3.13/debian/README.jadetex.cfg @@ -0,0 +1,52 @@ +You can put a file jadetex.cfg if you want to override jadetex's or +pdfjadtex's default behavior. It seems that pretty much any TeX code +can go in there, but here are some common things. + +This file just goes in whatever the current directory where jadetex is +being run from. + + +* Two-Sided Pages + +Sometimes, you will want JadeTeX will start chapters and such on the +recto side, and try to keep the total count of pages even. Note that +this used to be the default, but no longer is. If you want to turn +that back on, put this in jadetex.cfg: + +\def\PageTwoSide{1} +\def\TwoSideStartOnRight{1} + + +* Not Labelling Elements + +In some cases, it is possible for pdfjadetex to error out even with +expanded texmf.cnf settings. The sign of this is that jadetex is able +to process the file, but pdfjadetex isn't. The upstream maintainer, +Sebastian Rahtz, had this to say: + +| pdfjadetex _can_ go over a string limit in TeX +| which *isn't* changeable in texmf.cnf. The workaround is to write a +| file called jadetex.cfg, containing just the line +| +| \LabelElementsfalse +| +| and see if that helps. it stops jadetex from using up a string for +| every element. If that leaves unsatisfied cross-references, try +| "jadetex" instead of "pdfjadetex", and create your PDF in another via +| (ie via Distiller). + + + +* PDF Outlines + +PDF outlines are a nested list of the hierarchy of chapters, sections, +etc. These will display on the left side using 'acroread' for +instance. + +Put this in jadetex.cfg: + + pdfpagemode=UseOutlines + +This functionality requires the use of OpenJade. + + --- jadetex-3.13.orig/debian/fmtutil-ptex.cnf +++ jadetex-3.13/debian/fmtutil-ptex.cnf @@ -0,0 +1,7 @@ +# jadefmtutil.cnf: configuration file for fmtutil; jade flavor. +# invoke with 'fmtutil --cnffile ' +# +# format engine pattern-file arguments +jadetex-ptex ptex language.dat &platex jadetex.ini +#pdfjadetex pdftex language.dat &pdflatex pdfjadetex.ini + --- jadetex-3.13.orig/debian/jadetex-ptex.postinst +++ jadetex-3.13/debian/jadetex-ptex.postinst @@ -0,0 +1,177 @@ +#!/bin/bash +# jadetex-ptex postinst +# jobs: mktexlsr, fmtutil, remove old cruft we used to make + +set -e + +# clear environment +TETEXDIR= +TEXMF= +TEXINPUTS= + +FMTDIR=/etc/texmf/fmt.d +FMTCNF="$FMTDIR/40jadetex-ptex.cnf" +TEMPLDIR=/usr/share/texmf/tex/jadetex-ptex/config-templates + +umask 022 + +# emit a warning, generic routine +warn ( ) { + echo $* 1>&2 + if [ -f $MYTMPFILE ]; then + echo $* >> $MYTMPFILE + fi +} + +log ( ) { + if [ -f $MYTMPFILE ]; then + echo $* >> $MYTMPFILE + fi + +} + +checkfmt ( ) { + format=$1 + baseformat=`basename $1 .fmt` + if ! kpsewhich $format > /dev/null ; then + warn "WARNING: memory dump $format not found, attempting to reconstruct ..." + echo "running 'fmtutil --byfmt $baseformat'" >> $MYTMPFILE + fmtutil --byfmt $baseformat >> $MYTMPFILE + if kpsewhich $format > /dev/null ; then + warn " ok, reconstructed" + else + warn "ERROR: cannot create TeX memory dump $format" + warn " Your TeX environment seems to be broken; the memory dump file $format" + warn " was not found and cannot be created. Probably, TeX is miconfigured." + warn " You should submit the log file $MYTMPFILE as a bug against" + warn " the package tetex-bin." + warn + warn "JadeTeX cannot be installed." + exit 1 + fi + fi +} + + +make_and_check_fmt ( ) { + local fmt + fmt=$1 + + if [ ! -f /etc/texmf/jadetex/$fmt.ini ]; then + warn "/etc/texmf/jadetex/$fmt.ini not found, skipping $fmt memory dump" + warn "If you wish to use JadeTeX, you will have to create the dump manually" + warn "or else purge then reinstall this package to restore default configuration." + return 0 + elif [ ! -f ${FMTCNF} ]; then + warn "$FMTCNF is missing but should be there; report this bug please" + return 1 + elif ! grep -qw "^$fmt" ${FMTCNF}; then + warn "$FMTCNF doesn't contain '$fmt', skipping memory dump" + warn "If you wish to use JadeTeX, you will have to create the dump manually" + warn "or else purge then reinstall this package to restore default configuration." + return 0 + else + log "running 'fmtutil --cnffile ${FMTCNF} --byfmt $fmt'..." + if ! fmtutil --cnffile ${FMTCNF} --byfmt $fmt >> $MYTMPFILE; then + warn "ERROR: $fmt fmtutil failed" + return 1 + elif ! kpsewhich $fmt.fmt > /dev/null ; then + warn "ERROR: memory dump jadetex.fmt was created, but cannot be found" + return 1 + else + log "successfully created $fmt memory dump" + return 0 + fi + fi + return 0 +} + +makejadetexfmt ( ) { + local goterror + goterror=false + + if ! make_and_check_fmt jadetex-ptex; then + goterror=true + fi + if $goterror; then + return -1 + else + return 0 + fi +} + + +if [ "$1" = "configure" ]; then + # old crufty stuff we used to build in postinst - I wonder whether we + # should actually do this in preinst? + if [ -L /usr/lib/texmf/tex/jadetex/config ]; then + warn "removing old JadeTeX config symlink" + rm /usr/lib/texmf/tex/jadetex/config + fi + if [ -d /usr/lib/texmf/tex/jadetex ]; then + rmdir /usr/lib/texmf/tex/jadetex || \ + warn "unused, obsolete dir /usr/lib/texmf/tex/jadetex, remove it yourself if you care" + fi + if [ -f /etc/texmf/texmf.d/96JadeTeX ]; then + warn "removing old texmf.d config snippet" + rm /etc/texmf/texmf.d/96JadeTeX + fi + + mktexlsr + + MYTMPFILE=`mktemp /tmp/jadetex-ptex-postinst.XXXXXX` + : > $MYTMPFILE + + # new fmt.d handling; we have to handle this in postinst rather + # than conffiles so that we can disable it when pkg is removed + # + # first we check if the file or any jadetex.cnf file is already there, + # if not, is there is a disabled version of the script available? + # if not, is there a globbed version of the disabled file available? + # if not, copy in the file from the template area + if [ -f ${FMTDIR}/40jadetex-ptex.cnf ]; then + : + elif ls ${FMTDIR}/*jadetex-ptex.cnf 2>/dev/null; then + FMTCNF=`ls ${FMTDIR}/*jadetex-ptex.cnf | tail -1` + elif [ -f ${FMTDIR}/40jadetex-ptex.cnf.disable ]; then + mv ${FMTDIR}/40jadetex-ptex.cnf.disable ${FMTCNF} + else + OLD=`ls -1 ${FMTDIR}/*jadetex-ptex.cnf* 2>/dev/null | tail -1` + if [ ${OLD} -a -f ${OLD} ]; then + FMTCNF=`echo $OLD | sed -e 's/.cnf.*/.cnf/'` + warn "re-enabling $FMTCNF from $OLD" + mv ${OLD} ${FMTCNF} + else + cp ${TEMPLDIR}/fmtutil-ptex.cnf ${FMTCNF} + fi + fi + + update-fmtutil + update-texmf + + echo "Checking for TeX memory dumps (.fmt) ..." + checkfmt platex.fmt +# checkfmt pdftex.fmt +# checkfmt pdflatex.fmt + echo " done." + + echo "Creating JadeTeX-pTeX memory dumps ..." + if makejadetexfmt; then + echo " done." + else + warn " failed." + warn "ERROR: JadeTeX/PDFJadeTeX memory dump creation failed" + warn " This package could not be installed." + warn " Please report this bug; include tetex* package version" + warn " numbers and the file $MYTMPFILE in the bug report." + exit 1 + fi + + # remove temp file + rm -f $MYTMPFILE +fi + +#DEBHELPER# + +exit 0 + --- jadetex-3.13.orig/debian/rules +++ jadetex-3.13/debian/rules @@ -0,0 +1,118 @@ +#!/usr/bin/make -f +# Debian rules file for jadetex + +package := jadetex + +# directory abstraction +prefix := debian/tmp +bindir := $(prefix)/usr/bin +docdir := $(prefix)/usr/share/doc/$(package) +mandir := $(prefix)/usr/share/man +texdir := $(prefix)/usr/share/texmf/tex/$(package) +templdir := $(texdir)/config-templates +confdir := $(prefix)/etc/texmf/$(package) +texmfdir := $(prefix)/etc/texmf/texmf.d + +# tool abstraction +install_file := install -o root -g root -m 644 -p +install_program := install -o root -g root -m 755 -p +make_dir := install -d -o root -g root -m 755 +compress := gzip -9f + +# For jadetex-ptex +prefix-ptex := debian/jadetex-ptex +bindir-ptex := $(prefix-ptex)/usr/bin +mandir-ptex := $(prefix-ptex)/usr/share/man +texdir-ptex := $(prefix-ptex)/usr/share/texmf/tex/$(package)-ptex +templdir-ptex := $(texdir-ptex)/config-templates +confdir-ptex := $(prefix-ptex)/etc/texmf/$(package) +texmfdir-ptex := $(prefix-ptex)/etc/texmf/texmf.d + +build: + $(checkdir) + $(MAKE) basic + pdflatex '\nonstopmode\input{jadetex.dtx}' > latex.log + pdflatex '\nonstopmode\input{jadetex.dtx}' >> latex.log + $(MAKE) -C doc releasenotes.html + touch build + +clean: + $(checkdir) + -$(MAKE) realclean + -$(MAKE) -C doc realclean + rm -f jadetex.ps + rm -f build binary debian/conffiles + rm -f debian/jadetex-ptex.conffiles + dh_clean + +binary: binary-indep binary-arch + +.PHONY: test +test: + $(checkdir) + sh -n debian/postinst + sh -n debian/prerm + sh -n debian/postrm + +binary-indep: build test + $(checkdir) + $(checkroot) + rm -rf $(prefix) + + $(make_dir) $(bindir) $(docdir) $(mandir)/man1 \ + $(texdir)/base $(confdir) $(templdir) $(texmfdir) \ + $(bindir-ptex) $(mandir-ptex)/man1 \ + $(confdir-ptex) $(templdir-ptex) $(texmfdir-ptex) + +# conffile handling + ln -sf /etc/texmf/jadetex $(texdir)/config + $(install_file) jadetex.ini pdfjadetex.ini $(confdir)/ + $(install_file) jadetex.ini $(confdir-ptex)/jadetex-ptex.ini + $(install_file) debian/texmf.cnf $(texmfdir)/96JadeTeX.cnf + $(install_file) debian/texmf-ptex.cnf $(texmfdir-ptex)/96JadeTeX-pTeX.cnf + + : > debian/conffiles + echo $(subst $(prefix),,$(confdir))/jadetex.ini >> debian/conffiles + echo $(subst $(prefix),,$(confdir))/pdfjadetex.ini >> debian/conffiles + echo $(subst $(prefix),,$(texmfdir))/96JadeTeX.cnf >> debian/conffiles + echo $(subst $(prefix-ptex),,$(confdir-ptex))/jadetex-ptex.ini >> debian/jadetex-ptex.conffiles + echo $(subst $(prefix-ptex),,$(texmfdir-ptex))/96JadeTeX-pTeX.cnf >> debian/jadetex-ptex.conffiles + +# the fmtutil snippet is managed in the postinst + $(install_file) debian/fmtutil.cnf $(templdir)/ + $(install_file) debian/fmtutil-ptex.cnf $(templdir-ptex)/ + + $(install_file) jadetex.1 pdfjadetex.1 $(mandir)/man1/ + ln -s jadetex.1.gz $(mandir-ptex)/man1/jadetex-ptex.1.gz + $(install_file) pdfjadetex.1 $(mandir)/man1/ + + $(install_file) jadetex.ltx $(texdir)/base/ + $(install_file) dsssl.def *.sty *.fd $(texdir)/base/ + + ln -s tex $(bindir)/jadetex + ln -s ptex $(bindir-ptex)/jadetex-ptex + ln -s pdftex $(bindir)/pdfjadetex + + dh_installdocs debian/README.* jadetex.pdf doc/releasenotes.html + dh_installchangelogs ChangeLog + + dh_compress -i + + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +binary-arch: build +# nothing to do + +define checkdir + test -f debian/rules + test -f jadetex.dtx +endef + +define checkroot + test `id -u` = 0 +endef + +.PHONY: clean binary-indep binary-arch binary --- jadetex-3.13.orig/debian/copyright +++ jadetex-3.13/debian/copyright @@ -0,0 +1,42 @@ +This package was debianized by Christian Leutloff + on Fri, 7 Nov 1997 11:24:12 +0100. Marcus +Brinkmann took over maintenance of this package on Thu, 9 Jul 1998 +17:55:30 +0200. Adam Di Carlo took over maintenance +on Fri, 9 Apr 1999 02:35:03 -0400. + +It was downloaded from + +Copyright: + +Copyright (C) 1996, 1997, 1998, 2000, 2001 +Sebastian Rahtz + +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 SEBASTIAN RAHTZ 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 DEALINGS IN THE SOFTWARE. + + +-- + +Debian-specific changes are Copyright (c) 1997, 1998 Christian +Leutloff and Marcus Brinkmann; 1999 -- 2001 Adam Di Carlo. These +changes are distributed under the terms of the GNU General Public +License. + +The GNU General Public License is available on Debian systems in the +file /usr/share/common-licenses/GPL. --- jadetex-3.13.orig/debian/jadetex-ptex.postrm +++ jadetex-3.13/debian/jadetex-ptex.postrm @@ -0,0 +1,19 @@ +#!/bin/bash +# postrm -- don't rely on tex being installed, or anything; remove the config dirs + +set -e + +ETC_CONFIG=/etc/texmf/jadetex +FMTDIR=/etc/texmf/fmt.d + +if [ "$1" = "purge" ]; then +# rm -rf $ETC_CONFIG || true + rm -f ${FMTDIR}/*jadetex-ptex.cnf* + rm -f /etc/texmf/texmf.d/*JadeTeX-pTeX* + update-texmf || true +fi + +#DEBHELPER# + +exit 0 + --- jadetex-3.13.orig/debian/fmtutil.cnf +++ jadetex-3.13/debian/fmtutil.cnf @@ -0,0 +1,7 @@ +# jadefmtutil.cnf: configuration file for fmtutil; jade flavor. +# invoke with 'fmtutil --cnffile ' +# +# format engine pattern-file arguments +jadetex tex language.dat &latex jadetex.ini +pdfjadetex pdftex language.dat &pdflatex pdfjadetex.ini + --- jadetex-3.13.orig/debian/jadetex-ptex.prerm +++ jadetex-3.13/debian/jadetex-ptex.prerm @@ -0,0 +1,41 @@ +#!/bin/sh +# derived from tetex-base.postrm + +set -e + +# clear environment +TETEXDIR= +TEXMF= +TEXINPUTS= + +ETC_CONFIG=/etc/texmf/jadetex +FMTDIR=/etc/texmf/fmt.d + +if [ "$1" = "remove" ]; then + # remove the fmt files created at postinst + JADETEX_PTEXFMT=$(kpsewhich jadetex-ptex.fmt) || true +# PDFJADETEXFMT=$(kpsewhich pdfjadetex.fmt) || true + rm -f $JADETEX_PTEXFMT #$PDFJADETEXFMT + + # remove the logs created as a sideeffect + WEB2CDIR=$(dirname $JADETEX_PTEXFMT) || true + rm -f $WEB2CDIR/jadetex-ptex.log #$WEB2CDIR/pdfjadetex.log + + # disable the fmt.d bit and recreate fmtutil.cnf + if [ -f ${FMTDIR}/40jadetex-ptex.cnf ]; then + mv ${FMTDIR}/40jadetex-ptex.cnf ${FMTDIR}/40jadetex-ptex.cnf.disable + fi + update-fmtutil +fi + +# the upgrade case will be handled in postinst; no need to run it twice +if [ "$1" != "upgrade" ]; then + if which mktexlsr >/dev/null 2>&1; then + mktexlsr || true + fi +fi + +#DEBHELPER# + +exit 0 + --- jadetex-3.13.orig/debian/postinst +++ jadetex-3.13/debian/postinst @@ -0,0 +1,180 @@ +#!/bin/bash +# jadetex postinst +# jobs: mktexlsr, fmtutil, remove old cruft we used to make + +set -e + +# clear environment +TETEXDIR= +TEXMF= +TEXINPUTS= + +FMTDIR=/etc/texmf/fmt.d +FMTCNF="$FMTDIR/40jadetex.cnf" +TEMPLDIR=/usr/share/texmf/tex/jadetex/config-templates + +umask 022 + +# emit a warning, generic routine +warn ( ) { + echo $* 1>&2 + if [ -f $MYTMPFILE ]; then + echo $* >> $MYTMPFILE + fi +} + +log ( ) { + if [ -f $MYTMPFILE ]; then + echo $* >> $MYTMPFILE + fi + +} + +checkfmt ( ) { + format=$1 + baseformat=`basename $1 .fmt` + if ! kpsewhich $format > /dev/null ; then + warn "WARNING: memory dump $format not found, attempting to reconstruct ..." + echo "running 'fmtutil --byfmt $baseformat'" >> $MYTMPFILE + fmtutil --byfmt $baseformat >> $MYTMPFILE + if kpsewhich $format > /dev/null ; then + warn " ok, reconstructed" + else + warn "ERROR: cannot create TeX memory dump $format" + warn " Your TeX environment seems to be broken; the memory dump file $format" + warn " was not found and cannot be created. Probably, TeX is miconfigured." + warn " You should submit the log file $MYTMPFILE as a bug against" + warn " the package tetex-bin." + warn + warn "JadeTeX cannot be installed." + exit 1 + fi + fi +} + + +make_and_check_fmt ( ) { + local fmt + fmt=$1 + + if [ ! -f /etc/texmf/jadetex/$fmt.ini ]; then + warn "/etc/texmf/jadetex/$fmt.ini not found, skipping $fmt memory dump" + warn "If you wish to use JadeTeX, you will have to create the dump manually" + warn "or else purge then reinstall this package to restore default configuration." + return 0 + elif [ ! -f ${FMTCNF} ]; then + warn "$FMTCNF is missing but should be there; report this bug please" + return 1 + elif ! grep -qw "^$fmt" ${FMTCNF}; then + warn "$FMTCNF doesn't contain '$fmt', skipping memory dump" + warn "If you wish to use JadeTeX, you will have to create the dump manually" + warn "or else purge then reinstall this package to restore default configuration." + return 0 + else + log "running 'fmtutil --cnffile ${FMTCNF} --byfmt $fmt'..." + if ! fmtutil --cnffile ${FMTCNF} --byfmt $fmt >> $MYTMPFILE; then + warn "ERROR: $fmt fmtutil failed" + return 1 + elif ! kpsewhich $fmt.fmt > /dev/null ; then + warn "ERROR: memory dump jadetex.fmt was created, but cannot be found" + return 1 + else + log "successfully created $fmt memory dump" + return 0 + fi + fi + return 0 +} + +makejadetexfmt ( ) { + local goterror + goterror=false + + if ! make_and_check_fmt jadetex; then + goterror=true + fi + if ! make_and_check_fmt pdfjadetex; then + goterror=true + fi + if $goterror; then + return -1 + else + return 0 + fi +} + + +if [ "$1" = "configure" ]; then + # old crufty stuff we used to build in postinst - I wonder whether we + # should actually do this in preinst? + if [ -L /usr/lib/texmf/tex/jadetex/config ]; then + warn "removing old JadeTeX config symlink" + rm /usr/lib/texmf/tex/jadetex/config + fi + if [ -d /usr/lib/texmf/tex/jadetex ]; then + rmdir /usr/lib/texmf/tex/jadetex || \ + warn "unused, obsolete dir /usr/lib/texmf/tex/jadetex, remove it yourself if you care" + fi + if [ -f /etc/texmf/texmf.d/96JadeTeX ]; then + warn "removing old texmf.d config snippet" + rm /etc/texmf/texmf.d/96JadeTeX + fi + + mktexlsr + + MYTMPFILE=`mktemp /tmp/jadetex-postinst.XXXXXX` + : > $MYTMPFILE + + # new fmt.d handling; we have to handle this in postinst rather + # than conffiles so that we can disable it when pkg is removed + # + # first we check if the file or any jadetex.cnf file is already there, + # if not, is there is a disabled version of the script available? + # if not, is there a globbed version of the disabled file available? + # if not, copy in the file from the template area + if [ -f ${FMTDIR}/40jadetex.cnf ]; then + : + elif ls ${FMTDIR}/*jadetex.cnf 2>/dev/null; then + FMTCNF=`ls ${FMTDIR}/*jadetex.cnf | tail -1` + elif [ -f ${FMTDIR}/40jadetex.cnf.disable ]; then + mv ${FMTDIR}/40jadetex.cnf.disable ${FMTCNF} + else + OLD=`ls -1 ${FMTDIR}/*jadetex.cnf* 2>/dev/null | tail -1` + if [ ${OLD} -a -f ${OLD} ]; then + FMTCNF=`echo $OLD | sed -e 's/.cnf.*/.cnf/'` + warn "re-enabling $FMTCNF from $OLD" + mv ${OLD} ${FMTCNF} + else + cp ${TEMPLDIR}/fmtutil.cnf ${FMTCNF} + fi + fi + + update-fmtutil + update-texmf + + echo "Checking for TeX memory dumps (.fmt) ..." + checkfmt latex.fmt + checkfmt pdftex.fmt + checkfmt pdflatex.fmt + echo " done." + + echo "Creating JadeTeX memory dumps ..." + if makejadetexfmt; then + echo " done." + else + warn " failed." + warn "ERROR: JadeTeX/PDFJadeTeX memory dump creation failed" + warn " This package could not be installed." + warn " Please report this bug; include tetex* package version" + warn " numbers and the file $MYTMPFILE in the bug report." + exit 1 + fi + + # remove temp file + rm -f $MYTMPFILE +fi + +#DEBHELPER# + +exit 0 + --- jadetex-3.13.orig/debian/postrm +++ jadetex-3.13/debian/postrm @@ -0,0 +1,19 @@ +#!/bin/bash +# postrm -- don't rely on tex being installed, or anything; remove the config dirs + +set -e + +ETC_CONFIG=/etc/texmf/jadetex +FMTDIR=/etc/texmf/fmt.d + +if [ "$1" = "purge" ]; then + rm -rf $ETC_CONFIG || true + rm -f ${FMTDIR}/*jadetex.cnf* + rm -f /etc/texmf/texmf.d/*JadeTeX* + update-texmf || true +fi + +#DEBHELPER# + +exit 0 + --- jadetex-3.13.orig/debian/texmf-ptex.cnf +++ jadetex-3.13/debian/texmf-ptex.cnf @@ -0,0 +1,28 @@ +TEXINPUTS.jadetex = .;$TEXMF/tex/{jadetex,plain,generic,}// +TEXINPUTS.pdfjadetex = .;$TEXMF/{pdftex,tex}/{jadetex,plain,generic,}// + +%% +%% jacking up TeX settings for the unique uses of jadetex +%% +hash_extra.jadetex-ptex = 32500 +%hash_extra.pdfjadetex = 32500 +pool_size.jadetex-ptex = 500000 +%pool_size.pdfjadetex = 500000 +string_vacancies.jadetex-ptex = 45000 +%string_vacancies.pdfjadetex = 45000 +max_strings.jadetex-ptex = 58500 +%max_strings.pdfjadetex = 58500 +pool_free.jadetex-ptex = 47500 +%pool_free.pdfjadetex = 47500 +nest_size.jadetex-ptex = 500 +%nest_size.pdfjadetex = 500 +param_size.jadetex-ptex = 1500 +%param_size.pdfjadetex = 1500 +save_size.jadetex-ptex = 5000 +%save_size.pdfjadetex = 5000 +stack_size.jadetex-ptex = 1500 +%stack_size.pdfjadetex = 1500 +extra_mem_bot.jadetex-ptex = 85000 +%extra_mem_bot.pdfjadetex = 85000 + + --- jadetex-3.13.orig/debian/prerm +++ jadetex-3.13/debian/prerm @@ -0,0 +1,41 @@ +#!/bin/sh +# derived from tetex-base.postrm + +set -e + +# clear environment +TETEXDIR= +TEXMF= +TEXINPUTS= + +ETC_CONFIG=/etc/texmf/jadetex +FMTDIR=/etc/texmf/fmt.d + +if [ "$1" = "remove" ]; then + # remove the fmt files created at postinst + JADETEXFMT=$(kpsewhich jadetex.fmt) || true + PDFJADETEXFMT=$(kpsewhich pdfjadetex.fmt) || true + rm -f $JADETEXFMT $PDFJADETEXFMT + + # remove the logs created as a sideeffect + WEB2CDIR=$(dirname $JADETEXFMT) || true + rm -f $WEB2CDIR/jadetex.log $WEB2CDIR/pdfjadetex.log + + # disable the fmt.d bit and recreate fmtutil.cnf + if [ -f ${FMTDIR}/40jadetex.cnf ]; then + mv ${FMTDIR}/40jadetex.cnf ${FMTDIR}/40jadetex.cnf.disable + fi + update-fmtutil +fi + +# the upgrade case will be handled in postinst; no need to run it twice +if [ "$1" != "upgrade" ]; then + if which mktexlsr >/dev/null 2>&1; then + mktexlsr || true + fi +fi + +#DEBHELPER# + +exit 0 + --- jadetex-3.13.orig/debian/texmf.cnf +++ jadetex-3.13/debian/texmf.cnf @@ -0,0 +1,28 @@ +TEXINPUTS.jadetex = .;$TEXMF/tex/{jadetex,plain,generic,}// +TEXINPUTS.pdfjadetex = .;$TEXMF/{pdftex,tex}/{jadetex,plain,generic,}// + +%% +%% jacking up TeX settings for the unique uses of jadetex +%% +hash_extra.jadetex = 32500 +hash_extra.pdfjadetex = 32500 +pool_size.jadetex = 500000 +pool_size.pdfjadetex = 500000 +string_vacancies.jadetex = 45000 +string_vacancies.pdfjadetex = 45000 +max_strings.jadetex = 58500 +max_strings.pdfjadetex = 58500 +pool_free.jadetex = 47500 +pool_free.pdfjadetex = 47500 +nest_size.jadetex = 500 +nest_size.pdfjadetex = 500 +param_size.jadetex = 1500 +param_size.pdfjadetex = 1500 +save_size.jadetex = 5000 +save_size.pdfjadetex = 5000 +stack_size.jadetex = 1500 +stack_size.pdfjadetex = 1500 +extra_mem_bot.jadetex = 85000 +extra_mem_bot.pdfjadetex = 85000 + +