texlive-base (2009-11+squeeze1) debian-dir only changes

Summary

 debian/CHANGES.packaging                                                                            | 2380 ++++
 debian/Licenses.header                                                                              |   41 
 debian/README.Debian                                                                                |   47 
 debian/README.source                                                                                |   18 
 debian/bug.control                                                                                  |    2 
 debian/bug.script                                                                                   |   96 
 debian/changelog                                                                                    |  537 +
 debian/common.functions.postinst                                                                    |   63 
 debian/common.functions.postrm                                                                      |   54 
 debian/common.functions.preinst                                                                     |  141 
 debian/compat                                                                                       |    1 
 debian/control                                                                                      |  427 
 debian/convert-info-files-to-unix.sh                                                                |   19 
 debian/copyright                                                                                    |  793 +
 debian/create-doc-links                                                                             |   21 
 debian/fix-bin-dangling-links.sh                                                                    |   22 
 debian/fix-bin-symlink-targets-permissions.sh                                                       |   24 
 debian/fix-manpages.sh                                                                              |   80 
 debian/generate-license-file                                                                        |   34 
 debian/lintian.override                                                                             |   26 
 debian/merge-dist-tree                                                                              |   38 
 debian/patches/10_fmtutil_fixes                                                                     |   95 
 debian/patches/32_fpl_fixes                                                                         |   36 
 debian/patches/dek-comments                                                                         |   41 
 debian/patches/dvipdfm-config-no-rungs                                                              |   31 
 debian/patches/dvipdfmx-cid-x.map-add-jis                                                           |   12 
 debian/patches/epspdf-call-ruby-explicitely                                                         |   32 
 debian/patches/fix-bashism                                                                          |   29 
 debian/patches/fix-info-dir-sections                                                                |   34 
 debian/patches/fix-missing-mathpple-activation                                                      |   17 
 debian/patches/fix-pgf2pdf-script                                                                   |   19 
 debian/patches/fix-txfonts-precapprox                                                               |   24 
 debian/patches/fix-xyframe.tex.patch                                                                |   18 
 debian/patches/fix_latin.ldf_from_ctan                                                              |   41 
 debian/patches/koma-script-usekomafont-fix                                                          |   74 
 debian/patches/series                                                                               |   21 
 debian/patches/texdoc-support-zipped                                                                |   17 
 debian/patches/texdoc-update                                                                        | 4345 ++++++++
 debian/patches/texdoc-viewer-use-see                                                                |   21 
 debian/patches/update-booktabs                                                                      |   37 
 debian/patches/update-lualatex-modules                                                              |  703 +
 debian/patches/upstream-pdftex.def-fixes                                                            |  116 
 debian/patches/upstream-xetex.def-fixes                                                             |   75 
 debian/preinst.pre                                                                                  |   18 
 debian/rules                                                                                        |   94 
 debian/source.lintian-overrides                                                                     |    3 
 debian/source/format                                                                                |    1 
 debian/texlive-base.install                                                                         |   10 
 debian/texlive-base.links.dist                                                                      |    3 
 debian/texlive-base.menu                                                                            |   16 
 debian/texlive-base.mime                                                                            |    1 
 debian/texlive-base.override                                                                        |    4 
 debian/texlive-base.postinst.pre                                                                    |   21 
 debian/texlive-base.preinst.post                                                                    |   43 
 debian/texlive-base.root/usr/share/doc/texlive-base/texdoc/texdoc.pdf.uu                            | 4272 ++++++++
 debian/texlive-base.root/usr/share/man/man1/simpdftex.1                                             |  184 
 debian/texlive-base.root/usr/share/texmf-texlive/tex/generic/config/luatexiniconfig.tex             |   18 
 debian/texlive-common.NEWS                                                                          |   40 
 debian/texlive-common.links.dist                                                                    |    7 
 debian/texlive-common.override                                                                      |    4 
 debian/texlive-common.postinst.pre                                                                  |   18 
 debian/texlive-fonts-recommended-doc.override                                                       |    4 
 debian/texlive-fonts-recommended.override                                                           |    9 
 debian/texlive-full.override                                                                        |    4 
 debian/texlive-generic-recommended.override                                                         |    4 
 debian/texlive-latex-base-doc.override                                                              |    4 
 debian/texlive-latex-base-doc.root/usr/share/doc/texlive-latex-base-doc/latex/amscls/00LICENSE.txt  |  196 
 debian/texlive-latex-base.Licenses.add                                                              |  201 
 debian/texlive-latex-base.install                                                                   |    2 
 debian/texlive-latex-base.links.dist                                                                |    1 
 debian/texlive-latex-base.override                                                                  |    4 
 debian/texlive-latex-base.postinst.pre                                                              |   16 
 debian/texlive-latex-base.preinst.post                                                              |    7 
 debian/texlive-latex-base.root/usr/share/texmf-texlive/tex/latex/amscls/amsdtx.cls                  |  535 +
 debian/texlive-latex-base.root/usr/share/texmf-texlive/tex/latex/amscls/amsldoc.cls                 |  469 
 debian/texlive-latex-recommended-doc.override                                                       |    4 
 debian/texlive-latex-recommended.install                                                            |    1 
 debian/texlive-latex-recommended.links.dist                                                         |    1 
 debian/texlive-latex-recommended.override                                                           |    4 
 debian/texlive-luatex.override                                                                      |    4 
 debian/texlive-luatex.root/usr/share/doc/texlive-luatex/luatex/luatextra/luatextra-reference.pdf.uu | 2336 ++++
 debian/texlive-luatex.root/usr/share/doc/texlive-luatex/luatex/luatextra/luatextra.pdf.uu           | 5340 ++++++++++
 debian/texlive-metapost-doc.override                                                                |    4 
 debian/texlive-metapost.override                                                                    |    4 
 debian/texlive-omega.links.dist                                                                     |    1 
 debian/texlive-omega.override                                                                       |    4 
 debian/texlive-pictures-doc.override                                                                |    4 
 debian/texlive-pictures.links.dist                                                                  |    4 
 debian/texlive-pictures.override                                                                    |    4 
 debian/texlive-xetex.override                                                                       |    4 
 debian/texlive.NEWS                                                                                 |    6 
 debian/texlive.override                                                                             |    4 
 debian/tpm2deb-bin.pl                                                                               |  619 +
 debian/tpm2deb-bin.pl.old                                                                           |  916 +
 debian/tpm2deb.cfg                                                                                  |  669 +
 debian/tpm2debcommon.pm                                                                             |  847 +
 debian/tpm2liclines                                                                                 | 1318 ++
 debian/update-link-files.sh                                                                         |   43 
 debian/watch                                                                                        |    2 
 99 files changed, 29058 insertions(+)

    
download this patch

Patch contents

--- texlive-base-2009.orig/debian/texlive-fonts-recommended.override
+++ texlive-base-2009/debian/texlive-fonts-recommended.override
@@ -0,0 +1,9 @@
+texlive-fonts-recommended: zero-byte-file-in-doc-directory
+texlive-fonts-recommended: extra-license-file
+texlive-fonts-recommended: script-not-executable
+texlive-fonts-recommended: wrong-name-for-upstream-changelog
+texlive-fonts-recommended: unusual-interpreter ./usr/share/texmf-texlive/source/fonts/fpl/fpl/TeXPalladioL-BoldItalicOsF.pe #!fontforge
+texlive-fonts-recommended: unusual-interpreter ./usr/share/texmf-texlive/source/fonts/fpl/fpl/TeXPalladioL-BoldOsF.pe #!fontforge
+texlive-fonts-recommended: unusual-interpreter ./usr/share/texmf-texlive/source/fonts/fpl/fpl/TeXPalladioL-ItalicOsF.pe #!fontforge
+texlive-fonts-recommended: unusual-interpreter ./usr/share/texmf-texlive/source/fonts/fpl/fpl/TeXPalladioL-SC.pe #!fontforge
+texlive-fonts-recommended: unusual-interpreter ./usr/share/texmf-texlive/source/fonts/hfbright/simplify-rename.pe #!pfaedit
--- texlive-base-2009.orig/debian/tpm2liclines
+++ texlive-base-2009/debian/tpm2liclines
@@ -0,0 +1,1318 @@
+12many: not-in-catalogue
+a0poster: lppl (verification data:1.22b:1.22b:2006-02-08:norbusan:)
+aastex: lppl (verification data:5.2:5.2:2006-02-08:norbusan:)
+abbr: pd (unverified)
+abc: lppl (unverified)
+abstract: lppl (verification data:1.1:1.1:2006-02-08:norbusan:)
+abstyles: not-in-catalogue
+accfonts: gpl (unverified)
+achemso: lppl (unverified)
+acmconf: lppl (unverified)
+acmtrans: unknown (unverified)
+acronym: lppl (verification data:1.26:1.17:2006-03-07:frank:header)
+active-conf: lppl (unverified)
+adobeuro: not-in-catalogue
+adrconv: lppl (verification data:1.2c:1.2b:2006-03-07:frank:header)
+adrlist: unknown (unverified)
+ae: lppl (verification data:1.4:1.4:2007-05-29:frank:README)
+aeguill: lppl (unverified)
+aguplus: lppl (unverified)
+ai: not-in-catalogue
+aiaa: lppl (unverified)
+akletter: lppl (verification data:1.5i:1.5i:2006-02-08:norbusan:)
+alatex: gpl (unverified)
+albertus: not-in-catalogue
+aleph: unknown (unverified)
+alg: lppl (verification data:2001-03-13:2001-03-13:2006-02-08:norbusan:)
+algorithm2e: lppl (verification data:3.9:3.9:2006-02-08:norbusan:)
+algorithmicx: lppl (verification data:::2006-10-12:norbusan:algorithmicx.pdf)
+algorithms: lgpl (verification data::2005-07-05:2006-02-08:norbusan:)
+allrunes: lppl (unverified)
+alnumsec: lppl (verification data:v0.02:v0.02:2006-02-08:norbusan:)
+altfont: gpl (unverified)
+ams: not-in-catalogue
+amscls: lppl (unverified)
+amsfonts: lppl (unverified)
+amsltx2: not-in-catalogue
+amsmath: lppl (unverified)
+amsrefs: lppl (unverified)
+amstex: lppl (unverified)
+answers: unknown (unverified)
+antiqua: not-in-catalogue
+antomega: lppl (unverified)
+antp: pd (unverified)
+antt: gfsl (unverified)
+anysize: pd (unverified)
+apa: lppl (unverified)
+apacite: lppl (unverified)
+apl: unknown (unverified)
+appendix: lppl (verification data:1.2:1.2a:2006-07-24:frank:README)
+ar: dfsg (unverified)
+arabi: lppl (unverified)
+arabtex: lppl (unverified)
+archaic: lppl (unverified)
+arcs: lppl (verification data:1:1:2006-10-12:norbusan:arcs.dtx)
+arev: lppl (unverified)
+armenian: not-in-catalogue
+arphic: other-free (unverified)
+arrayjob: lppl (unverified)
+arydshln: lppl (verification data:1.71:1.71:2006-10-12:norbusan:arydshln.dtx)
+asaetr: pd (unverified)
+ascelike: lppl (verification data:1999-06-25:1999-06-25:2006-02-08:norbusan:)
+ascii: lppl (verification data:2.0::2006/06/19:auth:graham:)
+assignment: lppl (verification data:::2006-10-12:norbusan:README)
+astro: unknown (unverified)
+atqolive: not-in-catalogue
+attachfile: lppl (verification data:v1.3:1.2a:2006-10-12:norbusan:README)
+augie: lppl (verification data::2000-10-19:2006-02-08:norbusan:)
+aurical: lppl (verification data:1.4:2004-04-16:2006-02-08:norbusan:)
+aurora: nocommercial (unverified)
+authorindex: lppl (unverified)
+auto-pst-pdf: lppl (unverified)
+autotab: unknown (unverified)
+avantgar: gpl (unverified)
+babel: lppl (verification data:3.8h:3.8h:2006-04-28:frank:legal.bbl)
+babelbib: lppl (unverified)
+backgammon: other-free (unverified)
+bangtex: lppl (unverified)
+barcode2: not-in-catalogue
+barcodes: lppl (unverified)
+bardiag: lppl (unverified)
+barr: not-in-catalogue
+bayer: gpl (unverified)
+bbding: lppl (unverified)
+bbm: unknown (unverified)
+bbold: bsd (verification data:1.01:1.01:2006-03-14:frank:bbold.dtx,INSTALL)
+beamer: gpl (verification data:3.07:3.06:2006-01-29:graham:)
+beebe: not-in-catalogue
+begriff: gpl (verification data:1.6:1.6:2006-10-17:norbusan:header)
+belleek: pd (unverified)
+bengali: not-in-catalogue
+bera: nosell (unverified)
+betababel: lppl (unverified)
+beton: lppl (verification data::1.3:2006-07-24:frank:legal.txt)
+bez123: lppl1.3 (unverified)
+bezos: lppl (verification data::n/a:2006-07-24:frank:header)
+bghyphen: lppl (unverified)
+bibarts: gpl (unverified)
+bibhtml: gpl (unverified)
+bibleref: lppl (unverified)
+biblist: unknown (unverified)
+bibtex: dfsg (unverified)
+bibtopic: gpl (verification data:1.1a:1.1a:2006-10-17:norbusan:header)
+bibunits: lppl (verification data:2.2:2.4:2006-07-31::header)
+bigfoot: gpl (unverified)
+binomexp: lppl (unverified)
+biocon: gpl (unverified)
+bitfield: lppl (unverified)
+bizcard: gpl (unverified)
+blacklettert1: dfsg (unverified)
+blindtext: lppl (unverified)
+boites: gpl (unverified)
+bookhands: lppl (unverified)
+booklet: lppl (unverified)
+bookman: gpl (unverified)
+booktabs: gpl (verification data:1.61803:1.618:2006-07-31:frank:header)
+bophook: lppl (unverified)
+borceux: unknown (unverified)
+boxhandler: lppl (unverified)
+bpchem: lppl (unverified)
+braille: lppl (unverified)
+breakurl: lppl (unverified)
+breqn: unknown (unverified)
+bridge: unknown (unverified)
+brushscr: pd (unverified)
+burmese: lppl (unverified)
+bussproofs: lppl1.3 (verification data:1.0:1.0:2006-11-02:norbusan:header)
+bytefield: lppl (unverified)
+c-pascal: pd (unverified)
+c90enc: not-in-catalogue
+calendar: nosell (unverified)
+calligra: unknown (unverified)
+calrsfs: unknown (unverified)
+calxxxx: pd (unverified)
+camel: unknown (unverified)
+captcont: lppl (unverified)
+caption: lppl (verification data:3.0q:3.0c,3.1:2006-03-15:frank:header)
+carlisle: lppl (unverified)
+casyl: unknown (unverified)
+cb: lppl (unverified)
+cbcoptic: lppl (unverified)
+cc-pl: pd (unverified)
+ccaption: lppl (verification data:3.2a:3.2a:2006-11-09:norbusan:README)
+ccfonts: lppl (verification data:1.1:1.1:2006-03-14:frank:readme)
+cchess: unknown (unverified)
+cd-cover: gpl (unverified)
+cd: unknown (unverified)
+cdpbundl: lppl (verification data:0.34:0.34:2006-11-09:norbusan:manifest.txt)
+cellspace: lppl (unverified)
+cellular: unknown (unverified)
+changebar: lppl (verification data:3.5c:3.4g:2006-08-21:frank:changebar.dtx)
+chappg: lppl (unverified)
+chapterfolder: lppl (unverified)
+charter: other (verification data:::2006-05-03:frank:readme.charter)
+chem-journal: gpl (unverified)
+chemarrow: unknown (unverified)
+chemcompounds: lppl (unverified)
+chemcono: lppl (unverified)
+cheq: nosell (unverified)
+cherokee: unknown (unverified)
+chess: pd (unverified)
+china2e: unknown (unverified)
+circ: gpl (unverified)
+cirth: unknown (unverified)
+cite: dfsg (unverified)
+citeref: lppl (unverified)
+cjhebrew: lppl (unverified)
+CJK: gpl (unverified)
+cjw: unknown (unverified)
+clarendo: not-in-catalogue
+clefval: lppl (verification data:::2006-11-09:norbusan:header)
+clock: dfsg (unverified)
+clrscode: lppl (unverified)
+cm-lgc: gpl (unverified)
+cm-super: gpl (unverified)
+cm: knuth (unverified)
+cmap: lppl (unverified)
+cmarrows: lppl (unverified)
+cmastro: unknown (unverified)
+cmbright: lppl (verification data:8.1:7.1,8.1:2006-03-15:frank:README)
+cmcyr: pd (unverified)
+cmcyralt: not-in-catalogue
+cmdtrack: dfsg (unverified)
+cmex: not-in-catalogue
+cmextra: not-in-catalogue
+cmll: lppl (unverified)
+cmpica: unknown (unverified)
+cmsd: lppl (unverified)
+cns: not-in-catalogue
+codepage: unknown (unverified)
+colorinfo: lppl (unverified)
+colorsep: pd (unverified)
+colortab: unknown (unverified)
+colortbl: lppl (unverified)
+combine: lppl (unverified)
+commath: lppl (unverified)
+comment: gpl (unverified)
+compactbib: lppl (unverified)
+complexity: lppl (unverified)
+computational-complexity: lppl (unverified)
+concmath: lppl (verification data:1999/03/18:1999/03/18:2006-03-30:frank:README)
+concprog: gpl (unverified)
+concrete: knuth (unverified)
+context: nocommercial (unverified)
+contour: lppl (unverified)
+cooking: gpl (unverified)
+cool: lgpl (unverified)
+coollist: lgpl (unverified)
+coolstr: lgpl (unverified)
+cooltooltips: lppl (unverified)
+coordsys: lppl (verification data:1.4:1.4:2006-11-09:norbusan:README)
+coronet: not-in-catalogue
+count1to: lppl (unverified)
+courier-scaled: lppl (unverified)
+courier: gpl (unverified)
+courseoutline: unknown (unverified)
+coursepaper: unknown (unverified)
+coverpage: lppl (unverified)
+covington: pd (unverified)
+croatian: unknown (unverified)
+crop: lppl (unverified)
+crossreference: lppl (unverified)
+crosswrd: unknown (unverified)
+cryst: dfsg (unverified)
+cs: gpl (unverified)
+cslatex: gpl (unverified)
+csplain: other (unverified)
+csquotes: lppl (unverified)
+csvtools: lppl (unverified)
+ctable: lppl (unverified)
+ctib: gpl (unverified)
+cuisine: lppl (unverified)
+currvita: gpl (unverified)
+cursor: unknown (unverified)
+curve: lppl (unverified)
+curve2e: lppl (unverified)
+curves: lppl (verification data:1.50:1.50:2006-03-15:frank:header)
+custom-bib: lppl (verification data:4.20:4.14:2006-03-15:frank:header)
+cv: gpl (unverified)
+cweb: knuth (unverified)
+cwpuzzle: not-in-catalogue
+cyrillic: lppl (verification data:::2006-03-15:frank:00readme.txt,header)
+cyrplain: lppl (unverified)
+dancers: unknown (unverified)
+dashbox: lppl (unverified)
+dashrule: lppl (unverified)
+dateiliste: lppl (unverified)
+datenumber: lppl (unverified)
+datetime: lppl (unverified)
+dcpic: gpl (unverified)
+decimal: lppl (unverified)
+deleq: nosell (unverified)
+diagnose: gpl (unverified)
+dialogl: unknown (unverified)
+dice: lppl (unverified)
+dichokey: pd (unverified)
+dictsym: lppl (unverified)
+digiconfigs: lppl (unverified)
+dinat: pd (unverified)
+dinbrief: lppl (unverified)
+dingbat: lppl (verification data:1.0:1.0:2006-11-09:norbusan:README)
+directory: lppl (unverified)
+dk-bib: dfsg (unverified)
+dnaseq: lppl (unverified)
+docmfp: lppl (unverified)
+doipubmed: lppl (unverified)
+dotseqn: unknown (unverified)
+dottex: gpl (unverified)
+doublestroke: dfsg (unverified)
+dpfloat: lppl (verification data::2006-10-05:2006-11-09:norbusan:dpfloat.sty)
+draftcopy: lppl (unverified)
+draftwatermark: lppl (unverified)
+dramatist: gpl (verification data:1.2d:1.2d:2006-11-09:norbusan:dramatist.dtx)
+dratex: lppl (unverified)
+dropping: nosell (unverified)
+dtk: not-in-catalogue
+duerer: unknown (unverified)
+dvdcoll: lppl (verification data:v1.1:0.6a:2006-11-02:norbusan:README)
+dvips: gpl (unverified)
+dvipsconfig: gpl (unverified)
+dyntree: lgpl (unverified)
+ean: gpl (unverified)
+easy: lppl (unverified)
+ebezier: lppl (unverified)
+ebong: pd (unverified)
+ebsthesis: lppl (verification data:1.0:0.9i:2006-11-09:norbusan:LICENSE)
+ec: lppl (unverified)
+eCards: lppl (unverified)
+ecc: lppl (unverified)
+ecltree: lppl (unverified)
+eco: gpl (unverified)
+economic: lppl (unverified)
+edmac: lppl (unverified)
+ednotes: lppl (unverified)
+eemeir: lppl (unverified)
+eepic: dfsg (unverified)
+egameps: lppl (unverified)
+egplot: gpl (verification data:1.02a:1.02a:2006-11-09:norbusan:README)
+eiad: unknown (unverified)
+eijkhout: unknown (unverified)
+ellipsis: lppl (unverified)
+elmath: lppl (unverified)
+elpres: lppl (unverified)
+elsevier-bib: lppl (unverified)
+elsevier: lppl (unverified)
+elvish: dfsg (unverified)
+em: not-in-catalogue
+emp: gpl (unverified)
+empheq: lppl (unverified)
+emulateapj: lppl (unverified)
+enctex: gpl (unverified)
+endfloat: gpl (verification data:2.4i:2.4i:2006-03-31:frank:readme.enf)
+endheads: lppl (unverified)
+engpron: lppl (unverified)
+engrec: lppl (unverified)
+enumitem: dfsg (unverified)
+envbig: unknown (unverified)
+envlab: lppl (unverified)
+epigraph: lppl (unverified)
+epiolmec: lppl (unverified)
+eplain: dfsg (unverified)
+epsdice: lppl (unverified)
+epsf: pd (unverified)
+eqlist: unknown (unverified)
+eqname: unknown (unverified)
+eqnarray: unknown (unverified)
+eqparbox: lppl (unverified)
+esdiff: unknown (unverified)
+ESIEEcv: lppl (unverified)
+esint-type1: pd (unverified)
+esint: pd (unverified)
+eskd: lppl (unverified)
+eskdx: lppl1.3 (verification data:0.97:0.96:2006-11-05:norbusan:README)
+eso-pic: lppl (unverified)
+esvect: gpl (unverified)
+etaremune: lppl (unverified)
+etex: other (unverified)
+ethiop-t1: gpl (unverified)
+ethiop: gpl (unverified)
+euenc: lppl (unverified)
+euler: lppl (unverified)
+eulervm: lppl (verification data:4.0:4.0:2006-03-28:frank:README.eulervm)
+euro-ce: not-in-catalogue
+euro: lppl (unverified)
+eurofont: other (unverified)
+europecv: lppl (unverified)
+eurosans: lppl (unverified)
+eurosym: other (unverified)
+euxm: not-in-catalogue
+everypage: lppl (unverified)
+everysel: lppl (unverified)
+everyshi: lppl (unverified)
+exam: lppl (unverified)
+examdesign: lppl (unverified)
+examplep: gpl (unverified)
+exercise: gpl (unverified)
+expdlist: lppl (unverified)
+expl3: lppl (unverified)
+export: lppl (unverified)
+expressg: lppl (unverified)
+extarrows: lgpl (unverified)
+exteps: gpl (unverified)
+extpfeil: lppl (unverified)
+extract: lppl (verification data:1.8:1.8:2006-11-09:norbusan:README)
+extsizes: lppl (unverified)
+facsimile: lppl (unverified)
+faktor: lppl (unverified)
+fancybox: artistic (unverified)
+fancyhdr: lppl (verification data:3.1:3.1:2006-03-31:frank:README)
+fancynum: dfsg (unverified)
+fancyref: gpl (unverified)
+fancyvrb: artistic (verification data:1998/07/17:1998/07/17:2006-03-31:frank:fancyvrb.dtx,contrib/fvrb-ex.dtx)
+fax: unknown (unverified)
+fc: gpl (unverified)
+featpost: gpl (unverified)
+feyn: gpl (unverified)
+feynmf: gpl (unverified)
+figbib: lppl (unverified)
+figsize: lppl (unverified)
+filecontents: lppl (verification data:1.1a:1.1a:2006-11-09:norbusan:README)
+finbib: not-in-catalogue
+fink: lppl (unverified)
+fixfoot: lppl (unverified)
+fixme: lppl (unverified)
+fixpdfmag: pd (unverified)
+flabels: lppl (unverified)
+flagderiv: gpl (unverified)
+flashcards: gpl (unverified)
+flippdf: lppl (unverified)
+float: lppl (unverified)
+floatflt: nosell (unverified)
+floatrow: lppl (unverified)
+flowfram: lppl (unverified)
+fltpoint: dfsg (unverified)
+fmp: lppl (unverified)
+fmtcount: lppl (unverified)
+fnbreak: lppl (unverified)
+fncychap: dfsg (unverified)
+foekfont: gpl (unverified)
+foilhtml: lppl (unverified)
+fontch: lppl (unverified)
+fontinst: lppl (verification data:1.928:1.928:2006-02-23:frank:header)
+fontname: gpl (unverified)
+fontspec: lppl (unverified)
+footbib: lppl (verification data:2.0.4:2.0.4:2006-11-09:norbusan:footbib.dtx)
+footmisc: lppl (unverified)
+footnpag: gpl (unverified)
+forloop: lgpl (unverified)
+formlett: unknown (unverified)
+formula: gpl (unverified)
+formular: lppl (unverified)
+fourier: lppl (unverified)
+fp: lppl (unverified)
+fpl: gpl (verification data:1.002:1.002:2006-05-04:frank:README)
+frcursive: gpl (unverified)
+frenchle: lppl (unverified)
+fribrief: unknown (unverified)
+fullblck: unknown (unverified)
+fullpict: unknown (unverified)
+functan: lppl (unverified)
+fundus: unknown (unverified)
+futhark: unknown (unverified)
+g-brief: lppl (unverified)
+galley: not-in-catalogue
+galois: lppl (unverified)
+garamond: not-in-catalogue
+garuda: not-in-catalogue
+gastex: lppl (unverified)
+gatech-thesis: gpl (unverified)
+gauss: lppl (unverified)
+genealogy: lppl (unverified)
+genmisc: not-in-catalogue
+genmpage: lppl (unverified)
+geometry: lppl (unverified)
+geomsty: unknown (unverified)
+german: lppl (unverified)
+germbib: unknown (unverified)
+ginpenc: lppl (unverified)
+gloss: lppl (unverified)
+glossary: lppl (unverified)
+glyphlist: not-in-catalogue
+gmdoc: lppl (unverified)
+gmiflink: lppl (unverified)
+gmutils: lppl (unverified)
+gmverb: lppl (unverified)
+gnuplottex: gpl (verification data:0.2:0.2:2006-11-02:norbusan:header)
+go: pd (unverified)
+gost: lppl (unverified)
+gothic: unknown (unverified)
+graphics: lppl (unverified)
+graphicx-psmin: lppl (unverified)
+greek: not-in-catalogue
+greektex: pd (unverified)
+greenpoint: gpl (unverified)
+grfpaste: lppl (unverified)
+grnumalt: unknown (unverified)
+groff: not-in-catalogue
+grotesq: not-in-catalogue
+grtimes: unknown (unverified)
+grverb: not-in-catalogue
+GuIT: not-in-catalogue
+guitar: unknown (unverified)
+gustlib: pd (unverified)
+HA-prosper: lppl (unverified)
+hands: unknown (unverified)
+hanging: lppl (unverified)
+harpoon: unknown (unverified)
+harvard: unknown (unverified)
+harvmac: unknown (unverified)
+hatching: pd (unverified)
+hc: dfsg (unverified)
+helvetic: gpl (unverified)
+hepparticles: lppl (unverified)
+hepthesis: lppl (unverified)
+hepunits: lppl (unverified)
+hfbright: lppl (unverified)
+hfoldsty: gpl (unverified)
+hhtensor: lppl (unverified)
+hieroglf: lppl (unverified)
+hilowres: unknown (unverified)
+histogr: lppl1.3 (verification data:1.01:1.01:2006-11-09:norbusan:histogr.dtx)
+hitec: unknown (unverified)
+hpsdiss: gpl (unverified)
+hrlatex: lppl (unverified)
+hvfloat: lppl (unverified)
+hvmath: lppl (unverified)
+hyper: lppl (unverified)
+hyperref: lppl (unverified)
+hyperxmp: lppl (unverified)
+hyphenat: lppl (unverified)
+hyplain: pd (unverified)
+ibycus-babel: lppl (unverified)
+ibycus: gpl (unverified)
+ibygrk: gpl (unverified)
+icsv: lppl (unverified)
+IEEEconf: lppl (unverified)
+ieeepes: lppl (unverified)
+IEEEtran: lppl (unverified)
+ifacmtg: other (unverified)
+ifmslide: dfsg (unverified)
+ifsym: dfsg (unverified)
+ifxetex: lppl (unverified)
+ijqc: lppl (unverified)
+imac: gpl (unverified)
+index: dfsg (unverified)
+inlinebib: lppl (unverified)
+insbox: pd (unverified)
+interactiveworkbook: lppl (unverified)
+invoice: dfsg (unverified)
+iopart-num: lppl (unverified)
+ipa: unknown (unverified)
+iso: not-in-catalogue
+iso10303: not-in-catalogue
+isodate: lppl (unverified)
+isorot: lppl (unverified)
+isotope: lppl (unverified)
+itrans: not-in-catalogue
+iwona: gfsl (unverified)
+jadetex: dfsg (unverified)
+jhep: unknown (unverified)
+jknapltx: gpl (unverified)
+jmn: not-in-catalogue
+jneurosci: lppl (unverified)
+jpsj: lppl (unverified)
+jsmisc: not-in-catalogue
+jura: gpl (unverified)
+juraabbrev: gpl (unverified)
+jurabib: gpl (verification data:0.6:0.6:2006-11-09:norbusan:jurabib.dtx)
+juramisc: lppl (unverified)
+jurarsp: gpl (unverified)
+kalender: unknown (unverified)
+karnaugh: lppl (unverified)
+kastrup: dfsg (unverified)
+kdgreek: unknown (unverified)
+kerkis: lppl (unverified)
+kerntest: lppl (unverified)
+keystroke: gpl (unverified)
+kixfont: not-in-catalogue
+kluwer: not-in-catalogue
+knuthotherfonts: not-in-catalogue
+koma-script: lppl (unverified)
+labbook: lppl (unverified)
+labelcas: lppl (unverified)
+labels: lppl (unverified)
+lambda: not-in-catalogue
+lastpage: gpl (unverified)
+latex-fonts: lppl (unverified)
+latex-tds: lppl (unverified)
+latex: lppl (verification data::2e:2006-04-25:frank:legal.txt)
+latexconfig: not-in-catalogue
+latexmp: pd (unverified)
+layouts: lppl (unverified)
+lazylist: lppl (unverified)
+lcd: lppl (verification data:0.3:0.3:2006-11-09:norbusan:00readme)
+lcg: lppl (unverified)
+leaflet: lppl (unverified)
+ledmac: lppl (unverified)
+leftidx: lppl (unverified)
+lettre: lppl (unverified)
+lettrgth: not-in-catalogue
+lettrine: lppl (unverified)
+levy: not-in-catalogue
+lewis: pd (unverified)
+lexikon: lppl (unverified)
+lfb: lppl (unverified)
+lgreek: unknown (unverified)
+lh: lppl (unverified)
+lhcyr: other (unverified)
+lhelp: gpl (unverified)
+limap: lppl (unverified)
+linearA: not-in-catalogue
+lineno: lppl (unverified)
+linguex: lppl (unverified)
+lipsum: lppl (unverified)
+listbib: gpl (unverified)
+listings: lppl (verification data:1.4:1.4:2007-03-02:frank:README)
+listliketab: lppl (unverified)
+listofsymbols: lppl (unverified)
+literat: not-in-catalogue
+lkproof: gpl (unverified)
+lm: gfsl (unverified)
+lmextra: not-in-catalogue
+localloc: dfsg (unverified)
+logic: unknown (unverified)
+logpap: lppl (unverified)
+lsc: lppl (unverified)
+ltablex: unknown (unverified)
+ltabptch: lppl (unverified)
+ltxindex: gpl (unverified)
+ltxmisc: unknown (unverified)
+ly1: unknown (unverified)
+mafr: gpl (unverified)
+magyar: lppl (unverified)
+mailing: lppl (unverified)
+makebox: lppl (unverified)
+makecell: lppl (unverified)
+makecirc: lppl (unverified)
+makecmds: lppl (unverified)
+makedtx: lppl (unverified)
+makeglos: gpl (unverified)
+makeindex: dfsg (unverified)
+makeplot: lppl (unverified)
+malayalam: not-in-catalogue
+manfnt: lppl (unverified)
+manjutex: gpl (unverified)
+manuscript: lppl (unverified)
+mapcodes: other (unverified)
+maple: unknown (unverified)
+marginnote: lppl (unverified)
+marigold: not-in-catalogue
+marvosym: gpl (unverified)
+mathcomp: lppl (unverified)
+mathdesign: gpl (unverified)
+mathdots: lppl (unverified)
+mathpazo: gpl (unverified)
+maybemath: lppl (verification data:::2006-11-09:norbusan:README)
+mcaption: lppl (unverified)
+mceinleger: gpl (unverified)
+mcite: gpl (unverified)
+mdwtools: gpl (unverified)
+memoir: lppl (unverified)
+mentis: lppl (unverified)
+menu: unknown (unverified)
+metafont: not-in-catalogue
+metaobj: lppl (verification data:0.83:0.83:2006-11-09:norbusan:README)
+metaplot: lppl (verification data:0.91:0.91:2006-11-09:norbusan:README)
+metapost: unknown (unverified)
+metatex: gpl (unverified)
+metauml: gpl (unverified)
+method: lppl (unverified)
+metre: lppl (unverified)
+mex: pd (unverified)
+mff: unknown (unverified)
+mflogo: lppl (unverified)
+mfnfss: lppl (unverified)
+mfpic: lppl (unverified)
+mft: not-in-catalogue
+mftinc: lppl (unverified)
+mftoeps: not-in-catalogue
+mh: lppl (unverified)
+mhchem: lppl (unverified)
+mhequ: dfsg (unverified)
+mhs: other (unverified)
+microtype: lppl (unverified)
+midnight: unknown (unverified)
+miller: lppl (unverified)
+minipage-marginpar: lppl (unverified)
+miniplot: lppl (unverified)
+minitoc: lppl (unverified)
+minutes: dfsg (unverified)
+misc: not-in-catalogue
+misc209: not-in-catalogue
+mkind-english: not-in-catalogue
+mkind-german: not-in-catalogue
+mla-paper: bsd (unverified)
+mltex: unknown (unverified)
+mnras: nosell (unverified)
+moderncv: lppl (unverified)
+modroman: lppl (unverified)
+montex: gpl (unverified)
+morehelp: other (unverified)
+moresize: lppl (unverified)
+moreverb: lppl (unverified)
+morse: nosell (unverified)
+movie15: lppl (verification data::2006-10-12:2006-11-02:norbusan:README)
+mp3d: not-in-catalogue
+mparhack: gpl (unverified)
+mpattern: pd (unverified)
+msc: lppl (unverified)
+msg: lppl (unverified)
+mslapa: unknown (unverified)
+mtgreek: lppl (unverified)
+multenum: unknown (unverified)
+multi: not-in-catalogue
+multibbl: lppl (unverified)
+multibib: lppl (unverified)
+multicap: lppl (unverified)
+multido: lppl (unverified)
+multirow: lppl (unverified)
+multitoc: lppl (unverified)
+munich: lppl (unverified)
+musictex: unknown (unverified)
+musixlyr: unknown (unverified)
+musixps: not-in-catalogue
+musixtex: gpl (unverified)
+muthesis: lppl (unverified)
+mwcls: lppl (verification data:0.65:0.65:2006-11-09:norbusan:README)
+mwrite: other (unverified)
+mxd: unknown (unverified)
+mxedruli: unknown (unverified)
+nag: lppl (unverified)
+namespc: lppl (unverified)
+natbib: lppl (unverified)
+nath: gpl (unverified)
+nature: unknown (unverified)
+ncclatex: lppl (unverified)
+ncctools: lppl (unverified)
+ncntrsbk: not-in-catalogue
+newalg: unknown (unverified)
+newfile: lppl (unverified)
+newlfm: lppl (unverified)
+newsletr: other-free (unverified)
+newthm: unknown (unverified)
+newvbtm: lppl (unverified)
+niceframe: unknown (unverified)
+nih: lppl (unverified)
+nkarta: unknown (unverified)
+noitcrul: lppl (unverified)
+nomencl: lppl (unverified)
+nomentbl: lppl (unverified)
+nonfloat: pd (unverified)
+norasi: not-in-catalogue
+notes: lppl (unverified)
+nrc: lppl (unverified)
+ntabbing: dfsg (unverified)
+ntgclass: lppl (unverified)
+ntheorem: lppl (unverified)
+numline: unknown (unverified)
+numprint: lppl (unverified)
+oberdiek: lppl (verification data:::2006-11-03:norbusan:)
+objectz: lppl (unverified)
+oca: unknown (unverified)
+ocherokee: lppl (unverified)
+ocr-a: nosell (unverified)
+ocr-latex: gpl (unverified)
+octavo: lppl (unverified)
+oesch: unknown (unverified)
+ofs: knuth (unverified)
+ogham: unknown (unverified)
+ogonek: other (unverified)
+oinuit: lppl (unverified)
+oldstyle: lppl (unverified)
+omega-devanagari: unknown (unverified)
+omega: gpl (unverified)
+onlyamsmath: lppl (unverified)
+opcit: lppl (unverified)
+optima: not-in-catalogue
+ordinalpt: lppl (unverified)
+osa: unknown (unverified)
+osmanian: unknown (unverified)
+ot2cyr: unknown (unverified)
+othello: gpl (unverified)
+otibet: not-in-catalogue
+outline: unknown (unverified)
+outliner: gpl (unverified)
+overpic: lppl (unverified)
+oxford: nosell (unverified)
+pacioli: lppl (unverified)
+pageno: other (unverified)
+pagenote: lppl (unverified)
+palatino: gpl (unverified)
+paper: unknown (unverified)
+papercdcase: lppl (unverified)
+papertex: lppl (unverified)
+paralist: lppl (unverified)
+parallel: lppl (unverified)
+paresse: lppl (unverified)
+parrun: lppl (unverified)
+passivetex: dfsg (unverified)
+patch: lppl (unverified)
+patchcmd: pd (unverified)
+pauldoc: lppl (unverified)
+pawpict: gpl (unverified)
+pb-diagram: dfsg (unverified)
+pbox: gpl (unverified)
+pbsheet: lppl (unverified)
+pclnfss: unknown (unverified)
+pdcmac: gpl (unverified)
+pdf-trans: pd (unverified)
+pdfcprot: lppl (unverified)
+pdfpages: lppl (unverified)
+pdfscreen: lppl (verification data:1.5:1.5:2006-11-09:norbusan:header)
+pdfslide: lppl (unverified)
+pdfsync: lppl (unverified)
+pdftex-def: lppl (unverified)
+pdftricks: gpl (unverified)
+pdfwin: not-in-catalogue
+pecha: gpl (unverified)
+perception: lppl (unverified)
+perltex: lppl (unverified)
+permute: lppl (unverified)
+petri-nets: gpl (unverified)
+pgf: lppl1.3 (verification data:1.10:1.10:2006-11-02:norbusan:LICENSE)
+phaistos: lppl (unverified)
+philokalia: lppl (unverified)
+phonetic: unknown (unverified)
+photo: lppl (unverified)
+physe: unknown (unverified)
+phyzzx: unknown (unverified)
+picinpar: gpl (unverified)
+pict2e: lppl (unverified)
+pictex: unknown (unverified)
+pictex2: lppl (unverified)
+piechartmp: lppl (unverified)
+pittetd: unknown (unverified)
+pl: unknown (unverified)
+placeins: pd (unverified)
+plain: knuth (unverified)
+plari: gpl (unverified)
+plates: lppl (unverified)
+platex: lppl (unverified)
+play: lppl (unverified)
+plgraph: not-in-catalogue
+plnfss: lppl (unverified)
+plweb: not-in-catalogue
+pmgraph: unknown (unverified)
+poemscol: lppl (unverified)
+polyglot: not-in-catalogue
+polynom: lppl (unverified)
+polytable: lppl (verification data:0.8.2:0.8.2:2006-11-09:norbusan:README)
+postcards: lppl (unverified)
+powerdot: lppl (unverified)
+ppower4: gpl (unverified)
+ppr-prv: lppl (unverified)
+pracjourn: gpl (unverified)
+prelim2e: lppl (unverified)
+preprint: lppl (unverified)
+prettyref: unknown (unverified)
+preview: gpl (verification data:11.84:11.81:2006-04-21:frank:header)
+probsoln: lppl (unverified)
+procIAGssymp: lppl (verification data:::2006-11-09:norbusan:procIAGssymp.sty)
+progkeys: unknown (unverified)
+program: gpl (unverified)
+progress: lppl (unverified)
+prosper: lppl (unverified)
+protocol: lppl1.3 (verification data:1.9:1.9:2006-11-03:norbusan:readme)
+psafm: not-in-catalogue
+pseudocode: lppl (unverified)
+psfig: nosell (unverified)
+psfrag: dfsg (unverified)
+psfragx: lppl (unverified)
+psgo: lppl (unverified)
+psizzl: lppl (unverified)
+pslatex: lppl (unverified)
+psnfss: lppl (verification data:9.2a:9.2:2006-05-02:frank:psfonts.dtx)
+psnfssx: lppl (unverified)
+pspicture: lppl (unverified)
+pst-3d: lppl (verification data:1.0:1.0:2003-03-28:frank:header)
+pst-3dplot: lppl (unverified)
+pst-bar: lppl (verification data:::2006-11-09:norbusan:LICENSE)
+pst-barcode: lppl (unverified)
+pst-blur: lppl (unverified)
+pst-circ: lppl (unverified)
+pst-coil: lppl (unverified)
+pst-dbicons: lppl (unverified)
+pst-eps: lppl (unverified)
+pst-eucl: lppl (unverified)
+pst-fill: lppl (unverified)
+pst-fr3d: lppl (unverified)
+pst-func: lppl (unverified)
+pst-geo: lppl (unverified)
+pst-ghsb: not-in-catalogue
+pst-gr3d: lppl (unverified)
+pst-grad: lppl (unverified)
+pst-infixplot: lppl (unverified)
+pst-jtree: lppl (unverified)
+pst-labo: lppl (verification data:2.03:2.03:2006-11-02:norbusan:header)
+pst-lens: lppl (unverified)
+pst-light3d: lppl (unverified)
+pst-math: lppl (unverified)
+pst-optic: dfsg (unverified)
+pst-osci: lppl (unverified)
+pst-pdf: lppl (unverified)
+pst-pdgr: lppl (unverified)
+pst-poly: lppl (verification data:1.60:1.60:2006-03-27:frank:header)
+pst-slpe: lppl (unverified)
+pst-text: lppl (unverified)
+pst-uml: lppl (unverified)
+pst-vue3d: lppl (unverified)
+pstricks-add: lppl (unverified)
+pstricks: lppl (unverified)
+ptptex: unknown (unverified)
+punk: knuth (unverified)
+pxfonts: gpl (unverified)
+qcm: lppl (unverified)
+qfonts: gpl (unverified)
+qobitree: unknown (unverified)
+qpxqtx: not-in-catalogue
+qsymbols: gpl (unverified)
+qtree: lppl (unverified)
+quotchap: lppl (unverified)
+r-und-s: dfsg (unverified)
+ragged2e: lppl (unverified)
+randbild: lppl (unverified)
+randtext: lppl (unverified)
+rccol: dfsg (unverified)
+rcs: gpl (unverified)
+rcsinfo: lppl (unverified)
+realcalc: nosell (unverified)
+rectopma: lppl (unverified)
+refcheck: gpl (unverified)
+refman: lppl (unverified)
+refstyle: lppl (unverified)
+regcount: lppl (verification data:1.0:1.0:2006-11-09:norbusan:regcount.dtx)
+register: lppl (verification data:1.5:1.4:2006-11-09:norbusan:register.dtx)
+relenc: unknown (unverified)
+repeatindex: lppl (unverified)
+resume: lppl (unverified)
+revtex: lppl (unverified)
+rlepsf: lppl (unverified)
+rmpage: unknown (unverified)
+robustcommand: lppl (unverified)
+robustindex: lppl (unverified)
+roex: not-in-catalogue
+romannum: lppl (unverified)
+rotating: lppl (unverified)
+rotfloat: lppl (unverified)
+rotpages: lppl (unverified)
+rsc: gpl (verification data:1.1:2006-10-30:2006-11-09:norbusan:header)
+rsfs: lppl (unverified)
+rst: nocommercial (unverified)
+rtkinenc: lppl (verification data:1.0:1.0:2006-11-05:norbusan:rtkinenc.ins)
+rtklage: not-in-catalogue
+ruhyphen: lppl (unverified)
+sae: nosell (unverified)
+sanskrit: lppl (unverified)
+sauerj: lppl (unverified)
+sauter: unknown (unverified)
+sauterfonts: gpl (verification data:::2006-11-05:norbusan:sauterfonts.fdd)
+savefnmark: gpl (verification data:1.0:1.0:2006-11-05:norbusan:savefnmark.dtx)
+savesym: lppl (verification data:1.1:1.1:2006-11-05:norbusan:header)
+savetrees: lppl (verification data:1.2:1.1:2006-11-05:norbusan:README)
+scale: gpl (verification data:1.1.2:1.1.2:2006-11-05:norbusan:README)
+scalebar: lppl (verification data:1.0:1.0:2006-11-05:norbusan:header)
+schedule: unknown (unverified)
+scientificpaper: lppl (unverified)
+sciposter: lppl (unverified)
+sciwordconv: lppl (unverified)
+screenplay: gpl (verification data:1.535:1.518:2006-11-03:norbusan:header)
+script: unknown (unverified)
+sectionbox: lppl (unverified)
+sectsty: lppl (unverified)
+semantic: lppl (unverified)
+semaphor: gpl (verification data:::2006-11-05:norbusan:README)
+seminar: lppl (unverified)
+semioneside: lppl (unverified)
+seqsplit: lppl (verification data:0.1:0.1:2006-11-05:norbusan:README)
+setspace: pd (unverified)
+sf298: lppl (unverified)
+sffms: lppl (verification data:2.0:2.0:2006-11-05:norbusan:header)
+sgame: lppl (unverified)
+shadbox: other (unverified)
+shadethm: lppl (unverified)
+shapepar: nocommercial (unverified)
+shortlst: unknown (unverified)
+shorttoc: lppl (verification data:1.3:1.3:2006-11-05:norbusan:header)
+showdim: unknown (unverified)
+showexpl: lppl (unverified)
+showlabels: gpl (verification data:1.6:1.6:2006-11-05:norbusan:README)
+sidecap: lppl (verification data:1.6f:1.6f:2006-11-05:norbusan:header)
+sides: gpl (unverified)
+siggraph: other (unverified)
+simpsons: unknown (unverified)
+SIstyle: lppl (unverified)
+SIunits: lppl (unverified)
+skak: lppl (unverified)
+skaknew: lppl (unverified)
+skull: gpl (verification data:0.1:0.1:2006-11-05:norbusan:header)
+slantsc: lppl (unverified)
+slashbox: unknown (unverified)
+slidenotes: unknown (unverified)
+slideshow: other (unverified)
+smalltableof: lppl (verification data:::2006-11-05:norbusan:README)
+smartref: lppl (verification data:1.9:1.9:2006-11-05:norbusan:header)
+smflatex: unknown (unverified)
+snapshot: lppl (unverified)
+songbook: lgpl-2.1 (unverified)
+sort-by-letters: lppl (unverified)
+soul: lppl (verification data:2.4:2.4:2006-11-05:norbusan:soul.txt)
+soyombo: unknown (unverified)
+sparklines: lppl (unverified)
+spie: lppl (unverified)
+splines: lppl1.3 (verification data:0.2:0.2:2006-11-05:norbusan:README)
+splitbib: lppl (unverified)
+splitindex: dfsg (unverified)
+spotcolor: lppl (unverified)
+sprite: unknown (unverified)
+srcltx: pd (verification data:1.6:1.5:2006-11-05:norbusan:header)
+sseq: lppl (verification data:1.03:1.03:2006-11-05:norbusan:sseq.dtx)
+ssqquote: dfsg (unverified)
+stack: lppl (verification data:1.00:1.00:2006-11-05:norbusan:stack.dtx)
+stage: lppl1.3 (verification data:::2006-11-05:norbusan:header)
+startex: unknown (unverified)
+statistik: gpl (unverified)
+stdclsdv: lppl (verification data:1.1:1.1:2006-11-05:norbusan:README)
+stdpage: lppl1.2 (verification data:0.6:0.6:2006-11-05:norbusan:header)
+stellenbosch: lppl (unverified)
+stmaryrd: lppl (unverified)
+struktex: lppl (unverified)
+sttools: lppl (unverified)
+subeqn: lppl (verification data:2.0b:2.0b:2006-11-05:norbusan:header)
+subeqnarray: lppl (verification data:2.1c:2.1c:2006-11-05:norbusan:header)
+subfig: lppl (unverified)
+subfigure: lppl (unverified)
+subfloat: lppl (verification data:2.14:2.14:2006-11-05:norbusan:README)
+substr: lppl (verification data:1.1:1.1:2006-11-05:norbusan:README)
+sudoku: lppl (unverified)
+sudokubundle: lppl (unverified)
+sugconf: lppl (unverified)
+supertabular: lppl (unverified)
+svgcolor: lppl (unverified)
+svn-multi: dfsg (unverified)
+svn: lppl (unverified)
+svninfo: lppl (unverified)
+swebib: lppl1.2 (verification data:::2006-11-05:norbusan:header)
+swimgraf: lppl (unverified)
+symbol: gpl (unverified)
+syntax: gpl (verification data:::2006-11-05:norbusan:README)
+syntrace: lppl (unverified)
+synttree: lppl (unverified)
+t-angles: gpl (unverified)
+t2: lppl (unverified)
+Tabbing: lppl (unverified)
+tableaux: unknown (unverified)
+tabto-ltx: lppl (unverified)
+tabulary: lppl (unverified)
+tabvar: lppl (unverified)
+talk: lppl (unverified)
+tap: pd (unverified)
+tapir: gpl (unverified)
+taupin: not-in-catalogue
+tcldoc: not-in-catalogue
+technics: lppl (unverified)
+template: not-in-catalogue
+tengwarscript: lppl (unverified)
+tensor: lppl (verification data:2.1:2.1:2006-11-02:norbusan:header)
+teubner: lppl (verification data:2.2c:2.2b:2006-11-02:norbusan:teubner.txt)
+tex-gyre: gfsl (unverified)
+tex-ps: pd (unverified)
+tex4ht: lppl (unverified)
+texdraw: dfsg (unverified)
+texinfo: gpl (verification data:2007-05-04.09:4.8:2006-04-25:frank:header)
+texlogos: lppl (unverified)
+texmate: lppl (unverified)
+texpower: gpl (unverified)
+texshade: gpl (unverified)
+texsis: lppl (unverified)
+textcase: lppl (unverified)
+textfit: dfsg (unverified)
+textmerg: lppl (unverified)
+textopo: gpl (verification data:1.4:1.4:2006-11-02:norbusan:textopo.txt)
+textpath: lppl (unverified)
+textpos: gpl (unverified)
+thesis-titlepage-fhac: lppl (unverified)
+thumb: gpl (verification data:1.0:1.0:2006-11-02:norbusan:README)
+thumbpdf: lppl (unverified)
+ticket: lppl (unverified)
+times: gpl (unverified)
+timescyr: not-in-catalogue
+timesht: not-in-catalogue
+timesnew: not-in-catalogue
+timing: unknown (unverified)
+tipa: unknown (unverified)
+titlefoot: lppl (verification data::1999/03/02:2006-11-02:norbusan:header)
+titlesec: lppl (unverified)
+titling: lppl (verification data:2.1c:2.1c:2006-11-02:norbusan:README)
+tmmath: lppl (unverified)
+tocbibind: lppl (verification data:1.5g:1.5g:2006-11-02:norbusan:README)
+tocloft: lppl1.3 (verification data:2.3c:2.3c:2006-11-02:norbusan:README)
+tocvsec2: lppl1.3 (verification data:1.2:1.2:2006-11-02:norbusan:README)
+todo: lppl (verification data:1.1:1.1:2006-11-02:norbusan:header)
+tokenizer: lppl (unverified)
+toolbox: lppl (unverified)
+tools: lppl (verification data:::2006-05-02:frank:readme.txt)
+topfloat: gpl (unverified)
+totpages: lppl (unverified)
+tpslifonts: gpl (unverified)
+tracking: unknown (unverified)
+trajan: lppl (unverified)
+tree-dvips: unknown (unverified)
+treetex: not-in-catalogue
+trfsigns: gpl (unverified)
+trsym: lppl1.2 (verification data:1.0:1.0:2006-11-02:norbusan:)
+tugboat: lppl (unverified)
+twoup: not-in-catalogue
+txfonts: gpl (unverified)
+type1cm: lppl (unverified)
+typedref: unknown (unverified)
+typespec: unknown (unverified)
+typogrid: lppl (verification data:0.10:0.10:2006-11-02:norbusan:README)
+uaclasses: unknown (unverified)
+ucs: not-in-catalogue
+ucthesis: lppl (verification data:3.2:3.2:2006-10-17:norbusan:)
+uhc: not-in-catalogue
+uhrzeit: unknown (unverified)
+uiucthesis: lppl (unverified)
+ukrhyph: lppl (unverified)
+ulsy: unknown (unverified)
+umich-thesis: lppl (verification data:1.20:1.20:2006-10-17:norbusan:)
+uml: lppl (unverified)
+umlaute: lppl (unverified)
+umoline: lppl (unverified)
+umrand: unknown (unverified)
+underlin: lppl (unverified)
+undertilde: unknown (unverified)
+units: gpl (verification data:0.9b:0.9b:2006-10-17:norbusan:)
+unitsdef: lppl (unverified)
+univers: not-in-catalogue
+universa: gpl (unverified)
+upquote: lppl (verification data:v1.1:v1.1:2006-10-17:norbusan:)
+urlbst: gpl (unverified)
+ushort: dfsg (unverified)
+utf8mex: not-in-catalogue
+utopia: dfsg (unverified)
+uwthesis: lppl (unverified)
+vancouver: gpl (unverified)
+variations: gpl (unverified)
+varindex: dfsg (unverified)
+vector: unknown (unverified)
+velthuis: not-in-catalogue
+venn: lppl (unverified)
+verse: lppl (unverified)
+versions: lppl (verification data:0.55:0.55::norbusan:)
+vertex: unknown (unverified)
+vhistory: lppl (unverified)
+vita: unknown (unverified)
+vmargin: lppl (verification data:2.5:2.5::norbusan:)
+vntex: lppl (unverified)
+volumes: lppl (unverified)
+vpe: lppl (unverified)
+vrb: unknown (unverified)
+vrsion: lppl (unverified)
+vtex: not-in-catalogue
+wadalab: unknown (unverified)
+wallpaper: lppl (unverified)
+warning: lppl (verification data:0.01:0.01::norbusan:)
+warpcol: unknown (unverified)
+was: lppl (unverified)
+wasy: dfsg (unverified)
+wasysym: lppl (verification data:2.0:2.0:2006-03-06:frank:header)
+webeq: not-in-catalogue
+williams: unknown (unverified)
+wnri: gpl (unverified)
+wntamil: other (unverified)
+wordcount: dfsg (unverified)
+wordlike: lppl (unverified)
+wrapfig: dfsg (unverified)
+wsuipa: unknown (unverified)
+xbmc: not-in-catalogue
+xcolor: lppl (verification data:2.11:2.09:2004-06-25:frank:header)
+xdoc: lppl (unverified)
+xetex: not-in-catalogue
+xetexconfig: not-in-catalogue
+xetexurl: not-in-catalogue
+xfrac: lppl (unverified)
+xifthen: lppl (unverified)
+xinitials: not-in-catalogue
+xkeyval: lppl (verification data:2.5f:2.0,2.5e:2006-03-06:frank:README)
+xltxtra: lppl (unverified)
+xmlplay: pd (unverified)
+xmltex: lppl (unverified)
+xmpincl: gpl (unverified)
+xor: not-in-catalogue
+xparse: not-in-catalogue
+xq: lppl (unverified)
+xtab: lppl (verification data:2.3a:2.3a:2006-10-17:norbusan:README)
+xtcapts: unknown (unverified)
+xtheorem: not-in-catalogue
+xu-hyphen: not-in-catalogue
+xunicode: not-in-catalogue
+xyling: lppl (verification data:1.1:1.1:2006-10-17:norbusan:header)
+xypic: dfsg (unverified)
+xytree: lppl (unverified)
+yafoot: lppl (unverified)
+yannisgr: unknown (unverified)
+yfonts: lppl (unverified)
+yhmath: lppl (unverified)
+yi4latex: unknown (unverified)
+york-thesis: lppl (unverified)
+youngtab: lppl (unverified)
+yplan: lppl (unverified)
+ytex: unknown (unverified)
+zapfchan: gpl (unverified)
+zapfding: gpl (unverified)
+zed-csp: other (unverified)
+zefonts: unknown (unverified)
+amslatex-primer: unknown (unverified)
+amsldoc-it: not-in-catalogue
+amsldoc-vn: not-in-catalogue
+amsmath-it: not-in-catalogue
+amsthdoc-it: not-in-catalogue
+beamer-tut-pt: gpl (unverified)
+catalogue: lppl (unverified)
+components-of-TeX: not-in-catalogue
+comprehensive: lppl (unverified)
+cursolatex: gpl (unverified)
+dtxtut: lppl (unverified)
+epslatex-fr: not-in-catalogue
+es-tex-faq: not-in-catalogue
+fancyhdr-it: not-in-catalogue
+FAQ-en: not-in-catalogue
+FAQ-fr: not-in-catalogue
+FAQ-ge: not-in-catalogue
+firststeps: not-in-catalogue
+free-math-font-survey: dfsg (unverified)
+gentle-gr: not-in-catalogue
+gentle: unknown (unverified)
+guide-to-latex: not-in-catalogue
+guides-pl: not-in-catalogue
+help: not-in-catalogue
+impatient-fr: not-in-catalogue
+impatient: fdl (unverified)
+knuth: not-in-catalogue
+kopka: not-in-catalogue
+l2picfaq: fdl (unverified)
+l2tabu-english: gpl (unverified)
+l2tabu-french: gpl (unverified)
+l2tabu-it: not-in-catalogue
+l2tabu: gpl (unverified)
+latex-graphics-companion: not-in-catalogue
+latex-tipps-und-tricks: not-in-catalogue
+latex-web-companion: not-in-catalogue
+latex2e-html: not-in-catalogue
+lkort: unknown (unverified)
+lshort-bulgarian: pd (unverified)
+lshort-dutch: gpl (unverified)
+lshort-english: dfsg (unverified)
+lshort-finnish: unknown (unverified)
+lshort-french: unknown (unverified)
+lshort-german: dfsg (unverified)
+lshort-italian: gpl (unverified)
+lshort-japanese: gpl (unverified)
+lshort-korean: unknown (unverified)
+lshort-mongolian: unknown (unverified)
+lshort-polish: pd (unverified)
+lshort-portuguese: pd (unverified)
+lshort-russian: gpl (unverified)
+lshort-slovak: lppl (unverified)
+lshort-spanish: unknown (unverified)
+lshort-thai: pd (unverified)
+lshort-turkish: pd (unverified)
+lshort-ukrainian: not-in-catalogue
+lshort-vietnamese: lppl (unverified)
+make-tex-work: not-in-catalogue
+math-into-latex: not-in-catalogue
+mathmode: not-in-catalogue
+MemoirChapStyles: not-in-catalogue
+metafont-for-beginners: not-in-catalogue
+metafp: lppl (unverified)
+metapost-examples: dfsg (unverified)
+ntg: dfsg (unverified)
+ntheorem-vn: not-in-catalogue
+pstricks-tutorial: not-in-catalogue
+tamethebeast: lppl (unverified)
+tds: unknown (unverified)
+tex-refs: not-in-catalogue
+tex-virtual-academy-pl: not-in-catalogue
+texlive-common: not-in-catalogue
+texlive-cz: not-in-catalogue
+texlive-en: not-in-catalogue
+texlive-fr: not-in-catalogue
+texlive-ge: not-in-catalogue
+texlive-pl: not-in-catalogue
+texlive-ru: not-in-catalogue
+texlive-zh-cn: not-in-catalogue
+tlc2: not-in-catalogue
+truetype: not-in-catalogue
+Type1fonts: not-in-catalogue
+visualfaq: lppl (unverified)
+voss-de: not-in-catalogue
+webguide: dfsg (unverified)
+wp-conv: unknown (unverified)
+xypic-tut-pt: gpl (unverified)
+hyphen-arabic: not-in-catalogue
+hyphen-base: not-in-catalogue
+hyphen-basque: not-in-catalogue
+hyphen-bulgarian: not-in-catalogue
+hyphen-coptic: not-in-catalogue
+hyphen-croatian: not-in-catalogue
+hyphen-czechslovak: not-in-catalogue
+hyphen-danish: not-in-catalogue
+hyphen-dutch: not-in-catalogue
+hyphen-esperanto: not-in-catalogue
+hyphen-estonian: not-in-catalogue
+hyphen-finnish: not-in-catalogue
+hyphen-french: not-in-catalogue
+hyphen-german: not-in-catalogue
+hyphen-greek: not-in-catalogue
+hyphen-hungarian: not-in-catalogue
+hyphen-ibycus: not-in-catalogue
+hyphen-icelandic: not-in-catalogue
+hyphen-indonesian: not-in-catalogue
+hyphen-interlingua: not-in-catalogue
+hyphen-italian: not-in-catalogue
+hyphen-latin: not-in-catalogue
+hyphen-mongolian: not-in-catalogue
+hyphen-norwegian: not-in-catalogue
+hyphen-pinyin: not-in-catalogue
+hyphen-polish: not-in-catalogue
+hyphen-portuguese: not-in-catalogue
+hyphen-romanian: not-in-catalogue
+hyphen-russian: not-in-catalogue
+hyphen-serbian: not-in-catalogue
+hyphen-slovene: not-in-catalogue
+hyphen-spanish: not-in-catalogue
+hyphen-swedish: not-in-catalogue
+hyphen-turkish: not-in-catalogue
+hyphen-ukenglish: not-in-catalogue
+hyphen-ukrainian: not-in-catalogue
+hyphen-usorbian: not-in-catalogue
+hyphen-welsh: not-in-catalogue
+lib-freetype2: not-in-catalogue
+lib-geturl: not-in-catalogue
+lib-gnu: not-in-catalogue
+lib-md5: not-in-catalogue
+lib-regex: not-in-catalogue
+lib-texmfmp: not-in-catalogue
+lib-zlib: not-in-catalogue
+scheme-basic: not-in-catalogue
+scheme-context: not-in-catalogue
+scheme-full: not-in-catalogue
+scheme-gust: not-in-catalogue
+scheme-gutenberg: not-in-catalogue
+scheme-mactex: not-in-catalogue
+scheme-medium: not-in-catalogue
+scheme-minimal: not-in-catalogue
+scheme-omega: not-in-catalogue
+scheme-tetex: not-in-catalogue
+scheme-xml: not-in-catalogue
--- texlive-base-2009.orig/debian/fix-bin-dangling-links.sh
+++ texlive-base-2009/debian/fix-bin-dangling-links.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+# $Id: fix-bin-dangling-links.sh 3681 2008-12-18 21:36:58Z preining $
+#
+# TeX Live 2008 ships many "binaries" as symlinks to ../../texmf-*/...
+# which we have to fix here
+#
+# Norbert Preining, 2008
+# GPL
+
+set -e
+
+for i in `find debian/ -wholename 'debian/texlive-*/usr/bin/*' -type l` ; do
+	ln=`readlink $i`
+	case "$ln" in 
+	../../texmf*)
+	  nn=`echo $ln | sed -e 's;^\.\./\.\./texmf[^/]*/;../share/texmf-texlive/;'`
+	  ln -sf $nn $i
+	  ;;
+	esac
+done
+
+
--- texlive-base-2009.orig/debian/texlive-base.install
+++ texlive-base-2009/debian/texlive-base.install
@@ -0,0 +1,10 @@
+texmf/doc/man/man1/texdoc.1        usr/share/man/man1
+texmf/doc/man/man1/texdoctk.1      usr/share/man/man1
+texmf/doc/man/man5/fmtutil.cnf.5   usr/share/man/man5
+texmf/doc/man/man5/updmap.cfg.5    usr/share/man/man5
+# originally in texlive-binaries, we install the man pages in texlive-base
+# since the pages are not in the source hierarchy, what a pain
+texmf/doc/man/man1/dvipdfm.1       usr/share/man/man1
+texmf/doc/man/man1/dvipdft.1       usr/share/man/man1
+texmf/doc/man/man1/ebb.1           usr/share/man/man1
+texmf/doc/man/man1/extractbb.1     usr/share/man/man1
--- texlive-base-2009.orig/debian/texlive-latex-base.preinst.post
+++ texlive-base-2009/debian/texlive-latex-base.preinst.post
@@ -0,0 +1,7 @@
+# texlive-latex-base.preinst.post begin
+
+# Cleanup after Bug #420390 for sid users
+resurrect_conffile_sid /etc/texmf/tex/latex/config/color.cfg texlive-base "$1" "$2"
+resurrect_conffile_sid /etc/texmf/tex/latex/config/graphics.cfg texlive-base "$1" "$2"
+
+# texlive-latex-base.preinst.post end
--- texlive-base-2009.orig/debian/texlive-base.mime
+++ texlive-base-2009/debian/texlive-base.mime
@@ -0,0 +1 @@
+application/x-dvi; /usr/bin/xdvi %s; description=TeX DVI; test=test -n "$DISPLAY"; nametemplate=%s.dvi; priority=5
--- texlive-base-2009.orig/debian/texlive-pictures-doc.override
+++ texlive-base-2009/debian/texlive-pictures-doc.override
@@ -0,0 +1,4 @@
+texlive-pictures-doc: zero-byte-file-in-doc-directory
+texlive-pictures-doc: extra-license-file
+texlive-pictures-doc: script-not-executable
+texlive-pictures-doc: wrong-name-for-upstream-changelog
--- texlive-base-2009.orig/debian/texlive-common.NEWS
+++ texlive-base-2009/debian/texlive-common.NEWS
@@ -0,0 +1,40 @@
+texlive-common (2009-5) unstable; urgency=low
+
+  * Since about 2006 the font cache for generated pk/mf fonts defaults
+    to $HOME/.texmf-var. If you experience problems with fonts please
+    make sure that $HOME/.texmf-var/fonts does not contain outdated
+    fonts. Please see the NEWS for tex-common for details on how to
+    activate a global font cache.
+
+ -- Norbert Preining <preining@debian.org>  Sun, 20 Dec 2009 17:46:25 +0900
+
+texlive-common (2007-15) unstable; urgency=low
+
+  * Reinstalling removed conffiles
+
+    Due to a bug in the postrm script of tetex-base in etch, purging this
+    package removes essential configuration files of texlive packages.
+    The presence of some of these configuration files are essential for
+    the configuration and function of TeX Live.  This might lead to a
+    failure to configure texlive packages.  If you encounter problems in
+    the configure phase related to any of the files
+  
+    /etc/texmf/tex/generic/config/pdftexconfig.tex
+    /etc/texmf/metafont/misc/modes.mf
+  
+    missing, you can recreate them simply by reinstalling texlive-base
+    and texlive-base-bin.  No special options to dpkg are needed, the
+    files will be recreated whenever they are detected as missing.
+
+    In the unlikely case that you hacked your system to not require these
+    files, keep them present as empty files.
+  
+ -- Frank Küster <frank@debian.org>  Sun, 25 May 2008 17:17:06 +0200
+
+texlive-common (2007-3) unstable; urgency=low
+
+  * texlive-latex-extra, which is still quite large, has been split a bit
+    more.  Some parts can now be found in the new texlive-science and
+    texlive-humanities packages
+  
+ -- Frank Küster <frank@debian.org>  Fri, 13 Apr 2007 15:40:37 +0200
--- texlive-base-2009.orig/debian/texlive-metapost.override
+++ texlive-base-2009/debian/texlive-metapost.override
@@ -0,0 +1,4 @@
+texlive-metapost: zero-byte-file-in-doc-directory
+texlive-metapost: extra-license-file
+texlive-metapost: script-not-executable
+texlive-metapost: wrong-name-for-upstream-changelog
--- texlive-base-2009.orig/debian/generate-license-file
+++ texlive-base-2009/debian/generate-license-file
@@ -0,0 +1,34 @@
+#
+# generate-license-file
+# $Id: generate-license-file 2943 2007-06-05 15:41:04Z preining $
+# (c) 2006 Norbert Preining
+#
+# generate a license file from the information in the tpm and the
+# file tpm2liclines
+#
+# Uses tex-common's tpm2licenses
+#
+
+pkg="$1"
+
+if ! [ -r debian/$pkg ] ; then
+  echo "please first call debian/rules install!"
+  exit 1
+fi
+
+mkdir -p debian/$pkg/usr/share/doc/$pkg
+cat debian/Licenses.header > debian/$pkg.Licenses.gen
+
+if [ -r debian/$pkg.Licenses.add ] ; then
+	cat debian/$pkg.Licenses.add >> debian/$pkg.Licenses.gen
+fi
+perl /usr/share/tex-common/tpm2licenses		\
+	--Catalogue=file:./debian/tpm2liclines				\
+	--package=texlive						\
+	--tpmdir=./debian/$pkg/usr/share/texmf-texlive/tpm		\
+	--listallfiles							\
+	--texmfPath="./debian/$pkg/usr/share/texmf-texlive ./debian/$pkg/usr/share/doc/$pkg" 2>/dev/null	\
+	| sed -e 's,^\./debian/[^/]*/usr,/usr,' >> debian/$pkg.Licenses.gen
+
+mv debian/$pkg.Licenses.gen debian/$pkg/usr/share/doc/$pkg/Licenses
+
--- texlive-base-2009.orig/debian/texlive-common.links.dist
+++ texlive-base-2009/debian/texlive-common.links.dist
@@ -0,0 +1,7 @@
+usr/share/doc/texlive-doc usr/share/texmf-texlive/doc
+var/lib/texmf/ls-R-TEXLIVE usr/share/texmf-texlive/ls-R
+usr/share/doc/texlive-common/readme-txt.dir usr/share/doc/texlive-doc/readme-txt.dir
+usr/share/doc/texlive-common/readme-html.dir usr/share/doc/texlive-doc/readme-html.dir
+usr/share/doc/texlive-common/README.Debian usr/share/doc/texlive-doc/README.Debian
+usr/share/doc/texlive-common/README.source usr/share/doc/texlive-doc/README.source
+usr/share/doc/texlive-common/CHANGES.packaging usr/share/doc/texlive-doc/CHANGES.packaging
--- texlive-base-2009.orig/debian/copyright
+++ texlive-base-2009/debian/copyright
@@ -0,0 +1,793 @@
+Copyright information for the texlive bundle
+
+Table of contents:
+
+1. Copyright and License of the debian-specific adaptions
+2. License of the TeX live distribution as a compilation work
+3. Licenses of individual parts
+3.1 Explanation of the format of the following information
+3.2 Packages with license problems
+3.3 Individual license texts
+3.4 (Incomplete) list of licenses of individual parts
+
+
+1. Copyright and License of the debian-specific adaptions
+
+Debian adaptions for these packages are licensed under the GNU General
+Public License, version 2, and are under Copyright by:
+
+   Norbert Preining <preining@logic.at> (2005-)
+   Frank Küster <frank@kuesterei.ch> (2006-)
+
+All code generated for the Debian adaptions is under the GNU General
+Public License.
+
+--------
+
+2. License of the TeX live distribution as a compilation work
+
+COPYING CONDITIONS FOR TeX Live:
+
+To the best of our knowledge, all software in this distribution is
+freely redistributable (libre, that is, not necessarily gratis), within
+the Free Software Foundation's definition and Debian Free Software
+Guidelines.  If you find any non-free files included, please contact us
+(references given below).
+
+That said, TeX Live has neither a single copyright holder nor a single
+license covering its entire contents, since it is a collection of many
+disparate packages.  Therefore, you may copy, modify, and/or
+redistribute software from TeX Live only if you comply with the
+requirements placed thereon by the owners of the respective packages.
+
+To most easily learn these requirements, we suggest checking the TeX
+Catalogue at: http://www.ctan.org/tex-archive/help/Catalogue/ (or any
+CTAN mirror).  The Catalogue is also included in TeX Live in
+./texmf/doc/html/catalogue/, but the online version will have updates.
+Of course the legal statements within the packages themselves are the
+final authority.
+
+In some cases, TeX Live is distributed with a snapshot of the CTAN
+archive, which is entirely independent of and separable from TeX Live
+itself.  (The "live" DVD in the TeX Collection is one example of this.)
+Please be aware that the CTAN snapshot contains many files which are
+*not* freely redistributable; see LICENSE.CTAN for more information.
+
+
+GUIDELINES FOR REDISTRIBUTION:
+
+In general, you may redistribute TeX Live, with or without modification,
+for profit or not, according to the usual free software tenets.  Here
+are some general guidelines for doing this:
+
+- If you make any changes to the TeX Live distribution or any
+package it contains, besides complying with any licensing requirements,
+you must prominently mention such changes in your modified distribution
+so that users do not take your work for ours, and know to contact you,
+not us, in case of questions or problems.  A new top-level
+README.<yourwork> file is a good place to describe the general situation.
+
+- Especially (but not necessarily) if changes or additions are made, we
+recommend a clearly different title, such as "<your work> demo CD",
+based on TeX Live YYYY demo (with updates)", where YYYY is the year of
+TeX Live you are publishing.  This credits both our work and yours.
+
+- You absolutely may *not* place your own copyright on the entire
+distribution, since it is not your work (as stated above, TeX Live is
+not created by any single person or entity).  Statements such as "all
+rights reserved" and "may not be reproduced" are especially
+reprehensible, since they are antithetical to the free software
+principles under which TeX Live is produced.
+
+- You may use any cover or media label designs that you wish.  Such
+packaging and marketing details are not covered by any TeX Live license.
+
+- Finally, we make the following requests (not legal requirements):
+
+a) Acknowledging that TeX Live is developed as a joint effort by all TeX
+   user groups, and encouraging the user/reader to join their user group
+   of choice.
+   
+   The web page http://www.tug.org/usergroups.html may be referenced as
+   a list of TeX user groups.  We also appreciate your explicitly
+   listing all the user groups as given on that page, space permitting.
+
+b) Referencing the TeX Live home page: http://www.tug.org/tex-live/.
+
+c) Crediting the editor of the original TeX Live: Sebastian Rahtz.
+
+Such credits may be placed on the label of your media, your cover,
+and/or in accompanying text (for instance, in the acknowledgements
+section of a book).
+
+Finally, although it is certainly not a requirement, we'd like to invite
+any redistributors to make a donation to the project, whether cash or
+in-kind, for example via https://www.tug.org/donate.html.  Thanks.
+
+
+If you have any questions or comments, *please* contact us.  In general,
+we appreciate being given the chance to review any TeX Live-related
+material in advance of publication, simply to avoid mistakes.  It is
+much better to correct text on a CD label or in a book before thousands
+of copies are made!
+
+We are also happy to keep anyone planning a publication informed as to
+our deadlines and progress.  Just let us know.  However, you should be
+aware that TeX Live is produced entirely by volunteers, and no dates can
+be guaranteed.
+
+
+LICENSING FOR NEW PACKAGES:
+
+Finally, we are often asked what license to use for new work.  To be
+considered for inclusion on TeX Live, a package must use a free software
+license, such as the LaTeX Project Public License, the GNU Public
+License, the X Window System license, the modified BSD license, etc., or
+be put into the public domain.  Please see the url's below for more
+discussion of this.
+
+Thanks for your interest in TeX.
+
+- Sebastian Rahtz, editor, for the TeX Live team
+
+
+TeX Live mailing list: texlive@tug.org
+TeX Live home page: http://www.tug.org/tex-live/
+
+The FSF's free software definition: http://www.gnu.org/philosophy/free-sw.html
+Debian Free Software Guidelines:    http://www.debian.org/intro/free
+FSF commentary on existing licenses:
+  http://www.gnu.org/licenses/license-list.html
+
+LPPL: http://latex-project.org/lppl.html or texmf/doc/latex/base/lppl.txt
+LPPL rationale: texmf/doc/latex/base/modguide.pdf
+
+-------------
+
+3. Reference to an (incomplete) list of licenses of individual parts
+
+Individual parts of this distribution have their own copyright and
+license.
+
+3.1 Explanation of the format of the following information
+
+Since most packages use standard licenses, we have separated the list
+of license texts and the list of packages and individual files with
+their licenses.  In section 3.3 we provide the license texts and their
+abbreviations used in in the file list.  The file list itself is
+generated automatically from the TeX Catalogue and can be found, for
+each binary package, in /usr/share/doc/texlive-<name>/Licenses.
+
+The information in the TeX Catalogue is checked by the Debian TeX
+maintainers and the CTAN maintainers.  If you find any contradiction
+in the listing with the reality please inform us.
+
+In the case of gpl and lppl, the string without a number means that
+the license statement contains a "or any later version" statement.  In
+the list in Licenses, each package has a header line like this:
+
+% ccfonts: lppl (verification data:1.1:1.1:2006-03-14:frank:readme)
+
+indicating that the package ccfonts is under LPPL, exists in version
+1.1, the license has been checked in version 1.1 on 2006-03-14 by
+"frank" (the username among the Catalogue developers, actually Frank
+Küster), and the license information is in a file "readme".  After
+that follows the list of files, 
+
+ tex/latex/ccfonts/t1ccr.fd
+ tex/latex/ccfonts/ccfonts.sty
+ tex/latex/ccfonts/ts1ccr.fd
+ doc/latex/ccfonts/*
+
+where the * indicates that all ordinary files in that directory belong
+to that package (but not necessarily subdirectories and files
+therein).
+
+3.2 TODO: Packages with licensing problems
+
+[ this is copied over from teTeX, and some problems might already be
+solved ]
+
+3.2.1 Serious problems
+
+- euler: LPPL according changelog, but no indication in file.
+
+- adrconv: No license at all for the documentation
+
+- antp: PD according to catalogue, no statement in the files, no
+  sources; contacted upstream
+
+- bbm: no license statement at all, bug filed
+
+- cite:  chapterbib.sty is missing a license statement in the header
+
+- Problematic files by Donald Arseneau:
+
+  * chapterbib.sty: no license information
+  * tabls.sty: no license information
+  * import.sty: "this software is free of any restrictions"
+  * relsize.sty: "public domain", nothing else
+  * shapepar.sty: noncommercial
+  * version.sty: no license information, not only by D.A.
+  * selectp.sty: no license information
+  *./source/latex/shapepar/README.shapepar
+   ./source/latex/shapepar/shapepar.sty
+   ./source/latex/shapepar/shapepar.ltx
+   ./source/latex/hyphenat/hyphenat.dtx: no license information
+
+
+- citesort.sty: no license statement
+
+- index.doc: no license statement - probably unused
+
+- dinbrief: lppl 1.1+, but with additional restrictions which are non-free
+
+- eepic: The style files are public domain, but all the documentation
+  has no license at all.
+
+- extsizes: extsizes.sty, extarticle.cls and extreport.cls, and the
+  size*.clo files have a correct LPPL notice, the others have none.
+  The author seems to be active on Wikipedia, tried to contact him
+
+- beamericon*: no license statement. beamerexample-seminar: just like
+  seminar, which has not been investigated yet.  Filed bug against beamer.
+
+- one file in the psnfss directory with unclear license:
+
+    tex/latex/psnfss/8r.sty
+
+3.2.2 Normal :-) problems
+
+- listings: LPPL, plus: 
+
+,----
+| *Modification*advice* 
+| 
+| Permission is granted to modify the listings package as well as
+| lstdrvrs.dtx. You are not allowed to distribute a modified version of
+| the listings package or lstdrvrs.dtx unless you change the file names
+| and provide the original files. In any case it is better to contact
+| the address below; other users will welcome removed bugs, new
+| features, and additional programming languages.
+
+This is more restrictive than LPPL 1.3 (6.a and 6.d.2). The title is advice... 
+
+- ae: Just a formal problem, the GPL is included, but nowhere is it
+      explicitly stated that this license applies to the package.
+
+      contacted upstream
+
+- antt: gust font license, unclear which files % contacted upstream
+
+
+3.3 Individual license texts
+
+The actual text of the licenses can either be found in
+/usr/share/common-licenses (for artistic,bsd,gpl) or in "3.2 Text of
+the licenses" below.  For BSD-like licenses that just exchange the
+name of the copyright holder, we do not list the license text.
+
+A. gpl (GNU General Public License)
+
+The full text of the GPL is given in /usr/share/common-licenses/GPL.
+
+B. lppl (LaTeX Project Public License)
+
+The LaTeX Project Public License
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
+
+LPPL Version 1.3c  2006-05-20
+
+Copyright 1999 2002-2006 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 primary license under
+which the the LaTeX kernel and the base LaTeX packages are distributed.
+
+You may use this license for any work of which you hold the copyright
+and which you wish to distribute.  This license may be particularly
+suitable if your work is TeX-related (such as a LaTeX package), but 
+it is written in such a way that you can use it even if your work is 
+unrelated to TeX.
+
+The section `WHETHER AND HOW TO DISTRIBUTE WORKS UNDER THIS LICENSE',
+below, gives instructions, examples, and recommendations for authors
+who are considering distributing their works under this license.
+
+This license gives conditions under which a work may be distributed
+and modified, as well as conditions under which modified versions of
+that work may be distributed.
+
+We, the LaTeX3 Project, believe that the conditions below give you
+the freedom to make and distribute modified versions of your work
+that conform with whatever technical specifications you wish while
+maintaining the availability, integrity, and reliability of
+that work.  If you do not see how to achieve your goal while
+meeting these conditions, then read the document `cfgguide.tex'
+and `modguide.tex' in the base LaTeX distribution for suggestions.
+
+
+DEFINITIONS
+===========
+
+In this license document the following terms are used:
+
+   `Work'
+    Any work being distributed under this License.
+    
+   `Derived Work'
+    Any work that under any applicable law is derived from the Work.
+
+   `Modification' 
+    Any procedure that produces a Derived Work under any applicable
+    law -- for example, the production of a file containing an
+    original file associated with the Work or a significant portion of
+    such a file, either verbatim or with modifications and/or
+    translated into another language.
+
+   `Modify'
+    To apply any procedure that produces a Derived Work under any
+    applicable law.
+    
+   `Distribution'
+    Making copies of the Work available from one person to another, in
+    whole or in part.  Distribution includes (but is not limited to)
+    making any electronic components of the Work accessible by
+    file transfer protocols such as FTP or HTTP or by shared file
+    systems such as Sun's Network File System (NFS).
+
+   `Compiled Work'
+    A version of the Work that has been processed into a form where it
+    is directly usable on a computer system.  This processing may
+    include using installation facilities provided by the Work,
+    transformations of the Work, copying of components of the Work, or
+    other activities.  Note that modification of any installation
+    facilities provided by the Work constitutes modification of the Work.
+
+   `Current Maintainer'
+    A person or persons nominated as such within the Work.  If there is
+    no such explicit nomination then it is the `Copyright Holder' under
+    any applicable law.
+
+   `Base Interpreter' 
+    A program or process that is normally needed for running or
+    interpreting a part or the whole of the Work.    
+
+    A Base Interpreter may depend on external components but these
+    are not considered part of the Base Interpreter provided that each
+    external component clearly identifies itself whenever it is used
+    interactively.  Unless explicitly specified when applying the
+    license to the Work, the only applicable Base Interpreter is a
+    `LaTeX-Format' or in the case of files belonging to the 
+    `LaTeX-format' a program implementing the `TeX language'.
+
+
+
+CONDITIONS ON DISTRIBUTION AND MODIFICATION
+===========================================
+
+1.  Activities other than distribution and/or modification of the Work
+are not covered by this license; they are outside its scope.  In
+particular, the act of running the Work is not restricted and no
+requirements are made concerning any offers of support for the Work.
+
+2.  You may distribute a complete, unmodified copy of the Work as you
+received it.  Distribution of only part of the Work is considered
+modification of the Work, and no right to distribute such a Derived
+Work may be assumed under the terms of this clause.
+
+3.  You may distribute a Compiled Work that has been generated from a
+complete, unmodified copy of the Work as distributed under Clause 2
+above, as long as that Compiled Work is distributed in such a way that
+the recipients may install the Compiled Work on their system exactly
+as it would have been installed if they generated a Compiled Work
+directly from the Work.
+
+4.  If you are the Current Maintainer of the Work, you may, without
+restriction, modify the Work, thus creating a Derived Work.  You may
+also distribute the Derived Work without restriction, including
+Compiled Works generated from the Derived Work.  Derived Works
+distributed in this manner by the Current Maintainer are considered to
+be updated versions of the Work.
+
+5.  If you are not the Current Maintainer of the Work, you may modify
+your copy of the Work, thus creating a Derived Work based on the Work,
+and compile this Derived Work, thus creating a Compiled Work based on
+the Derived Work.
+
+6.  If you are not the Current Maintainer of the Work, you may
+distribute a Derived Work provided the following conditions are met
+for every component of the Work unless that component clearly states
+in the copyright notice that it is exempt from that condition.  Only
+the Current Maintainer is allowed to add such statements of exemption 
+to a component of the Work. 
+
+  a. If a component of this Derived Work can be a direct replacement
+     for a component of the Work when that component is used with the
+     Base Interpreter, then, wherever this component of the Work
+     identifies itself to the user when used interactively with that
+     Base Interpreter, the replacement component of this Derived Work
+     clearly and unambiguously identifies itself as a modified version
+     of this component to the user when used interactively with that
+     Base Interpreter.
+     
+  b. Every component of the Derived Work contains prominent notices
+     detailing the nature of the changes to that component, or a
+     prominent reference to another file that is distributed as part
+     of the Derived Work and that contains a complete and accurate log
+     of the changes.
+  
+  c. No information in the Derived Work implies that any persons,
+     including (but not limited to) the authors of the original version
+     of the Work, provide any support, including (but not limited to)
+     the reporting and handling of errors, to recipients of the
+     Derived Work unless those persons have stated explicitly that
+     they do provide such support for the Derived Work.
+
+  d. You distribute at least one of the following with the Derived Work:
+
+       1. A complete, unmodified copy of the Work; 
+          if your distribution of a modified component is made by
+          offering access to copy the modified component from a
+          designated place, then offering equivalent access to copy
+          the Work from the same or some similar place meets this
+          condition, even though third parties are not compelled to
+          copy the Work along with the modified component;
+
+       2. Information that is sufficient to obtain a complete,
+          unmodified copy of the Work.
+
+7.  If you are not the Current Maintainer of the Work, you may
+distribute a Compiled Work generated from a Derived Work, as long as
+the Derived Work is distributed to all recipients of the Compiled
+Work, and as long as the conditions of Clause 6, above, are met with
+regard to the Derived Work.
+
+8.  The conditions above are not intended to prohibit, and hence do not
+apply to, the modification, by any method, of any component so that it
+becomes identical to an updated version of that component of the Work as
+it is distributed by the Current Maintainer under Clause 4, above.
+
+9.  Distribution of the Work or any Derived Work in an alternative
+format, where the Work or that Derived Work (in whole or in part) is
+then produced by applying some process to that format, does not relax or
+nullify any sections of this license as they pertain to the results of
+applying that process.
+     
+10. a. A Derived Work may be distributed under a different license
+       provided that license itself honors the conditions listed in
+       Clause 6 above, in regard to the Work, though it does not have
+       to honor the rest of the conditions in this license.
+      
+    b. If a Derived Work is distributed under a different license, that
+       Derived Work must provide sufficient documentation as part of
+       itself to allow each recipient of that Derived Work to honor the 
+       restrictions in Clause 6 above, concerning changes from the Work.
+
+11. This license places no restrictions on works that are unrelated to
+the Work, nor does this license place any restrictions on aggregating
+such works with the Work by any means.
+
+12.  Nothing in this license is intended to, or may be used to, prevent
+complete compliance by all parties with all applicable laws.
+
+
+NO WARRANTY
+===========
+
+There is no warranty for the Work.  Except when otherwise stated in
+writing, the Copyright Holder provides the Work `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 Work is with you.  Should the Work prove defective, you assume
+the cost of all necessary servicing, repair, or correction.
+
+In no event unless required by applicable law or agreed to in writing
+will The Copyright Holder, or any author named in the components of the
+Work, or any other party who may distribute and/or modify the Work as
+permitted above, be liable to you for damages, including any general,
+special, incidental or consequential damages arising out of any use of
+the Work or out of inability to use the Work (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 Work 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.
+
+
+MAINTENANCE OF THE WORK
+=======================
+
+The Work has the status `author-maintained' if the Copyright Holder
+explicitly and prominently states near the primary copyright notice in
+the Work that the Work can only be maintained by the Copyright Holder
+or simply that it is `author-maintained'.
+
+The Work has the status `maintained' if there is a Current Maintainer
+who has indicated in the Work that they are willing to receive error
+reports for the Work (for example, by supplying a valid e-mail
+address). It is not required for the Current Maintainer to acknowledge
+or act upon these error reports.
+
+The Work changes from status `maintained' to `unmaintained' if there
+is no Current Maintainer, or the person stated to be Current
+Maintainer of the work cannot be reached through the indicated means
+of communication for a period of six months, and there are no other
+significant signs of active maintenance.
+
+You can become the Current Maintainer of the Work by agreement with
+any existing Current Maintainer to take over this role.
+
+If the Work is unmaintained, you can become the Current Maintainer of
+the Work through the following steps:
+
+ 1.  Make a reasonable attempt to trace the Current Maintainer (and
+     the Copyright Holder, if the two differ) through the means of
+     an Internet or similar search.
+
+ 2.  If this search is successful, then enquire whether the Work
+     is still maintained.
+
+  a. If it is being maintained, then ask the Current Maintainer
+     to update their communication data within one month.
+     
+  b. If the search is unsuccessful or no action to resume active
+     maintenance is taken by the Current Maintainer, then announce
+     within the pertinent community your intention to take over
+     maintenance.  (If the Work is a LaTeX work, this could be
+     done, for example, by posting to comp.text.tex.)
+
+ 3a. If the Current Maintainer is reachable and agrees to pass
+     maintenance of the Work to you, then this takes effect
+     immediately upon announcement.
+     
+  b. If the Current Maintainer is not reachable and the Copyright
+     Holder agrees that maintenance of the Work be passed to you,
+     then this takes effect immediately upon announcement.  
+    
+ 4.  If you make an `intention announcement' as described in 2b. above
+     and after three months your intention is challenged neither by
+     the Current Maintainer nor by the Copyright Holder nor by other
+     people, then you may arrange for the Work to be changed so as
+     to name you as the (new) Current Maintainer.
+     
+ 5.  If the previously unreachable Current Maintainer becomes
+     reachable once more within three months of a change completed
+     under the terms of 3b) or 4), then that Current Maintainer must
+     become or remain the Current Maintainer upon request provided
+     they then update their communication data within one month.
+
+A change in the Current Maintainer does not, of itself, alter the fact
+that the Work is distributed under the LPPL license.
+
+If you become the Current Maintainer of the Work, you should
+immediately provide, within the Work, a prominent and unambiguous
+statement of your status as Current Maintainer.  You should also
+announce your new status to the same pertinent community as
+in 2b) above.
+
+
+WHETHER AND HOW TO DISTRIBUTE WORKS UNDER THIS LICENSE
+======================================================
+
+This section contains important instructions, examples, and
+recommendations for authors who are considering distributing their
+works under this license.  These authors are addressed as `you' in
+this section.
+
+Choosing This License or Another License
+----------------------------------------
+
+If for any part of your work you want or need to use *distribution*
+conditions that differ significantly from those in this license, then
+do not refer to this license anywhere in your work but, instead,
+distribute your work 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 work 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 work is
+unrelated to LaTeX, the discussion in `modguide.tex' may still be
+relevant, and authors intending to distribute their works under any
+license are encouraged to read it.
+
+A Recommendation on Modification Without Distribution
+-----------------------------------------------------
+
+It is wise never to modify a component of the Work, even for your own
+personal use, without also meeting the above conditions for
+distributing the modified component.  While you might intend that such
+modifications will never be distributed, often this will happen by
+accident -- you may forget that you have modified that component; or
+it may not occur to you when allowing others to access the modified
+version that you are thus distributing it and violating the conditions
+of this license in ways that could have legal implications and, worse,
+cause problems for the community.  It is therefore usually in your
+best interest to keep your copy of the Work identical with the public
+one.  Many works provide ways to control the behavior of that work
+without altering any of its licensed components.
+
+How to Use This License
+-----------------------
+
+To use this license, place in each of the components of your work both
+an explicit copyright notice including your name and the year the work
+was authored and/or last substantially modified.  Include also a
+statement that the distribution and/or modification of that
+component is constrained by the conditions in this license.
+
+Here is an example of such a notice and statement:
+
+  %% pig.dtx
+  %% Copyright 2005 M. Y. Name
+  %
+  % This work may be distributed and/or modified under the
+  % conditions of the LaTeX Project Public License, either version 1.3
+  % 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.3 or later is part of all distributions of LaTeX
+  % version 2005/12/01 or later.
+  %
+  % This work has the LPPL maintenance status `maintained'.
+  % 
+  % The Current Maintainer of this work is M. Y. Name.
+  %
+  % This work consists of the files pig.dtx and pig.ins
+  % and the derived file pig.sty.
+
+Given such a notice and statement in a file, the conditions
+given in this license document would apply, with the `Work' referring
+to the three files `pig.dtx', `pig.ins', and `pig.sty' (the last being
+generated from `pig.dtx' using `pig.ins'), the `Base Interpreter'
+referring to any `LaTeX-Format', and both `Copyright Holder' and
+`Current Maintainer' referring to the person `M. Y. Name'.
+
+If you do not want the Maintenance section of LPPL to apply to your
+Work, change `maintained' above into `author-maintained'.  
+However, we recommend that you use `maintained', as the Maintenance
+section was added in order to ensure that your Work remains useful to
+the community even when you can no longer maintain and support it
+yourself.
+
+Derived Works That Are Not Replacements
+---------------------------------------
+
+Several clauses of the LPPL specify means to provide reliability and
+stability for the user community. They therefore concern themselves
+with the case that a Derived Work is intended to be used as a
+(compatible or incompatible) replacement of the original Work. If
+this is not the case (e.g., if a few lines of code are reused for a
+completely different task), then clauses 6b and 6d shall not apply.
+
+
+Important Recommendations
+-------------------------
+
+ Defining What Constitutes the Work
+
+   The LPPL requires that distributions of the Work contain all the
+   files of the Work.  It is therefore important that you provide a
+   way for the licensee to determine which files constitute the Work.
+   This could, for example, be achieved by explicitly listing all the
+   files of the Work near the copyright notice of each file or by
+   using a line such as:
+
+    % This work 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 Work and, in such a case, the licensee would be
+   entitled to make reasonable conjectures as to which files comprise
+   the Work.
+
+
+
+
+C. Artistic
+D. PD (Public domain):
+
+The file or package contains a statement equivalent to 
+
+"This file is in the public domain. You may freely use, modify and
+distribute it".
+
+E. Non-standard licenses, by package name:
+
+(1) eepic.sty, eepicemu.sty:
+    The macros are in public domain.
+    You may distribute or modify it in any ways you like.
+    epic.sty:
+    You may use this file in whatever way you wish. You are requested to 
+    leave this notice intact, and report any bugs, enhancements, comments,
+    suggestions, etc. to:
+    ...
+
+(2) The Computer Modern fonts by Donald E. Knuth have a special
+    license; essentially, they are public domain, but no modified
+    version may use the same name, and the names "TeX" and "MetaFont"
+    for the resulting programs, unless they pass the TRIP and TRAP
+    tests.  The complete license statement can be found in a text at
+    http://www.tug.org/TUGboat/Articles/tb11-4/tb30knut.pdf, and the
+    relevant parts are:
+
+   ,----
+   | My work on developing TEX, METAFONT, and Computer
+   | Modern has come to an end. I willmake no further
+   | changes except to correct extremely serious bugs.
+   | 
+   | I have put these systems into the public domain so that
+   | people everywhere can use the ideas freely if they wish.
+   | 
+   | [...]
+   | As stated on the copyright pages of Volumes B, D, and
+   | E, anybody can make use of my programs in whatever
+   | way they wish, as long as they do not use the names
+   | TEX, METAFONT, or Computer Modern. In particular,
+   | any person or group who wants to produce a program
+   | superior to mine is free to do so. However, nobody is
+   | allowed to call a system TEX or METAFONT unless that
+   | system conforms 100% to my own programs, as I have
+   | specified in the manuals for the TRIP and TRAP tests.
+   | And nobody is allowed to use the names of the Computer
+   | Modern fonts in Volume E for any fonts that do not
+   | produce identical tfm files. This prohibition applies to
+   | all people or machines, whether appointed by TUG or
+   | by any other organization. I do not intend to delegate the
+   | responsibility formaintainance of TEX, METAFONT, or
+   | Computer Modern to anybody else, ever.
+   `----
+
+   For those who believe more in texts written on paper, we reproduce
+   here the copyright page of Volume $of "Computers and Typesetting"
+   by Donald E. Knuth, which present the commented code for the 
+   Computer Modern fonts:
+
+   ,----
+   | The quotations on pages 7 and 351 have been excerpted [...].
+   | 
+   | METAFONT is a trademark of th Addison Wesley Publishing Company.
+   | 
+   | TeX is a trademark of the American Mathematical Society.
+   | 
+   | The programs for computer Modern are in the public domain, and readers
+   | may freely generate and hand-tune their own fonts using the algorithms
+   | of this book.  However, use of the names is restricted:  Any fonts
+   | whose names cmr10 or cmbx12 or ... are identical to the standard font
+   | names of this book should be fully compatible with the fonts defined
+   | here; i.e., fonts with the same names are supposed to have precisely
+   | the same character coding schemes and precisely the same font metric
+   | files. 
+   `----
+
+
+
+   *****
+
+F. Individual files, not belonging to any package: 
+
+%  cahyph.tex: LPPL 1+
+%  gahyph.tex: GPL 2+
+%  icehyph.tex: LPPL 1.2+
+%  ruhyphas.tex: LPPL 1.2+
+%  ruhyphzn.tex: LPPL 1.2+
+%  sehyph.tex: LPPL 1.2+
+
+
+
+3.4 Reference to an (incomplete) list of licenses of individual parts
+
+The file list for each binary package has the format explained above
+and can be found, for each binary package, in
+
+/usr/share/doc/texlive-<name>/Licenses.
+
+$Id: copyright 3478 2008-07-22 11:07:21Z preining $
--- texlive-base-2009.orig/debian/texlive-common.postinst.pre
+++ texlive-base-2009/debian/texlive-common.postinst.pre
@@ -0,0 +1,18 @@
+# texlive-common.postinst.pre begin
+
+#case "$1" in
+#  configure|reconfigure)
+#    /usr/share/tex-common/tetex-bin-upgrade
+#    ;;
+#esac
+
+# rename old stuff from tetex:
+for i in updmap.d/10tetex-base.cfg fmt.d/01tetex.cnf language.d/00tetex.cnf language.d/10tetex.cnf ; do
+	if [ -r /etc/texmf/$i ] ; then
+		mv /etc/texmf/$i /etc/texmf/$i.obsolete
+		echo "Obsolete config file /etc/texmf/$i has been renamed" >&2
+		echo "as /etc/texmf/$i.obsolete." >&2
+	fi
+done
+
+# texlive-common.postinst.pre end
--- texlive-base-2009.orig/debian/texlive-omega.links.dist
+++ texlive-base-2009/debian/texlive-omega.links.dist
@@ -0,0 +1 @@
+usr/share/man/man1/aleph.1.gz usr/share/man/man1/lamed.1.gz
--- texlive-base-2009.orig/debian/tpm2deb-bin.pl
+++ texlive-base-2009/debian/tpm2deb-bin.pl
@@ -0,0 +1,619 @@
+#!/usr/bin/perl
+#
+# tpm2deb-bin.pl
+# machinery to create debian packages from TeX Live depot
+# (c) 2005, 2006 Norbert Preining
+#
+# $Id: tpm2deb.pl 2080 2006-12-15 12:03:49Z preining $
+#
+# configuration is done via the file tpm2deb.cfg
+#
+
+BEGIN {   # get our other local perl modules.
+	unshift (@INC, "./debian");
+	unshift (@INC, "./tlpkg");
+}
+
+use strict "vars";
+# use strict "refs"; # not possible with merge_into
+use warnings;
+no warnings 'once';
+no warnings 'uninitialized';
+
+#use Strict;
+use Getopt::Long;
+use File::Basename;
+use File::Copy;
+use File::Path;
+use File::Temp qw/ tempfile tempdir /;
+use Cwd;
+
+use TeXLive::TLPDB;
+use TeXLive::TLPOBJ;
+
+# use Data::Dumper;
+
+
+my $debdest;
+my $basedir;
+my $bindest;
+my $bincomponent = "/usr/bin";
+my $rundest;
+my $runcomponent = "/usr/share";
+my $docdest;
+my $doccomponent;
+my $etcdest;
+my $tmpdir;
+
+
+#
+# Configuration for destination of files
+# DONT USER DOUBLE QUOTES; THESE VARIABLES HAVE TO GET REEVALUATED
+# AFTER $tmpdir IS SET!!
+#
+my $sysdebdest = '$tmpdir/debian';
+my $sysbasedir = '$debdest/$package';
+my $sysbindest = '$basedir/usr/bin';
+my $sysbincomponent = '/usr/bin';
+my $sysrundest = '$basedir/usr/share';
+my $sysruncomponent = '/usr/share';
+my $sysdocdest = '$basedir/usr/share/doc/$package';
+my $sysdoccomponent = '/usr/share/doc/$package';
+my $sysetcdest = '$basedir/etc/texmf';
+
+my %configfiles; # hash of (symbolic) array references, one for each package
+
+my $texmfdist = "texmf-texlive";
+my $opt_nosource=0;
+my $optdestination="";
+our $opt_onlyscripts=0;
+my $opt_onlycopy=0;
+
+our $opt_debug; #global variable
+my $opt_master;
+our $Master;
+my $globalreclevel=1;
+
+my $result = GetOptions ("debug!" => \$opt_debug, 	# debug mode
+	"nosource!" => \$opt_nosource,			# don't include source files
+	"master=s" => \$opt_master,	# location of Master
+	"dest=s" => \$optdestination,	# where to write files
+	"reclevel=i" => \$globalreclevel,	# recursion level
+	"onlyscripts!" => \$opt_onlyscripts, # only create maintainer scripts
+	"onlycopy!" => \$opt_onlycopy # no maintscripts, only copy files
+	);
+
+# Norbert, is $, intended here, or should it rather be m{/.*$}?
+if (!($opt_master =~ m,/.*$,,)) {
+	$Master = `pwd`;
+	chomp($Master);
+	$Master .= "/$opt_master";
+} else {
+	$Master = $opt_master;
+}
+
+my $startdir=getcwd();
+chdir($startdir);
+File::Basename::fileparse_set_fstype('unix');
+
+use tpm2debcommon;
+
+&main(@ARGV);
+
+1;
+
+
+sub main {
+	my (@packages) = @_;
+	my $arch = "all";
+	# the following variable is used in the Tpm.pm module,
+	# and should always be set to i386-linux, no matter what 
+	# the real Debian architecture is
+	$::tlpdb = TeXLive::TLPDB->new(root => "$Master");
+	die "Cannot load tlpdb!" unless defined($::tlpdb);
+	initialize_config_file_data("debian/tpm2deb.cfg");
+	build_data_hash();
+	check_consistency();
+	foreach my $package (@packages) {
+		# 
+		# various variables have to be set
+		#
+		#$arch = get_arch($package);
+		#print "Working on $package, arch=$arch\n";
+		print "Working on $package\n";
+		# determine variables used in all subsequent functions
+		$opt_debug && print STDERR "Setting global vars\n";
+		tl_set_global_vars($package);
+		#
+		# copy files etc.
+		# 
+		# this affects the following global vars: @{$configfiles{$package}}.
+		make_deb($package); #unless ($opt_onlyscripts);
+		#
+		# create the maintainer scripts
+		#
+		# this uses the following global vars: @{$configfiles{$package}}.
+		make_maintainer($package,$debdest) unless ($opt_onlycopy);
+	}
+}
+
+#
+# set global variables
+#
+sub tl_set_global_vars {
+	my ($package) = @_;
+	my $helper;
+	if ($optdestination ne "") {
+		$tmpdir = $optdestination;
+	} else {
+		$tmpdir = ".";
+	}
+	$opt_debug && print STDERR "tmpdir = $tmpdir\n";
+	$helper="\$debdest = \"$sysdebdest\""; eval $helper;
+	$helper="\$basedir = \"$sysbasedir\""; eval $helper;
+	$helper="\$bindest = \"$sysbindest\""; eval $helper;
+	$helper="\$rundest = \"$sysrundest\""; eval $helper;
+	$helper="\$docdest = \"$sysdocdest\""; eval $helper;
+	$helper="\$doccomponent = \"$sysdoccomponent\""; eval $helper;
+	$helper="\$etcdest = \"$sysetcdest\""; eval $helper;
+	$opt_debug && print STDERR "\nGlobal options:\n";
+	if ($opt_debug) {
+		print STDERR "debdest = $debdest\n";
+		print STDERR "basedir = $basedir\n";
+		print STDERR "bindest = $bindest\n";
+		print STDERR "rundest = $rundest\n";
+		print STDERR "docdest = $docdest\n";
+		print STDERR "doccomponent = $doccomponent\n";
+		print STDERR "etcdest = $etcdest\n";
+	}
+}
+
+#
+# tl_is_blacklisted <filename>
+#
+sub tl_is_blacklisted {
+	my ($file) = @_;
+	my $blacklisted = 0;
+	foreach my $pat (@{$TeXLive{'all'}{'file_blacklist'}}) { 
+		$blacklisted = 1 if ($file =~ m|^${pat}$|);
+	}
+	$opt_debug && $blacklisted && print STDERR "$file is blacklisted\n";
+	return $blacklisted;
+}
+
+#
+# make_deb_copy_to_righplace
+#
+# depends on global var $rundest
+sub make_deb_copy_to_rightplace {
+	my ($package,$listref) = @_;
+	my %lists = %$listref;
+	if (!$opt_nosource) {
+		DOSFILE: foreach my $file (@{$lists{'SourceFiles'}}) {
+			next DOSFILE if tl_is_blacklisted($file);
+			my $finalfn = do_remap_and_copy($package,$file,$runcomponent);
+			do_special($file,$finalfn);
+		}
+	}
+	DORFILE: foreach my $file (@{$lists{'RunFiles'}}) {
+		next DORFILE if tl_is_blacklisted($file);
+		my $finalfn = do_remap_and_copy($package,$file,$runcomponent);
+		do_special($file,$finalfn);
+	}
+# 	my %DocDirHash = ();
+# 	my @LinkedDocDir = ();
+	DODFILE: foreach my $file (@{$lists{'DocFiles'}}) {
+		next DODFILE if tl_is_blacklisted($file);
+		my $finalfn = do_remap_and_copy($package,$file,$runcomponent,'^[^/]*/doc/(.*)$','$doccomponent/$1');
+		do_special($file,$finalfn);
+	}
+	# simply ignore binfiles as we have to add the necessary deps
+	#DOBFILE: foreach my $file (@{$lists{'BinFiles'}}) {
+	#	$opt_debug && print STDERR "BINFILE: $file\n";
+	#	next DOBFILE if tl_is_blacklisted($file);
+	#	my $finalfn = do_remap_and_copy($package,$file,$bincomponent,'^bin/[^/]*/(.*)$','/usr/bin/$1');
+	#	do_special($file,$finalfn);
+	#}
+	if ($package eq 'texlive-base') {
+		open(USLANG,">$debdest/texlive-base.cnf")
+			or die("Cannot open $debdest/texlive-base.cnf for writing!");
+		#open (SOURCE,"$Master/texmf/tex/generic/config/language.us")
+		#	or die("Cannot open $Master/texmf/tex/generic/config/language.us");
+		#while (<SOURCE>) { print USLANG; }
+		#close (SOURCE);
+		print USLANG "% DO NOT CHANGE THE FOLLOWING LINE UNLESS YOU\n";
+		print USLANG "% REALLY KNOW WHAT YOU ARE DOING\n";
+		print USLANG "USEFILE /usr/share/texmf-texlive/tex/generic/config/language.us /usr/share/texmf-texlive/tex/generic/config/language.us.def\n";
+		close (USLANG);
+	}
+}
+
+#
+# make_deb_execute_actions
+#
+# depends on global variable $globalreclevel
+# FIXXME: could be divided in get_execute_actions and
+# do_execute_actions, probably needs pass-by-reference if we don't
+# want to use global vars.
+sub make_deb_execute_actions {
+	my ($package) = @_;
+    my @Executes = get_all_executes($package,$globalreclevel);
+	my @maplines = ();
+	my @formatlines = ();
+	my @languagelines = ();
+	my $gotmapfiles = 0;
+	my $firstlang =1;
+	my %langhash = ();
+	my %formathash = ();
+	$opt_debug && print STDERR "Executes= @Executes\n";
+	my %Job;
+	for my $e (@Executes) {
+		my ($what, $first, @rest) = split ' ', $e;
+		my $instcmd;
+		my $rmcmd;
+		if ($what eq 'addMap') {
+			push @maplines, "Map $first\n";
+		} elsif ($what eq 'addMixedMap') {
+			push @maplines, "MixedMap $first\n";
+		} elsif ($what eq 'AddFormat') {
+			my %r = TeXLive::TLUtils::parse_AddFormat_line(join(" ", $first, @rest));
+			if (defined($r{"error"})) {
+				die "$r{'error'}, package $package, execute $e";
+			}
+			my $mode = ($r{"mode"} ? "" : "#! ");
+			if (defined($Config{'disabled_formats'}{$package})) {
+				next if (ismember($r{'name'}, @{$Config{'disabled_formats'}{$package}}));
+			}
+			push @formatlines, "$mode$r{'name'} $r{'engine'} $r{'patterns'} $r{'options'}\n";
+		} elsif ($what eq 'AddHyphen') {
+			my %r = TeXLive::TLUtils::parse_AddHyphen_line(join(" ", $first, @rest));
+			my $lline = "name=$r{'name'} file=$r{'file'} lefthyphenmin=$r{'lefthyphenmin'} righthyphenmin=$r{'righthyphenmin'}";
+			my @syns;
+			@syns = @{$r{"synonyms"}} if (defined($r{"synonyms"}));
+			if ($#syns >= 0) {
+				$lline .= " synonyms=" . join(",",@syns);
+			}
+			push @languagelines, "$lline\n";
+		}
+	}
+	if ($#maplines >= 0) {
+		open(OUTFILE, ">$debdest/$package.maps")
+			or die("Cannot open $debdest/$package.maps");
+		foreach (@maplines) { print OUTFILE; }
+		close(OUTFILE);
+	}
+	if ($#formatlines >= 0) {
+		open(OUTFILE, ">$debdest/$package.formats")
+			or die("Cannot open $debdest/$package.formats");
+		foreach (@formatlines) { print OUTFILE; }
+		close(OUTFILE);
+	}
+	if ($#languagelines >= 0) {
+		open(OUTFILE, ">$debdest/$package.hyphens")
+			or die("Cannot open $debdest/$package.hyphens");
+		foreach (@languagelines) { print OUTFILE; }
+		close(OUTFILE);
+	}
+}
+
+#
+# make_deb
+#
+sub make_deb {
+	# my function
+	#
+	# do_special ($originalfilename, $finaldestinationfilename)
+	#
+	# Do special actions as specified in the config file, like install info
+	# etc
+	our @SpecialActions = ();
+	sub do_special {
+		my ($origfn, $finalfn) = @_;
+		our @SpecialActions;
+		SPECIALS: foreach my $special (@{$TeXLive{'all'}{'special_actions_config'}}) {
+			my ($pat, $act) = ($special =~ m/(.*):(.*)/);
+			if ($origfn =~ m|$pat$|) {
+				if ($act eq "install-info") {
+					push @SpecialActions, "install-info:$origfn";
+				} else {
+					print STDERR "Unknown special action $act, terminating!\n";
+					exit 1;
+				}
+			}
+		}
+	}
+	# real start
+	my ($package) = @_;
+	my %lists = %{&get_all_files($package,$globalreclevel)};
+	my $title = $TeXLive{'binary'}{$package}{'title'};
+	my $description = $TeXLive{'binary'}{$package}{'description'};
+	eval { mkpath($rundest) };
+	if ($@) {
+		die "Couldn't create dir: $@";
+	}  
+	if ($opt_debug) {
+		print STDERR "SOURCEFILES: ", @{$lists{'SourceFiles'}}, "\n";
+		print STDERR "RUNFILES: ", @{$lists{'RunFiles'}}, "\n";
+		print STDERR "DOCFILES: ", @{$lists{'DocFiles'}}, "\n";
+		print STDERR "BINFILES: ", @{$lists{'BinFiles'}}, "\n";
+	}
+# 	# clean @configfiles
+	@{$configfiles{$package}} = ();
+	&mkpath($docdest);
+	#
+	# DO REMAPPINGS and COPY FILES TO DEST
+	#
+	make_deb_copy_to_rightplace($package,\%lists);
+	#
+	# EXECUTE ACTIONS
+	#
+	make_deb_execute_actions($package);
+	#
+	# Work on @SpecialActions
+	#
+	my @infofiles = ();
+	foreach my $l (@SpecialActions) {
+		my ($act, $fname) = ($l =~ m/(.*):(.*)/);
+		if ($act eq "install-info") {
+			push @infofiles, "$fname";
+		} else {
+			print STDERR "Unknown action, huuu, where does this come from: $act, exit!\n";
+			exit 1;
+		}
+	}
+	if ($#infofiles >=0) {
+		open(INFOLIST, ">$debdest/$package.info")
+		    or die("Cannot open $debdest/$package.info");
+		foreach my $f (@infofiles) {
+			print INFOLIST "$f\n";
+		}
+		close(INFOLIST);
+	}
+}
+
+#
+# make_maintainer
+#
+# create maintainer scripts. 
+# This function uses global vars: @{$configfiles{$package}}, $debdest
+#
+sub make_maintainer {
+	sub merge_into {
+		my ($source_fname, $target_fhandle) = @_;
+		if (-e "$source_fname") {
+			open(SOURCE,"<$source_fname")
+			    or die("Cannot open $source_fname");
+			while (<SOURCE>) { print $target_fhandle $_; }
+			close(SOURCE);
+		}
+	}
+	my ($package,$debdest) = @_;
+	print "Making maintainer scripts for $package in $debdest...\n";
+	&mkpath($debdest);
+	for my $type (qw/postinst preinst postrm prerm/) {
+		$opt_debug && print STDERR "Handling $type ";
+		if ((-r "$debdest/$type.pre") ||
+			(-r "$debdest/$type.post") ||
+			(-r "$debdest/$package.$type.pre") || 
+			(-r "$debdest/$package.$type.post") ||
+			( ($type ne "prerm") && ($#{$configfiles{$package}} >= 0) )) 
+		{
+			$opt_debug && print STDERR "\nconfigfiles:\n@{$configfiles{$package}}\n";
+			open(MAINTSCRIPT, ">$debdest/$package.$type")
+				or die("Cannot open $debdest/$package.$type for writing");
+			print MAINTSCRIPT "#!/bin/sh -e\n";
+			merge_into("$debdest/common.functions", MAINTSCRIPT);
+			merge_into("$debdest/common.functions.$type", MAINTSCRIPT);
+			merge_into("$debdest/$type.pre", MAINTSCRIPT);
+			merge_into("$debdest/$package.$type.pre", MAINTSCRIPT);
+			# handling of conffile moves (2005 has /etc/texmf/texlive, 2007 has /etc/texmf)
+			#
+			# preinst moves, postinst renames conffile to
+			# conffile.dpkg-new if it was previously deleted, postrm
+			# makes error-unwind for preinst.
+			# prerm needs no code.
+			my $maintscript_func = "handle_config_file_" . $type;
+			if (! @{$configfiles{$package}} && $opt_debug ) { print "\nNo conffiles for this package\n"};
+			CONFMOVE: do {
+				foreach my $cf (@{$configfiles{$package}}) {
+					print MAINTSCRIPT "$maintscript_func $cf \$1 \$2\n"
+				}
+			} unless ($type eq "prerm");
+			# add debhelper stuff and post-parts.
+			print MAINTSCRIPT "\n#DEBHELPER#\n";
+			merge_into("$debdest/$package.$type.post", MAINTSCRIPT);
+			merge_into("$debdest/$type.post", MAINTSCRIPT);
+			print MAINTSCRIPT "exit 0\n";
+			close MAINTSCRIPT;
+		}
+		$opt_debug && print STDERR " done.\n";
+	}
+}
+
+#
+# get_texmf_relpath
+#
+sub get_texmf_relpath {
+	my ($filename) = @_;
+	$filename =~ s{texmf-dist}{texmf};
+	$filename =~ s{texmf-doc}{texmf};
+	$filename =~ s{texmf/}{};
+	return $filename;
+}
+
+#
+# do_remap_and_copy
+#
+# policy for mapping lines:
+# ALL file names in the last field are:
+# - either ABSOLUTE filenames in the sense of the final installation
+#   example:
+#     mapping;texmf/tex/generic/config/language.dat;link;/var/lib/texmf/tex/generic/config/language.dat
+# - relative filenames in which case 
+#         $texmfdist  =   /usr/share/texmf-texlive
+#   is prepended, eg:
+#        mapping;texmf-dist/fonts/map/dvips/ibygrk/ibycus4.map;remap;fonts/source/public/ibygrk/ibycus4.map
+#   in this case ibycus4.map is remapped to 
+#     /usr/share/texmf-texlive/fonts/source/public/ibygrk/ibycus4.map
+#
+# The filenames CAN contain backreferences to patterns:
+# mapping;texmf[^/]*/doc/man/man(.*)/(.*);remap;/usr/share/man/man$1/$2
+#
+sub do_remap_and_copy {
+	# my functions
+	#
+	# here the mapping from texlive pathes to debian pathes is done
+	#
+	sub make_destinationname {
+		my ($path) = @_;
+		$path =~ s#^texmf-dist#$texmfdist#;
+		#
+		# we do map *ALL* files into $texmfdist, not only the dist files
+		#
+		$path =~ s#^texmf/#$texmfdist/#;
+		return("$path");
+	}
+	sub absolute_path {
+		my ($inpath) = @_;
+		if ($inpath =~ m,^/,) {
+			# absolute path, just return it
+			return ($inpath);
+		} else {
+			# relative path name add /usr/share/$texmfdist
+			return ("$runcomponent/$texmfdist/$inpath");
+		}
+	}
+	# real start
+	my ($package,$file,$defaultpathcomponent,$finalremap,$finaldest) = @_;
+	my $gotremapped = 0;
+	my $returnvalue = "**NOTSET**";
+	my $defaultdestname = make_destinationname($file);
+	$opt_debug && print STDERR "DESTINATION NAME = $defaultdestname\n";
+
+	MAPPINGS: foreach my $maplines (@{$TeXLive{'all'}{'filemappings'}}) {
+		my ($pat, $dest) = ($maplines =~ m/(.*):(.*)/);
+		if ($file =~ m|$pat$|) {
+			$gotremapped = 1;
+			my $act = $TeXLive{'all'}{'file_map_actions'}{$pat};
+			my $supplieddestname;
+			# this evaluation is NECESSARY since the last entries in the 
+			# file mappings can contain back references to patterns in $pat!!!
+			my $foo="\$supplieddestname = \"$dest\"";
+			eval $foo;
+			$supplieddestname = absolute_path($supplieddestname);
+			$opt_debug && print STDERR "REMAP HIT f=$file\nsupplieddestname=$supplieddestname\npat=$pat\ndest=$dest\n";
+			# if you add possible actions here, also add them to the list in tpm2deb.cfg
+			if (($act eq "move") || ($act eq "config-move")) {
+				# remap MOVES the file to the new position
+				$opt_debug && print STDERR "remap\n";
+				&mkpath(dirname("$basedir$supplieddestname"));
+				mycopy("$Master/$file","$basedir$supplieddestname");
+				$returnvalue = $supplieddestname;
+				if ($act eq "config-move") { 
+					push @{$configfiles{$package}}, "$supplieddestname" ;
+				}
+			} elsif (($act eq "copy") || ($act eq "config-copy")) {
+				$opt_debug && print STDERR "copy\n";
+				# first install it into the normal path
+				mycopy("$Master/$file","$basedir$defaultpathcomponent/$defaultdestname");
+				# now the same as in remap/config-remap
+				&mkpath(dirname("$basedir$supplieddestname"));
+				mycopy("$Master/$file","$basedir$supplieddestname");
+				$returnvalue = $supplieddestname;
+				if ($act eq "config-copy") { 
+					push @{$configfiles{$package}}, "$supplieddestname" ;
+				}
+			} elsif ($act eq "copy-move") {
+				$opt_debug && print STDERR "copy-move\n";
+				my ($configpath,$secondpath) = split(/,/ , $supplieddestname);
+				$opt_debug && print STDERR "installing into $configpath and $secondpath\n";
+				# first install it into the config path
+				&mkpath(dirname("$basedir$configpath"));
+				mycopy("$Master/$file","$basedir$configpath");
+				# now the other path (/usr/share/$package or similar)
+				mycopy("$Master/$file","$basedir$secondpath");
+				# return the config path
+				$returnvalue = $configpath;
+			} elsif ($act eq "link") {
+				# make the defaultdestname a LINK to the supplieddestname,
+				# but do NOT create the supplieddestname
+				$opt_debug && print STDERR "link\n";
+				&mkpath(dirname("$basedir$defaultpathcomponent/$defaultdestname"));
+				unless ($opt_onlyscripts == 1) {
+					symlink("$supplieddestname", "$basedir$defaultpathcomponent/$defaultdestname") or
+					die "Cannot symlink $basedir$defaultpathcomponent/$defaultdestname -> $supplieddestname: $!\n"
+				};
+				$returnvalue = $supplieddestname;
+			} elsif (($act eq "move-link") || ($act eq "config-move-link")) {
+				$opt_debug && print STDERR "move-link\n";
+				# move the file to the new location, and create a link
+				# from the defaultdestname -> supplieddestname
+				&mkpath(dirname("$basedir$supplieddestname"));
+				mycopy("$Master/$file","$basedir$supplieddestname");
+				&mkpath(dirname("$basedir$defaultpathcomponent/$defaultdestname"));
+				unless ($opt_onlyscripts == 1) {
+					symlink($supplieddestname, "$basedir$defaultpathcomponent/$defaultdestname") or
+						die "Cannot symlink $basedir$defaultpathcomponent/$defaultdestname -> $supplieddestname: $!\n"
+				};
+				if ($act eq "config-move-link") { 
+					push @{$configfiles{$package}}, "$supplieddestname" ;
+				}
+				$returnvalue = $supplieddestname; ## ?? or $defaultdestname????
+			} elsif ($act eq "add-link") {
+				$opt_debug && print STDERR "add-link\n";
+				# install the file in its default location, but add a
+				# symlink $supplieddestname -> $defaultdestname
+				mycopy("$Master/$file","$basedir$defaultpathcomponent/$defaultdestname");
+				&mkpath(dirname("$basedir$supplieddestname"));
+				unless ($opt_onlyscripts == 1) {
+					symlink("$defaultpathcomponent/$defaultdestname","$basedir$supplieddestname") or
+						die "Cannot symlink, $basedir$supplieddestname -> $defaultpathcomponent/$defaultdestname: $!\n"
+				};
+				$returnvalue = "$defaultpathcomponent/$defaultdestname";
+			} elsif ($act eq "replace-link") {
+				$opt_debug && print STDERR "replace-link\n";
+				# $supplieddestname must be of the form aaa%bbb 
+				# make aaa -> bbb and do nothing else
+				my ($a,$b) = split(/%/,$supplieddestname);
+				my $aa = absolute_path($a);
+				&mkpath(dirname("$basedir$aa"));
+				unless ($opt_onlyscripts == 1) {
+					symlink($b,"$basedir$aa") or die "Cannot symlink $basedir$aa -> $b: $!\n"
+				};
+				$returnvalue = $b;
+			} elsif ($act eq "") {
+				$opt_debug && print STDERR ":empty:\n";
+				$returnvalue = "";
+				# do nothing, the file is killed
+			} else {
+				print STDERR "maplines=$maplines\nact = $TeXLive{'all'}{'file_map_actions'}{$pat}\n";
+				print STDERR "Unknown action $act in config file, terminating!\n";
+				exit 1;
+			}
+			last MAPPINGS;
+		}
+	}
+	if ($gotremapped == 0) {
+		if ($finalremap ne "" && $defaultdestname =~ m|$finalremap|) {
+			my $foo="\$finaldest = \"$finaldest\"";
+			eval $foo;
+			$opt_debug && print STDERR "finalremap COPY: $finaldest\n";
+			&mkpath(dirname("$basedir$finaldest"));
+			mycopy("$Master/$file","$basedir$finaldest");
+			$returnvalue = $finaldest;
+		} else {
+			$opt_debug && print STDERR "NORMAL COPY: $basedir$defaultpathcomponent/$defaultdestname\n";
+			&mkpath(dirname("$basedir$defaultpathcomponent/$defaultdestname"));
+			mycopy("$Master/$file","$basedir$defaultpathcomponent/$defaultdestname");
+			$returnvalue = "$defaultpathcomponent/$defaultdestname";
+		}
+	}
+	return($returnvalue);
+}
+
+### Local Variables:
+### perl-indent-level: 4
+### tab-width: 4
+### indent-tabs-mode: t
+### End:
+# vim:set tabstop=4: #
--- texlive-base-2009.orig/debian/common.functions.preinst
+++ texlive-base-2009/debian/common.functions.preinst
@@ -0,0 +1,141 @@
+# common.functions.preinst start
+# $Id: common.functions.preinst 3435 2008-06-23 19:54:16Z frank $
+
+dpkg_md5sum()
+{
+    conffile="$1"
+    package="$2"
+    md5sum=$(dpkg-query -W -f='${Conffiles}' "$package" \
+            | grep -F " $conffile " | cut -d ' ' -f 3)
+    if [ -z "$md5sum" ]; then
+        echo "$conffile: md5sum not known." >&2
+        echo "It seems that this file is not handled by dpkg conffiles." >&2
+        # don't exit but return empty md5sum
+        md5sum=""
+        # exit 1
+    fi
+    echo $md5sum
+}
+
+check_move ()
+{
+    dodelete="$1"
+    orig="$2"
+    local package
+    package="$3"
+    new="$4"
+    version="$5"
+    if [ -r "$orig" ] ; then
+      mdorig=$(dpkg_md5sum "$orig" "$package")
+      if [ $(md5sum "$orig" | cut -f 1 -d ' ') = "$mdorig" ] ; then
+        rm "$orig"
+      else
+        mkdir -p $(dirname "$new")
+        mv "$orig" "$new".preinst-copy
+      fi
+    else
+      if [ -n "$version" ]; then
+	# there is a previous version, we are actually upgrading 
+        # (or reinstalling)
+        # in case we handle a foreign conffile (different package) $dodelete
+        # can be set to 0 (or != 1) in which case the .preinst-deleted file
+        # will not be created.
+        if [ "$dodelete" = 1 ] ; then
+          mkdir -p $(dirname "$new")
+          touch $new.preinst-deleted
+        fi
+      fi
+    fi
+}
+
+#
+# handle_config_file_preinst/postinst/prerm/postrm
+# handle those config files which are left over from old texlive and
+# tetex installations
+handle_config_file_preinst ()
+{
+    cfgfile="$1"
+    action="$2"
+    version="$3"
+    upgrade_needed=false
+    case "$action" in
+      install|upgrade)
+	if [ -n "$version" ] && dpkg --compare-versions "$version" ge 2007; then
+	  return 0
+	fi
+	;;
+      *)
+	return 0
+	;;
+    esac
+    
+    conf_relpath=${cfgfile#/etc/texmf/}
+    conf_oldpath="/etc/texmf/texlive/$conf_relpath"
+    # default package is texlive-base-bin
+    package=texlive-base-bin
+    case "$cfgfile" in 
+        /etc/texmf/dvips/config/*)
+            # special case for dvips config
+            conf_oldpath="/etc/texmf/texlive/dvips/${conf_oldpath#/etc/texmf/texlive/dvips/config/}"
+            ;;
+        # files which were only present in tetex
+        /etc/texmf/texdoctk/texdoctk.dat)
+            package=tetex-base
+            conf_oldpath="/etc/texdoctk/texdoctk.dat"
+            ;;
+        # symlink target had a different name
+        /etc/texmf/dvipdfm/config/config)
+            conf_oldpath="/etc/texmf/texlive/dvipdfm.cfg"
+            ;;
+        # for xdvi.cfg we first want to move tetex files, and later texlives
+        /etc/texmf/xdvi/xdvi.cfg)
+            # tetex version
+            # it could either be deleted, or tetex was never installed.
+            # We do not want to create .preinst-deleted, so we call
+            # check_move with first argument 0 which means that the
+            # preinst-deleted file will not be created
+            check_move 0 /etc/texmf/xdvi.cfg tetex-bin /etc/texmf/xdvi/xdvi.cfg $version
+            # now set the conf_oldpath to the texlive version
+            conf_oldpath="/etc/texmf/texlive/xdvi.cfg"
+            ;;   
+    esac
+    check_move 1 $conf_oldpath $package $cfgfile $version
+}
+
+resurrect_conffile_sid(){
+  cfgfile="$1"
+  package="$2"
+  action="$3"
+  version="$4"
+  template_source="/usr/share/$package"
+  basefile=$(basename $cfgfile)
+  dirname=$(dirname $cfgfile)
+
+  # continue only in the following cases:
+  # - we are upgrading
+  # - at least from version 2007 (not etch=2005)
+  case "$action" in
+    upgrade)
+      if [ -n "$version" ] && dpkg --compare-versions "$version" ge 2007; then
+        : do nothing
+      else
+        return 0
+      fi
+    ;;
+    *)
+      return 0
+    ;;
+  esac
+
+  if ! [ -f "$cfgfile" ]; then
+    mkdir -p $dirname
+    echo "Reinstalling deleted mandatory conffile $basefile" >&2
+    cp $template_source/$basefile $cfgfile
+  fi
+}
+
+# common.functions.preinst end
+# Local Variables:
+# mode: shell-script
+# End:
+# vim:set expandtab: #
--- texlive-base-2009.orig/debian/texlive-latex-base.install
+++ texlive-base-2009/debian/texlive-latex-base.install
@@ -0,0 +1,2 @@
+texmf/doc/man/man1/latex.1	usr/share/man/man1
+texmf/doc/man/man1/pdflatex.1	usr/share/man/man1
--- texlive-base-2009.orig/debian/texlive-base.links.dist
+++ texlive-base-2009/debian/texlive-base.links.dist
@@ -0,0 +1,3 @@
+usr/share/texmf-texlive/scripts/simpdftex/simpdftex usr/bin/simpdftex
+usr/share/texmf-texlive/scripts/texdoc/texdoc.tlu usr/bin/texdoc
+usr/share/texmf-texlive/scripts/tetex/texdoctk.pl usr/bin/texdoctk
--- texlive-base-2009.orig/debian/texlive-latex-recommended.install
+++ texlive-base-2009/debian/texlive-latex-recommended.install
@@ -0,0 +1 @@
+texmf/doc/man/man1/thumbpdf.1	usr/share/man/man1
--- texlive-base-2009.orig/debian/tpm2debcommon.pm
+++ texlive-base-2009/debian/tpm2debcommon.pm
@@ -0,0 +1,847 @@
+#!/usr/bin/perl
+#
+# tpm2deb-common.pl
+# machinery to create debian packages from TeX Live depot
+# (c) 2005, 2006, 2007, 2008 Norbert Preining
+#
+# $Id: tpm2debcommon.pm 4191 2009-09-15 18:02:48Z frank $
+#
+# configuration is done via the file tpm2deb.cfg
+#
+#
+# please see the README file in the pkg-texlive svn repository of the
+# debian-tex project on alioth.debian.org
+
+package tpm2debcommon;
+use Exporter ();
+@ISA = qw( Exporter );
+@EXPORT_OK = qw (
+	build_data_hash check_consistency
+	initialize_config_file_data is_blacklisted get_all_files 
+	get_all_executes myopen mycopy ismember
+	%TeXLive %Config
+);
+@EXPORT = @EXPORT_OK;
+
+# keys(%TeXLive{$package}) = extra_format, uploaders, section,
+#       standards, build_dep_indep, build_dep, priority, description, title,
+#       license, sourcefiles, runfiles, docfiles, binfiles,
+#       realtype, type, replaces, provides, recommends, suggests,
+#       conflicts, depends, includedpackages, executes
+#
+# keys(%Config) = 
+#                 add_execute, title, description, depends, conflicts,
+#                 suggests, recommends provides, maintainer
+
+use strict;
+no strict 'refs';
+use warnings;
+no warnings 'uninitialized';
+
+
+#use Strict;
+use Getopt::Long;
+use File::Basename;
+use File::Copy;
+use File::Path;
+use File::Temp qw/ tempfile tempdir /;
+use Cwd;
+
+
+our (%TeXLive,%Config);
+
+my $opt_debug;
+my $opt_onlyscripts;
+my $Master;
+sub use_global_vars {
+  $opt_debug = $main::opt_debug;
+  $opt_onlyscripts = $main::opt_onlyscripts;
+  $Master = $main::Master;
+}
+
+
+sub build_data_hash {
+	
+	sub tpm2debname {
+		my @list_of_debnames = ();
+		foreach my $pkg (@_) {
+			if (defined($Config{'name_mapping'}{$pkg})) {
+				push @list_of_debnames, $Config{'name_mapping'}{$pkg};
+			} else {
+				push @list_of_debnames, $pkg;
+			};
+		}
+		return(@list_of_debnames);
+	}
+	# start real work
+	print "Building data hash ...\n";
+	#
+	# we now build the information used for building the packages
+	# this should merge the tpm data and the config file data
+	# after this we check on consistency
+	#
+	# The data will be stored in %TeXLive{'binary'}{$package}{'item'}
+	# where item is in: depend, suggest, conflict, execute, description
+	# title, packages, docfiles, binfiles, runfiles, sourcefiles,
+	# remotefiles, tltype, license for binary packages, and in
+	# %TeXLive{'source'}{$package}{'item'} .... for source packages.
+	#
+	# Note that the keys in %TeXLive are *different* package names than
+	# the collection names!
+	#
+	# First the binary part
+	my @collections = ();
+	foreach my $bin_pkg ($::tlpdb->list_packages()) {
+		next if ($bin_pkg =~ m/^00texlive/);
+		if ($bin_pkg =~ m/\.(.*)$/) {
+			next if ("$1" ne "i386-linux");
+		}
+		#
+		# TODO TODO TODO
+		# what todo with texlive.infra!!!!
+		next if is_blacklisted ($bin_pkg, "");
+		if ($bin_pkg =~ m/^(.*)\.i386-linux/) {
+			next if is_blacklisted( $1, "");
+		}
+		my $tlp = $::tlpdb->get_package($bin_pkg);
+		die "Cannot get $bin_pkg from tlpdb!" unless defined($tlp);
+		my ($pkg) = tpm2debname($bin_pkg);
+		my $realtype = $tlp->category;
+		next if ($realtype eq "Scheme");
+		if ($realtype eq "Collection") {
+			push @collections, $pkg;
+		}
+		# we consider everything either as collection or as package, no
+		# difference what so ever
+		my $faketype = ($realtype eq "Collection") ? $realtype : "Package";
+		#
+		# we consider TLCore packages as normal packages
+		# since what we actually ship are the collections
+		$TeXLive{'binary'}{$pkg}{'type'} 	       = $faketype;
+		$TeXLive{'binary'}{$pkg}{'realtype'}        = $realtype;
+		my %foo = %{$tlp->binfiles};
+		if (defined($foo{'i386-linux'})) {
+			$TeXLive{'binary'}{$pkg}{'binfiles'}    = [ @{$foo{'i386-linux'}} ];
+		} else {
+			$TeXLive{'binary'}{$pkg}{'binfiles'}    = [ ];
+		}
+		$TeXLive{'binary'}{$pkg}{'docfiles'}    = [ $tlp->docfiles ];
+		$TeXLive{'binary'}{$pkg}{'runfiles'}    = [ $tlp->runfiles ];
+		$TeXLive{'binary'}{$pkg}{'sourcefiles'} = [ $tlp->srcfiles ];
+		$TeXLive{'binary'}{$pkg}{'license'}     = $tlp->cataloguedata->{'license'};
+		# items that can be overwritten by the configuration file
+		$TeXLive{'binary'}{$pkg}{'title'} =
+			$Config{'title'}{$pkg} ? 
+				$Config{'title'}{$pkg} : $tlp->shortdesc;
+		$TeXLive{'binary'}{$pkg}{'description'} =
+			$Config{'description'}{$pkg} ?
+				$Config{'description'}{$pkg} : $tlp->longdesc;
+		#
+		# executes
+		#
+		my @executes = $tlp->executes;
+		if (defined($Config{'add_execute'}{$pkg})) {
+			foreach my $e (@{$Config{'add_execute'}{$pkg}}) {
+				if (grep(/$e/,@executes) == 0) {
+					push (@executes, $e);
+				}
+			}
+		}
+		$TeXLive{'binary'}{$pkg}{'executes'} = [ @executes ];
+		#
+		# included packages
+		#
+		my @requires = $tlp->depends;
+		my @packs = ();
+		my @depends = ();
+		foreach my $dep (@requires) {
+			$dep =~ s/\.ARCH/.i386-linux/;
+			my $deptlp = $::tlpdb->get_package($dep);
+			if (!defined($deptlp)) {
+				printf STDERR "Cannot find $dep!\n";
+				next;
+			}
+			my $depcat = $deptlp->category;
+			#
+			# dependencies on collections are handled below
+			if ($depcat eq "Collection") {
+				push @depends, $dep;
+				next;
+			}
+			#
+			# if the package is moved somewhere else, ignore it
+			if (defined($Config{'moved_to'}{$dep})) { 
+				next; 
+			}
+			if (!is_blacklisted($dep,$pkg)) { push @packs, $dep; } 
+		}
+		# normally collections contain all sub-dependencies, ie we
+		# dont have deps of deps to consider.
+		# One exception is the .ARCH dep. collection-basicbin depends
+		# on bin-bibtex which in turn depends on bin-bibtex.ARCH
+		# but the original collection does not depend on bin-bibtex.ARCH
+		if ($realtype eq "Collection") {
+			push @packs, @{$Config{'extra_packages'}{$pkg}}
+				if defined($Config{'extra_packages'}{$pkg});
+			# work through all @packs and see if we find a .ARCH one
+			my @addpacks;
+			foreach my $p (@packs) {
+				next if (!defined($::tlpdb->get_package($p)));
+				foreach my $d ($::tlpdb->get_package($p)->depends) {
+					if ($d =~ m/\.ARCH/) {
+						if (defined($::tlpdb->get_package("$p.i386-linux"))) {
+							push @addpacks, "$p.i386-linux";
+						}
+					}
+				}
+			}
+			push @packs, @addpacks;
+		}
+		$TeXLive{'binary'}{$pkg}{'includedpackages'} = [ @packs ];
+		#
+		# depends
+		#
+		# we have to collect the depends from the config file and the 
+		# direct tpm dependencies
+		@depends = tpm2debname(@depends);
+		if ($pkg ne "texlive-common") {
+			push @depends, "texlive-common (>= $TeXLive{'all'}{'tl_common_version'})";
+		}
+		#
+		if (defined($Config{'depends'}{$pkg})) {
+			push @depends, @{$Config{'depends'}{$pkg}};
+		}
+		# what about ${shlibs:Depends}
+		$TeXLive{'binary'}{$pkg}{'depends'} = [ @depends ];
+		#
+		# other relations
+		#
+		if (defined($Config{'conflicts'}{$pkg})) {
+			$TeXLive{'binary'}{$pkg}{'conflicts'} = [ @{$Config{'conflicts'}{$pkg}} ];
+		}
+		if (defined($Config{'suggests'}{$pkg})) {
+			$TeXLive{'binary'}{$pkg}{'suggests'} = [ @{$Config{'suggests'}{$pkg}} ];
+		}
+		if (defined($Config{'recommends'}{$pkg})) {
+			$TeXLive{'binary'}{$pkg}{'recommends'} = [ @{$Config{'recommends'}{$pkg}} ];
+		}
+		if (defined($Config{'provides'}{$pkg})) {
+			$TeXLive{'binary'}{$pkg}{'provides'} = [ @{$Config{'provides'}{$pkg}} ];
+		}
+		if (defined($Config{'replaces'}{$pkg})) {
+			$TeXLive{'binary'}{$pkg}{'replaces'} = [ @{$Config{'replaces'}{$pkg}} ];
+		}
+		if (defined($Config{'bin-section'}{$pkg})) {
+			$TeXLive{'binary'}{$pkg}{'section'} = $Config{'bin-section'}{$pkg};
+		}
+	}
+	#
+	# we do the doc splitting now
+	foreach my $coll (@collections) {
+		if (is_blacklisted($coll,"")) { next; }
+		my ($bin_pkg) = tpm2debname("$coll");
+		if (defined($Config{'docsplitting'}{$bin_pkg})) {
+			my $doc_pkg = "$bin_pkg-doc";
+			# first creat new bin package and add doc files
+
+			$TeXLive{'binary'}{$doc_pkg}{'section'} = "doc" ; 
+			$TeXLive{'binary'}{$doc_pkg}{'type'}        = 'Collection';
+			$TeXLive{'binary'}{$doc_pkg}{'realtype'}    = 'Collection';
+			# we don't want to move man pages!!!
+			my @p = ();
+			my @pd = ();
+			foreach my $f (@{$TeXLive{'binary'}{$bin_pkg}{'docfiles'}}) {
+				# the following is a hack but necessary
+				# we do move some files from doc dirs to non doc dirs using
+				# mapping;orig;move;target
+				# but these files are listed as doc-files we DONT want to move!
+				# In fact we should check for a pair
+				# 	$f:xxxx
+				# in @{$TeXLive{'all'}{'filemappings'}} and check that xxxx is 
+				# NOT a doc file ... but who cares ...
+				if (defined($TeXLive{'all'}{'file_map_actions'}{$f}) && 
+							($TeXLive{'all'}{'file_map_actions'}{$f} eq "move")) {
+					push @p, $f;
+				} else {
+					if ($f =~ m;texmf[^/]*/doc/man/man.*/.*;) {
+						push @p, $f;
+					} else {
+						push @pd, $f;
+					}
+				}
+			}
+			$TeXLive{'binary'}{$doc_pkg}{'docfiles'}    = [ @pd ];
+			$TeXLive{'binary'}{$bin_pkg}{'docfiles'} = [ @p ];
+			$TeXLive{'binary'}{$doc_pkg}{'license'}     = $TeXLive{'binary'}{$bin_pkg}{'license'};
+			$TeXLive{'binary'}{$doc_pkg}{'title'} = "Documentation files for $bin_pkg";
+			$TeXLive{'binary'}{$doc_pkg}{'description'} = "This package provides the documentation for $bin_pkg";
+			# what else do we have to set here ????
+			#
+			# the doc package needs to depend on texlive-common, it
+			# doesn't get this dependency as ordinary packages do
+			$TeXLive{'binary'}{$doc_pkg}{'depends'} = 
+				[ @{$TeXLive{'binary'}{$doc_pkg}{'depends'}}, 
+				  "texlive-common (>= $TeXLive{'all'}{'tl_common_version'})" 
+				];
+			# add a recommends for the normal package on the doc pkg.
+			$TeXLive{'binary'}{$bin_pkg}{'recommends'} = [ @{$TeXLive{'binary'}{$bin_pkg}{'recommends'}}, "$bin_pkg-doc" ];
+			# add source mapping
+			my $srcpkg = $TeXLive{'binary'}{$bin_pkg}{'source_package'};
+			$TeXLive{'source'}{$srcpkg}{'binary_packages'} = [ @{$TeXLive{'source'}{$srcpkg}{'binary_packages'}}, $doc_pkg ];
+			#
+			# necessary relations from the config file
+			#
+			# we need texlive-common (for tex-common)
+			push @{$TeXLive{'binary'}{$doc_pkg}{'depends'}}, "texlive-common (>= $TeXLive{'all'}{'tl_common_version'})";
+			if (defined($Config{'depends'}{$doc_pkg})) {
+				$TeXLive{'binary'}{$doc_pkg}{'depends'} = [ @{$Config{'depends'}{$doc_pkg}} ];
+			}
+			if (defined($Config{'conflicts'}{$doc_pkg})) {
+				$TeXLive{'binary'}{$doc_pkg}{'conflicts'} = [ @{$Config{'conflicts'}{$doc_pkg}} ];
+			}
+			if (defined($Config{'suggests'}{$doc_pkg})) {
+				$TeXLive{'binary'}{$doc_pkg}{'suggests'} = [ @{$Config{'suggests'}{$doc_pkg}} ];
+			}
+			if (defined($Config{'recommends'}{$doc_pkg})) {
+				$TeXLive{'binary'}{$doc_pkg}{'recommends'} = [ @{$Config{'recommends'}{$doc_pkg}} ];
+			}
+			if (defined($Config{'provides'}{$doc_pkg})) {
+				$TeXLive{'binary'}{$doc_pkg}{'provides'} = [ @{$Config{'provides'}{$doc_pkg}} ];
+			}
+			if (defined($Config{'replaces'}{$doc_pkg})) {
+				$TeXLive{'binary'}{$doc_pkg}{'replaces'} = [ @{$Config{'replaces'}{$doc_pkg}} ];
+			}
+			#
+			# now we have to move all the DocFiles of all INCLUDED
+			# package/tpms into $bin_pkg and remove them from the original
+			# packages
+			#
+			# For an explanation of the code see above!
+			foreach my $incpkg (@{$TeXLive{'binary'}{$bin_pkg}{'includedpackages'}}) {
+				my @p = ();
+				my @pd = ();
+				foreach my $f (@{$TeXLive{'binary'}{$incpkg}{'docfiles'}}) {
+					if (defined($TeXLive{'all'}{'file_map_actions'}{$f}) && 
+								($TeXLive{'all'}{'file_map_actions'}{$f} eq "move")) {
+						push @p, $f;
+					} else {
+						if ($f =~ m;texmf[^/]*/doc/man/man.*/.*;) {
+							push @p, $f;
+						} else {
+							push @pd, $f;
+						}
+					}
+				}
+				$TeXLive{'binary'}{$doc_pkg}{'docfiles'}    = [ @{$TeXLive{'binary'}{$doc_pkg}{'docfiles'}}, @pd ];
+				$TeXLive{'binary'}{$incpkg}{'docfiles'} = [ @p ];
+			}
+		}
+	}
+	#
+	# Now for the source part
+	#
+	for my $srcpkg (@{$TeXLive{'all'}{'sources'}}) {
+		$TeXLive{'source'}{$srcpkg}{'uploaders'}   = 
+			$Config{'uploaders'}{$srcpkg}     ? 
+				$Config{'uploaders'}{$srcpkg} : $TeXLive{'all'}{'uploaders'};
+		$TeXLive{'source'}{$srcpkg}{'maintainer'}  = 
+			$Config{'maintainer'}{$srcpkg}    ? 
+				$Config{'maintainer'}{$srcpkg} : $TeXLive{'all'}{'maintainer'};
+		$TeXLive{'source'}{$srcpkg}{'priority'} = 
+			$Config{'priority'}{$srcpkg};
+		$TeXLive{'source'}{$srcpkg}{'build_dep'} = 
+			$Config{'build_dep'}{$srcpkg};
+		$TeXLive{'source'}{$srcpkg}{'build_dep_indep'} =
+			$Config{'build_dep_indep'}{$srcpkg};
+		$TeXLive{'source'}{$srcpkg}{'standards'} =
+			$Config{'standards'}{$srcpkg};
+ 		$TeXLive{'source'}{$srcpkg}{'section'} =
+			$Config{'section'}{$srcpkg};
+	}
+	# we let texlive-common CONFLICT with all texlive packages << then the 
+	# values set in latest-version
+	my @conflictpkgs = ();
+	foreach my $source_package (@{$TeXLive{'all'}{'sources'}}) {
+		foreach my $bin_pkg (@{$TeXLive{'source'}{$source_package}{'binary_packages'}}) {
+			push @conflictpkgs, "$bin_pkg (<< $TeXLive{'source'}{$source_package}{'latest_version'})";
+		}
+	}
+	# finally we let the package "texlive-full" depend on all texlive-* packages
+	my @allpkgs = ();
+	foreach my $source_package (@{$TeXLive{'all'}{'sources'}}) {
+		foreach my $bin_pkg (@{$TeXLive{'source'}{$source_package}{'binary_packages'}}) {
+			my $addthis = 1;
+			foreach my $depends_not (@{$Config{'depends_not'}{'texlive-full'}}) {
+				$addthis = 0 if ($bin_pkg eq $depends_not);
+			};
+# 			next if ($bin_pkg eq "texlive-full");
+# 			next if ($bin_pkg eq "texlive");
+# 			next if ($bin_pkg eq "texlive-lang-all");
+# 			next if ($bin_pkg eq "tetex-bin");
+# 			next if ($bin_pkg eq "tetex-base");
+# 			next if ($bin_pkg eq "tetex-extra");
+			$addthis && push @allpkgs, "$bin_pkg (>= $TeXLive{'source'}{$source_package}{'latest_version'})";
+		}
+	}
+
+	# Additional (meta)packages
+	$TeXLive{'all'}{'meta_packages'} = [ @{$Config{'add_packages'}} ];
+	foreach my $meta_package (@{$Config{'add_packages'}}) {
+		$TeXLive{'binary'}{$meta_package}{'type'} = "TLCore" ;
+
+		# Dependencies
+		if ($meta_package eq "texlive-full") {
+			$TeXLive{'binary'}{$meta_package}{'depends'}   = [ @{$Config{'depends'}{$meta_package}}, @allpkgs ];
+		} elsif ($meta_package eq "texlive-lang-all") {
+			my @foo = ();
+			foreach my $a (@allpkgs) {
+				if ($a =~ /^texlive-lang-/) { push @foo, $a; }
+			}
+			$TeXLive{'binary'}{$meta_package}{'depends'}   = [ @{$Config{'depends'}{$meta_package}}, @foo ];
+		} else {
+			$TeXLive{'binary'}{$meta_package}{'depends'}   = [ @{$Config{'depends'}{$meta_package}} ];
+		};
+		$opt_debug && print STDERR "metapackage: $meta_package, Depends: @{$TeXLive{'binary'}{$meta_package}{'depends'}}\n";
+		$TeXLive{'binary'}{$meta_package}{'suggests'}    = [ @{$Config{'suggests'}{$meta_package}} ];
+		$TeXLive{'binary'}{$meta_package}{'recommends'}  = [ @{$Config{'recommends'}{$meta_package}} ];
+		$TeXLive{'binary'}{$meta_package}{'replaces'}    = [ @{$Config{'replaces'}{$meta_package}} ];
+		if ($meta_package eq "texlive-common") {
+			$TeXLive{'binary'}{$meta_package}{'conflicts'}   = [ @{$Config{'conflicts'}{$meta_package}}, @conflictpkgs ];
+		} else {
+			$TeXLive{'binary'}{$meta_package}{'conflicts'}   = [ @{$Config{'conflicts'}{$meta_package}} ];
+		}
+	  
+		# Short and long description
+		$TeXLive{'binary'}{$meta_package}{'title'}       = $Config{'title'}{$meta_package};
+		$TeXLive{'binary'}{$meta_package}{'description'} = $Config{'description'}{$meta_package};
+		if (defined($Config{'bin-section'}{$meta_package})) {
+			$TeXLive{'binary'}{$meta_package}{'section'} = $Config{'bin-section'}{$meta_package};
+		}
+	}
+}
+
+sub check_consistency {
+	my %UsedPackages;
+	my $raiseerror = 0;
+	my @allincludedpkgs = ();
+	my %PackageToCollection;
+
+	print "Checking consistency ... \n";
+	#
+	# first go through all the collections and collect all included
+	# packages and check on double inclusion of packages
+	#
+	my %TLB = %{$TeXLive{'binary'}};
+	foreach my $collection (keys %TLB) {
+		if ($TLB{$collection}{'type'} ne "Collection") { next; }
+		foreach my $tpm (@{$TLB{$collection}{'includedpackages'}}) {
+			$PackageToCollection{$tpm} = $collection;
+			push @allincludedpkgs, $tpm;
+			push (@{$UsedPackages{$tpm}},$collection);
+		}
+	}
+	my @badpacks = ();
+	foreach my $k (keys %UsedPackages) {
+		if (@{$UsedPackages{$k}} > 1) {
+			print STDERR "Double inclusion of $k:\n";
+			print STDERR "@{$UsedPackages{$k}}:\n";
+			push @badpacks, $k;
+		}
+	}
+	if ($#badpacks >= 0) {
+		#
+		# ujjeeee, a package is included more than once, STOP!!!
+		#
+		print ("ERROR double-inclusion @badpacks\n");
+		$raiseerror = 1;
+	}
+	#
+	# check for not included packages
+	#
+	my $binary_package;
+	foreach $binary_package (keys %TLB) {
+		if ($TLB{$binary_package}{'type'} ne "Package") { next; }
+		if (grep(/$binary_package/,@allincludedpkgs) == 0) {
+			print STDERR "ERROR not-covered $binary_package\n";
+			$raiseerror = 1;
+		}
+	}
+	#
+	# check for packages in packages which are not included or depended on
+	#
+	foreach my $c (keys %TLB) {
+		if ($TLB{$binary_package}{'type'} ne "TLCore") { next; }
+		foreach $binary_package (@{$TLB{$c}{'includedpackages'}}) {
+			foreach my $subdep (@{$TLB{$binary_package}{'includedpackages'}}) {
+				# $binary_package depends on $subdep, we have to check wether
+				# either $subdep is also included in $c
+				# or $c depends on the collection $subdep is in
+				my $subdepcoll = $PackageToCollection{$subdep};
+				# the package is included in the parent collection, ok
+				if ($subdepcoll eq $c) { next ; }
+				# the parent collection depends on the collection
+				# including the subdep by tpm depends
+				if ($subdepcoll eq "texlive-base-bin") { next; }
+				if (ismember($subdepcoll,@{$TLB{$c}{'depends'}})) { next; }
+				# ujeee, cross wise inclusion does not work
+				print STDERR "ERROR diamond\n";
+				print STDERR "There is a problem here:\n";
+				print STDERR "$c includes $binary_package\n";
+				print STDERR "\t$binary_package depends on $subdep\n";
+				print STDERR "\t$subdep is NOT included in $c\n";
+				print STDERR "$subdep is included in $subdepcoll\n";
+				print STDERR "$c does NOT depend on $subdepcoll\n";
+				print STDERR "Please fix this problem!\n";
+				$raiseerror = 1;
+			}
+		}
+	}
+	if ($raiseerror) { exit 1; }
+	print " ... tlpdb and config file are consistent, good!\n";
+}
+
+
+sub initialize_config_file_data {
+	my ($cfgfile) = @_;
+	use_global_vars();
+	print "Start loading config file ...\n";
+	open(CFGFILE,"<$cfgfile") or die "Cannot open $cfgfile\n";
+	while (<CFGFILE>) {
+		if (m/^#/) { 
+			next ; 
+		}
+		chomp;
+		my @foo;
+		my ($type, $a, @rest) = split ";";
+		$opt_debug && print STDERR  "type=$type, a=$a, ";
+		if ($type eq "depends") {
+			my ($b) = @rest;
+			$opt_debug && print STDERR  "b=$b.\n";
+			$Config{'depends'}{$a} = [ @{$Config{'depends'}{$a}}, split(/[ \t]*,[ \t]*/,$b) ];
+			next;
+		}
+		if ($type eq "recommends") {
+			my ($b) = @rest;
+			$opt_debug && print STDERR  "b=$b.\n";
+			$Config{'recommends'}{$a} = [ @{$Config{'recommends'}{$a}}, split(/[ \t]*,[ \t]*/,$b) ];
+			next;
+		}
+		if ($type eq "provides") {
+			my ($b) = @rest;
+			$opt_debug && print STDERR  "b=$b.\n";
+			$Config{'provides'}{$a} = [ @{$Config{'provides'}{$a}}, split(/[ \t]*,[ \t]*/,$b) ];
+			next;
+		}
+		if ($type eq "suggests") {
+			my ($b) = @rest;
+			$opt_debug && print STDERR  "b=$b.\n";
+			$Config{'suggests'}{$a} = [ @{$Config{'suggests'}{$a}}, split(/[ \t]*,[ \t]*/,$b) ];
+			next;
+		}
+		if ($type eq "conflicts") {
+			my ($b) = @rest;
+			$opt_debug && print STDERR  "b=$b.\n";
+			$Config{'conflicts'}{$a} = [ @{$Config{'conflicts'}{$a}}, split(/[ \t]*,[ \t]*/,$b) ];
+			next;
+		}
+		if ($type eq "replaces") {
+			my ($b) = @rest;
+			$opt_debug && print STDERR  "b=$b.\n";
+			$Config{'replaces'}{$a} = [ @{$Config{'replaces'}{$a}}, split(/[ \t]*,[ \t]*/,$b) ];
+			next;
+		}
+		if ($type eq "execute") {
+			my ($b) = @rest;
+			$opt_debug && print STDERR  "b=$b.\n";
+			$Config{'add_execute'}{$a} = [ @{$Config{'add_execute'}{$a}}, "$b" ];
+			next;
+		}
+		if ($type eq "disable_format") {
+			my ($b) = @rest;
+			$opt_debug && print STDERR "b=$b.\n";
+			$Config{'disabled_formats'}{$a} = [ @{$Config{'disabled_formats'}{$a}}, "$b" ];
+			next;
+		}
+		if ($type eq "mapping") {
+			my ($b,$c) = @rest;
+			$opt_debug && print STDERR  "b=$b, c=$c.\n";
+			push @{$TeXLive{'all'}{'filemappings'}}, "$a:$c";
+			$TeXLive{'all'}{'file_map_actions'}{$a} = $b;
+			if (($b eq "config-link") || ($b eq "config-remap")) {
+				push @{$TeXLive{'all'}{'config-files'}}, $c;
+			}
+			if ($b eq "config-copy") {
+				$a =~ s#texmf-dist#texmf#;
+				$a =~ s#texmf-doc#texmf#;
+				$a =~ s#texmf/##;
+				push @{$TeXLive{'all'}{'config-files'}}, "$c/$a";
+			}
+			next;
+		}
+		if ($type eq "blacklist") {
+			if ($a eq "file") {
+				my ($b) = @rest;
+				$opt_debug && print STDERR  "b=$b.\n";
+				push @{$TeXLive{'all'}{'file_blacklist'}}, $b;
+			} elsif ($a eq "tpm") {
+				my ($b,$c) = @rest;
+				$opt_debug && print STDERR  "b=$b, c=$c.\n";
+				$Config{'package_blacklist'}{$b} = "$c";
+			} else {
+				print STDERR "tpm2deb.cfg: Unknown blacklist directive: $_. Exiting!\n";
+				exit 1;
+			}
+			next;
+		}
+		if ($type eq "source") {
+			push @{$TeXLive{'all'}{'sources'}}, $a;
+			next;
+		}
+		if ($type eq "move") {
+			my ($b) = @rest;
+			$opt_debug && print STDERR  "b=$b.\n";
+			# move tpm $a to binary package $b
+			$Config{'moved_to'}{$a} = $b;
+			$Config{'extra_packages'}{$b} = [ @{$Config{'extra_packages'}{$b}}, $a ];
+			next;
+		}
+		if ($type eq "extra") {
+			my ($b,$c,$d) = @rest;
+			if ($a ne "format") {
+				print STDERR "tpm2deb.cfg: Unknown extra directive: $_. Exiting!\n";
+				exit 1;
+			}
+			$opt_debug && print STDERR  "b=$b, c=$c, d=$d.\n";
+			$TeXLive{'binary'}{$c}{'extra_format'}{$b} = $d;
+			next;
+		}
+		if ($type eq "arch") {
+			my ($b) = @rest;
+			$opt_debug && print STDERR  "b=$b.\n";
+			$TeXLive{'source'}{$a}{'architecture'} = $b;
+			next;
+		}
+		if ($type eq "name") {
+			my ($b,$c) = @rest;
+			$opt_debug && print STDERR  "b=$b, c=$c.\n";
+			$Config{'name_mapping'}{$a} = $b;
+			$TeXLive{'binary'}{$b}{'source_package'} = $c;
+			$TeXLive{'source'}{$c}{'binary_packages'} = [ @{$TeXLive{'source'}{$c}{'binary_packages'}}, $b ];
+			next;
+		}
+		if ($type eq "special") {
+			my ($b) = @rest;
+			$opt_debug && print STDERR  "b=$b.\n";
+			push @{$TeXLive{'all'}{'special_actions_config'}}, "$a:$b";
+			next;
+		}
+		if ($type eq "description") {
+			my ($b) = @rest;
+			$opt_debug && print STDERR  "b=$b.\n";
+			# push the next line into the description string, but
+			# avoid to get a "use of uninitialized value in concat..."
+			$Config{'description'}{$a} = 
+				($Config{'description'}{$a} ? $Config{'description'}{$a} : "") 
+				. "$b\n";
+			next;
+		}
+		if ($type eq "title") {
+			my ($b) = @rest;
+			$opt_debug && print STDERR  "b=$b.\n";
+			$Config{'title'}{$a} = "$b";
+			next;
+		}
+		if ($type eq "docsplitting") {
+			$opt_debug && print STDERR  "\n";
+			$Config{'docsplitting'}{$a} = 1;
+			next;
+		}
+		if ($type eq "build-dep") {
+			my ($b) = @rest;
+			$opt_debug && print STDERR  "b=$b.\n";
+			$Config{'build_dep'}{$a} = "$b";
+			next;
+		}
+		if ($type eq "build-dep-indep") {
+			my ($b) = @rest;
+			$opt_debug && print STDERR  "b=$b.\n";
+			$Config{'build_dep_indep'}{$a} = "$b";
+			next;
+		}
+		if ($type eq "texlive-common-version") {
+			$TeXLive{'all'}{'tl_common_version'} = "$a";
+			next;
+		}
+		if ($type eq "latest-version") {
+			my ($b) = @rest;
+			$opt_debug && print STDERR  "b=$b.\n";
+			$TeXLive{'source'}{$a}{'latest_version'} = "$b";
+			next;
+		}
+		if ($type eq "maintainer") {
+			my ($b) = @rest;
+			$opt_debug && print STDERR  "b=$b.\n";
+			if ("$a" eq "*") {
+				$TeXLive{'all'}{'maintainer'} = "$b";
+			} else {
+				$Config{'maintainer'}{$a} = "$b";
+			}
+			next;
+		}
+		if ($type eq "priority") {
+			my ($b) = @rest;
+			$opt_debug && print STDERR  "b=$b.\n";
+			if ("$a" eq "*") {
+				$TeXLive{'all'}{'priority'} = "$b";
+			} else {
+				$Config{'priority'}{$a} = "$b";
+			}
+			next;
+		}
+		if ($type eq "uploaders") {
+			my ($b) = @rest;
+			$opt_debug && print STDERR  "b=$b.\n";
+			if ("$a" eq "*") {
+				$TeXLive{'all'}{'uploaders'} = "$b";
+			} else {
+				$Config{'uploaders'}{$a} = "$b";
+			}
+			next;
+		}
+		if ($type eq "section") {
+			my ($b) = @rest;
+			$opt_debug && print STDERR  "b=$b.\n";
+			if ("$a" eq "*") {
+				$TeXLive{'all'}{'section'} = "$b";
+			} else {
+				$Config{'section'}{$a} = "$b";
+			}
+			next;
+		}
+		if ($type eq "bin-section") {
+			my ($b) = @rest;
+			$opt_debug && print STDERR  "b=$b.\n";
+			$Config{'bin-section'}{$a} = "$b";;
+			next;
+		}
+		if ($type eq "standards") {
+			my ($b) = @rest;
+			$opt_debug && print STDERR  "b=$b.\n";
+			if ("$a" eq "*") {
+				$TeXLive{'all'}{'standards'} = "$b";
+			} else {
+				$Config{'standards'}{$a} = "$b";
+			}
+			next;
+		}
+		if ($type eq "addpackages") {
+			@{$Config{'add_packages'}} = @rest;
+			$opt_debug && print STDERR "\nAdditional packages: @{$Config{'add_packages'}}\n";
+			next;
+		}
+		if ($type eq "dependsnot") {
+			@{$Config{'depends_not'}{$a}} = @rest;
+			$opt_debug && print STDERR "Dropped depends of $a on @{$Config{'depends_not'}{$a}}\n";
+			next;
+		}
+		print STDERR "tpm2deb.cfg: Unknown directive: $type. Maybe an empty line?\n Exiting!\n"; 
+		exit 1;
+	}
+	close(CFGFILE);
+	print " ... done\n";
+}
+
+
+sub is_blacklisted {
+	my ($tpm,$coll) = @_;
+	# blacklist check
+	# either there is no blacklist entry, then it is ok
+	# if there is a blacklist entry and it is *, blacklist it
+	# if it is not *, and the $coll is not "", then match it
+	if (defined($Config{'package_blacklist'}{$tpm}) &&
+			(($Config{'package_blacklist'}{$tpm} eq "*") ||
+			 (($coll ne "") && ($Config{'package_blacklist'}{$tpm} =~ m/$coll/)))) {
+		return(1);
+	} else {
+		return(0);
+	}
+}
+
+sub get_all_files {
+	my ($entry,$reclevel) = @_;
+	my @requires = @{$TeXLive{'binary'}{$entry}{'includedpackages'}};
+	my %files;
+	#
+	$files{'BinFiles'} = \@{$TeXLive{'binary'}{$entry}{'binfiles'}};
+	$files{'DocFiles'} = \@{$TeXLive{'binary'}{$entry}{'docfiles'}};
+	$files{'RunFiles'} = \@{$TeXLive{'binary'}{$entry}{'runfiles'}};
+	$files{'SourceFiles'} = \@{$TeXLive{'binary'}{$entry}{'sourcefiles'}};
+	if ($reclevel > 0) {
+		foreach my $r (@requires) {
+			$opt_debug && print STDERR  "  package " . $r . "\n";
+			my %foo = %{&get_all_files($r,$reclevel-1)};
+			push @{$files{'BinFiles'}}, @{$foo{'BinFiles'}};
+			push @{$files{'DocFiles'}}, @{$foo{'DocFiles'}};
+			push @{$files{'RunFiles'}}, @{$foo{'RunFiles'}};
+			push @{$files{'SourceFiles'}}, @{$foo{'SourceFiles'}};
+		}
+	}
+	return(\%files);
+}
+
+sub get_all_executes {
+	my ($entry,$reclevel) = @_;
+	my @requires = @{$TeXLive{'binary'}{$entry}{'includedpackages'}};
+	my %bar;
+	my @executes;
+	#
+	@executes = @{$TeXLive{'binary'}{$entry}{'executes'}};
+	if ($reclevel > 0) {
+		foreach my $r (@requires) {
+			$opt_debug && print STDERR  "  package " . $r . "\n";
+			my @foo = get_all_executes($r,$reclevel-1);
+			push @executes, @foo;
+		}
+	}
+	foreach (@executes) {
+		$bar{$_} = 1;
+	}
+	return(keys %bar);
+}
+ 
+sub myopen {
+	my ($a, $fn) = @_;
+	open($a, $fn) or die "Cannot open $fn: $!\n";
+}
+
+sub mycopy {
+	my ($src,$dest) = @_;
+	&mkpath(dirname($dest));
+# 	system("/bin/cp -a $src $dest 2>/dev/null") == 0
+	my $cp_cmdline = "/bin/cp -a $src $dest" . ( $opt_debug ? "" : " 2>/dev/null");
+	if ($opt_onlyscripts == 0) {
+		system($cp_cmdline) == 0
+			or do {
+				print STDERR "$cp_cmdline\n";
+				die ("missing: $src\n");
+		};
+	};
+}
+
+sub ismember {
+	my ($a, @rest) = @_;
+	foreach my $i (@rest) {
+		if ($a eq $i) { return 1; }
+	}
+	return 0;
+}
+
+
+1;
+
+### Local Variables:
+### perl-indent-level: 4
+### tab-width: 4
+### indent-tabs-mode: t
+### End:
+# vim:set tabstop=4: #
--- texlive-base-2009.orig/debian/texlive-pictures.override
+++ texlive-base-2009/debian/texlive-pictures.override
@@ -0,0 +1,4 @@
+texlive-pictures: zero-byte-file-in-doc-directory
+texlive-pictures: extra-license-file
+texlive-pictures: script-not-executable
+texlive-pictures: wrong-name-for-upstream-changelog
--- texlive-base-2009.orig/debian/texlive.override
+++ texlive-base-2009/debian/texlive.override
@@ -0,0 +1,4 @@
+texlive: zero-byte-file-in-doc-directory
+texlive: extra-license-file
+texlive: script-not-executable
+texlive: wrong-name-for-upstream-changelog
--- texlive-base-2009.orig/debian/changelog
+++ texlive-base-2009/debian/changelog
@@ -0,0 +1,537 @@
+texlive-base (2009-11+squeeze1) stable; urgency=low
+
+  * Don't try to repair a missing pdftexconfig.tex in preinst - this is
+    done and can only be done in postinst  (Closes: #612924)
+
+ -- Frank Küster <frank@debian.org>  Wed, 25 Apr 2012 15:42:48 +0900
+
+texlive-base (2009-11) unstable; urgency=low
+
+  * avoid unneeded 10texlive-base.cnfpre-edit files in /etc/texmf/fmt.d,
+    thanks Jörg-Volker Peetz (Closes: #584950)
+
+ -- Norbert Preining <preining@debian.org>  Sat, 25 Sep 2010 09:03:10 +0900
+
+texlive-base (2009-10) unstable; urgency=low
+
+  [ أحمد المحمودي (Ahmed El-Mahmoudy) ]
+  * Added fix-bashism patch to fix bashism in matlab2pgfplots.sh
+    (Closes: #581139)
+
+  [ Norbert Preining ]
+  * Make sure that the texdoc.cnf link is actually created (Closes: #582291)
+  * add license statements for all the AMS macros (Closes: #477060)
+
+ -- Norbert Preining <preining@debian.org>  Tue, 25 May 2010 12:11:15 +0900
+
+texlive-base (2009-9) unstable; urgency=low
+
+  * update patch upstream-pdftex.def-fixes to include latest addition 
+    to pdftex.def, fixing FTBFS when defining \undefined macro
+    (LP: #534293)
+  * move texdoc.cnf into /etc/texmf and create a link from the
+    original location, making it a conffile (Closes: #569737)
+  * reinstantiate the code for the lost pdftexconfig.tex in
+    texlive-base (Closes: #579000)
+  * bump standards version to 3.8.4, no changes necessary
+  * add dependency texlive-pictures -> luatex to make lintian happy
+  * texlive-xetex recommends lmodern (Closes: #576599)
+
+ -- Norbert Preining <preining@debian.org>  Tue, 27 Apr 2010 07:34:04 +0900
+
+texlive-base (2009-8) unstable; urgency=low
+
+  * update pdftex.def to latest version to fix pdfxmltex breakage 
+    (Closes: #566591)
+  * add texlive-base_cid-x.map_add-jis.patch from YOSHINO Yoshihito
+    that adds jis maps to cid-x.map fixing the usage of jis fonts with 
+    ptex (Closes: #570901)
+  * add patch epspdf-call-ruby-explicitely that make epspdf and epspdftk
+    call the ruby implementations explicitely with ruby as interpreter
+    to allow execution (Closes: #565646)
+
+ -- Norbert Preining <preining@debian.org>  Sun, 07 Mar 2010 19:57:20 +0900
+
+texlive-base (2009-7) unstable; urgency=low
+
+  * texdoc changes:
+    - update texdoc to 0.61
+    - fix location of updated texdoc.pdf file in texlive-base.root
+    - install texdoc.cnf in /usr/share/texmf/texdoc to make texdoc find it
+      (Closes: #563460)
+    - patch constants.tlu of texdoc to support zipped docs (Closes: #557861)
+    - patch texdoc.cnf to use 'see' for viewing files
+  * update luainputenc and luatextra to current versions (Closes: #562849)
+  * add man page for simpdftex
+  * add missing replace texlive-latex-base > texlive-base-bin
+    (Closes: #563733)
+  * update xetex.def to 0.94 from upstream (Closes: #485071)
+
+ -- Norbert Preining <preining@debian.org>  Tue, 05 Jan 2010 12:04:09 +0900
+
+texlive-base (2009-6) unstable; urgency=low
+
+  * upgrade texdoc to 0.60, activate support for zipped documents,
+    and change the config file to use see for all documents (Closes: #561785)
+    (patches: texdoc-update, texdoc-viewer-use-see, added .pdf.uu in
+    debian/texlive-base.root/usr/share/texmf-texlive/doc/texdoc)
+  * install several man pages that were lost
+
+ -- Norbert Preining <preining@debian.org>  Fri, 25 Dec 2009 11:58:51 +0900
+
+texlive-base (2009-5) unstable; urgency=low
+
+  * ship dvipdfmx.cfg file
+  * patch dvipdfm (config) and dvipdfmx (dvipdfmx.cfg) config files to 
+    use gs instead of rungs. (Closes: #561151)
+  * add code to texlive-base.preinst to disable offending lines that have
+    been taken over from texlive-base-bin in oldstable and causing
+    fmtutil to die with "infinite recursion detected". (Closes: #557091)
+  * add texlive-base conflicts dvipdfmx (Closes: #561728)
+  * add cachepic and fig4latex symlinks
+  * add an entry to texlive-common.NEWS about old font cache (Closes: #561352)
+  * remove "texlive-common conflicts tex-common (<< 2.0) to make upgrades
+    more smooth with cupt
+  * fix typo in xyframe.tex (patch from Andrey Paramonov) (Closes: #561784)
+
+ -- Norbert Preining <preining@debian.org>  Mon, 21 Dec 2009 23:55:22 +0900
+
+texlive-base (2009-4) unstable; urgency=low
+
+  * first release to unstable
+  * bump dependency on luatex to the first working version, 0.46.0-5
+
+ -- Norbert Preining <preining@debian.org>  Wed, 09 Dec 2009 23:02:20 +0900
+
+texlive-base (2009-3) experimental; urgency=low
+
+  * Remove transitioning code for etch-to-lenny upgrades. It's no longer
+    needed and somehow causes trouble.  This change hopefully closes:
+    #557091 [fk]
+  * texlive-base: bump dep on luatex to 0.45.0, and add a replace
+    luatex (<= 0.45.0) since dviluatex moved (Closes: #557086) (again)
+
+ -- Norbert Preining <preining@debian.org>  Sun, 29 Nov 2009 23:36:46 +0900
+
+texlive-base (2009-2) experimental; urgency=low
+
+  * texlive-base: bump dep on luatex to 0.44.0, and add a replace 
+    luatex (<= 0.40.6) since dviluatex moved (Closes: #557086)
+  * fix typo in tpm2deb.cfg, let texlive-common conflict with
+    texlive-base-bin instead of tex-base-bin (hopefully that is closing
+    bug #557091, but that needs testing)
+
+ -- Norbert Preining <preining@debian.org>  Sat, 21 Nov 2009 15:25:17 +0900
+
+texlive-base (2009-1) experimental; urgency=low
+
+  [ Frank Küster ]
+  * New upstream version (pre-release, but not far from) with lots of
+    internal changes, hence the upload to experimental. This upstream
+    version fixes the following bugs:
+
+    [ texlive-latex-base}
+    - closes: #446476, natbib cannot handle utf8
+    - closes: #518119, url.sty not compatible with luatex
+    - closes: #522788, incorrect pageref number when hyperref is used
+    - A newer version of the oberdiek bundle (closes: #445829, #351260,
+      #367842) is now moved here from texlive-latex-recommended (closes:
+      #500179)
+    - remove support files for non-free Lucida fonts as well as tmmath and
+      havmath (closes: #433329)
+
+    - package updates: babel with new spanish (closes: #509592) and
+      amsclass-related (closes: #406537) fixes, varioref (closes: #531764)
+  
+  [texlive-latex-recommended] 
+    - closes: #432517, just upgraded from tetex to texlive. Latex package
+      "caption" no longer works
+    - closes: #458269, "caption" package gets margins wrong in list
+      environment
+    - closes: #508355, current Koma-classes break xkeyval behavior
+    - closes: #493364, texlive-latex-recommended: Listings package not
+      working in conjunction with KOMA-Script
+      - closes: #509986, texlive-latex-recommended: typo in KOMAscript
+      classes: KOMA@unkown@keyval
+    - package updates or new packages included: oberdiek bundle (closes:
+      #445829), subcaption (closes: #492336), listings (closes: #495824) 
+  
+  [texlive-metapost]
+    - closes: #435051, typo in mpman
+    - closes: #435132, please include latest latexmp version
+  
+  [other new or updated packages]
+    - gnuplottex in texlive-pictures, closes: #503121
+  
+  * Add a couple of conflicts with texlive-base-bin to force an update in
+    one bunch, and removal of texlive-base-bin in advance
+  * Add lots of versioned Replaces for files moved between binary packages
+    from upstream versions 2007 to 2009.
+  * Remove all traces of libkpathsea4 from tpm2deb.cfg; it's all in
+    texlive-bin which doesn't use this config file.
+  * This package will be built against tex-common 2.00 or newer, and
+    therefore closes: #531581.
+  
+  [ Hilmar Preusse ]
+  * fix section of texlive-fonts-recommended
+  * new source package format "3.0 (quilt)" can be used, thanks to Norbert
+    (Closes: #484917)
+
+ -- Norbert Preining <preining@debian.org>  Thu, 12 Nov 2009 20:51:35 +0900
+
+texlive-base (2007.dfsg.1-3) unstable; urgency=low
+
+  * fix dangling symlink of README.Debian-source to README.source
+    in texlive-common (Closes: #489342)
+
+ -- Norbert Preining <preining@debian.org>  Tue, 22 Jul 2008 11:46:49 +0200
+
+texlive-base (2007.dfsg.1-2) unstable; urgency=low
+
+  * fix texlive-base.postinst(.pre) to actually add the comment and not
+    echo it to stderr, thanks Julien Cristau for the patch (Closes: #487947)
+
+ -- Norbert Preining <preining@debian.org>  Thu, 26 Jun 2008 17:17:25 +0200
+
+texlive-base (2007.dfsg.1-1) unstable; urgency=medium
+
+  * This packages closes 1.5 RC bugs, thus medium urgency.
+  * Blacklist documentation files for eepic since license statement
+    is missing. That closes another part of bug #356853.
+    This makes a new .orig.tar.gz necessary [np] (RC)
+  * Fix NEWS.Debian of texlive-common to describe the issue of removed
+    conffiles better (closes: #482656) [fk]
+  * Add postrm code for texlive-common, so that it removes files it has
+    renamed to $name.obsolete in the upgrade from teTeX (closes: #454324)
+    [fk] 
+  * Add code in postrm to properly take over settings from
+    texlive-base-bin's old conffile in fmt.d to 10texlive-base.cnf, needed
+    for the upgrade from etch to lenny (closes: #454344) [fk]
+  * Blacklist proba.sty which is missing a license statement
+    (closes: #483282). A fixed version of the proba package with
+    documentation and source will be added to texlive-math-extra to
+    follow what upstream has done. (RC)
+  * add EPS support for xelatex by including an updated xetex.def
+    (patch xetex.def-fix_for_eps) (Closes: #485071)
+  * bump standards version to 3.8.0:
+    - rename README.Debian-source to README.source an explain how to change
+      something using quilt by refering to the quilt README.source
+    - add homepage field to control
+    - add a patch target to debian/rules
+  * add dversionmangle to debian/watch file to ignore the .dfsg.NN suffix
+  * tetex-extra depends on texlive now, not on tetex-bin, lintian error
+  * fix spelling in descriptions of the metapackages
+
+ -- Norbert Preining <preining@debian.org>  Tue, 24 Jun 2008 08:49:03 +0200
+
+texlive-base (2007-14) unstable; urgency=low
+
+  * fix latin.ldf with the version from CTAN (Closes: #451295)
+    (and also closes Ubuntu bug #157709)
+  * Update location of upstream iso.zip file in uscan watch file (closes:
+    #449619), thanks to Raphael Geissert <atomo64@gmail.com> [fk]
+  * do not install tex/latex/jknapltx/ubbold.fd, it break the bbold fonts
+    (Closes: #449221). Thanks and sorry Ralf for ignoring you so long!
+  * improve the comments about english hyphenation/language0 in language.dat,
+    from DEK on tex-k
+  * bump standards version to 3.7.3, no changes needed
+  * make texlive-latex-recommended provide latex-ucs-uninames, latex-ucs,
+    latex-ucs-contrib as these Debian packages have been given up for
+    adoption
+  * fix a small bug in booktabs.sty by updating it to the version on CTAN
+    (Closes: #460878)
+  * add a patch fix-txfonts-precapprox to switch the symbols \precapprox and
+    \succapprox in txfonts.sty (Closes Ubuntu bug 184065)
+  * add a fancyheadings placeholder calling fancyhdr (Closes Ubuntu bug 
+    132399)
+  * add the LPPL to debian/copyright (Closes: #470479)
+
+ -- Norbert Preining <preining@debian.org>  Sat, 19 Apr 2008 20:07:09 +0200
+
+texlive-base (2007-13) unstable; urgency=low
+
+  * retitle all those dreadful "Macro package for TeX" title (Closes: #436729)
+  * spell the path of mllatex.ini the right way, both in the tpm2deb.cfg
+    and in the texlive-latex-extra.root (Closes: #430969)
+  * implement doc splitting, so that we can build separate -doc packages
+    for every collection we want to [np]
+    splitting is done for: latex-base, latex-recommended, fonts-recommended,
+    pictures
+
+ -- Norbert Preining <preining@debian.org>  Mon, 22 Oct 2007 07:34:57 +0200
+
+texlive-base (2007-12) unstable; urgency=low
+
+  * only try to resurrect conffiles when there is a template file present,
+    i.e., only for versions of 2007 in the archive (Closes: #439205) [np]
+
+ -- Norbert Preining <preining@debian.org>  Fri, 31 Aug 2007 22:00:12 +0200
+
+texlive-base (2007-11) unstable; urgency=low
+
+  * really install NEWS file for texlive-common [NP]
+  * Bump the versioned depends of texlive-common to >= 1.8, in order to
+    make sure that the workaround for latex-based formats is present, see
+    also Ubuntu bug 122863.
+
+    However, we do not bump the versioned depends of all packages on
+    texlive-common to >= 2007-11: For Debian, older 2007 versions will
+    surely vanish from the archive, Ubuntu needs to take care
+    themselves. [fk]
+  * Duplicate the code to recreate missing conffiles from postinst in preinst:
+    texlive-base: modes.mf, texlive-latex-base: color/graphics.cfg
+    (Closes: #425803, #435156, #435081, #433889, #436235, #435719, #435081,
+    #433889) [np]
+  * fix removal of old tetex files in language.d (Closes: #435812)
+
+ -- Norbert Preining <preining@debian.org>  Mon, 13 Aug 2007 10:34:19 +0200
+
+texlive-base (2007-10) unstable; urgency=low
+
+  * Let tetex-base conflict with tetex-bin (<< 2007) to prevent its
+    isolated upgrade on mixed systems (closes: #427859) [fk]
+
+ -- Frank Küster <frank@debian.org>  Sun, 10 Jun 2007 11:11:24 +0200
+
+texlive-base (2007-9) unstable; urgency=low
+
+  * Refine the code to resurrect modes.mf (no version check), and properly
+    document it in NEWS.Debian [fk]
+  * Also resurrect graphics.cfg and color.cfg, thanks to Bruce MacDonald
+    <b.macdonald@auckland.ac.nz> (closes: #427032) [fk]
+  * activate mathpple.map (closes: #426790) [np]
+  * don't call dh_installtex for meta packages, thus no dependency on
+    tex-common is necessary (closes: #427169) [np]
+
+ -- Norbert Preining <preining@debian.org>  Tue, 05 Jun 2007 11:39:35 +0200
+
+texlive-base (2007-8) unstable; urgency=low
+
+  * Updated license information, 103 additional CTAN packages have been
+    reviewed and catalogued as free [fk]
+  * Because of bug #420390, modes.mf is missing for some sid users;
+    resurrect it (closes: #425781) [fk]
+
+ -- Frank Küster <frank@debian.org>  Tue, 29 May 2007 18:15:00 +0200
+
+texlive-base (2007-7) unstable; urgency=low
+
+  * texlive-full should not depend on tetex-base (Closes: #424023) [np]
+  * add stricter dependencies to all packages: if in the final shipout
+    dep on a texlive package there is no version given, the value of
+    latest-version (from tpm2deb.cfg) of the source package is taken.
+  * rename (and not remove) old obsolete config files from tetex
+    (Closes: #425256)
+  * don't call tetex-bin-upgrade (Closes: #425270)
+  * format generation reworked:
+    - texlive-base-bin does not provide formats anymore since all the
+      respective ini files are in texlive-base
+    - texlive-base takes the format generation
+  * texlive-common now conflicts with all packages of revisions << than
+    the value in latest_revision.
+  * Let texlivel-generic-recommended declare Replaces: texlive-base
+    because it took over cmyk-hax.tex [fk]
+
+ -- Frank Küster <frank@debian.org>  Wed, 23 May 2007 13:56:08 +0200
+
+texlive-base (2007-6) unstable; urgency=low
+
+  * rename texlive-doc-cn to texlive-doc-zh, sorry for the caos! [np]
+  * make the conflict with ivritex versioned (Closes: #423718) [np]
+  * tetex-base replaces tetex-extra << 2007, since teTeX3-extra ships a
+    lintian override file for tetex-base (Closes: #423520) [np]
+
+ -- Norbert Preining <preining@debian.org>  Mon, 14 May 2007 08:22:01 +0200
+
+texlive-base (2007-5) unstable; urgency=low
+
+  * create tetex-base package to deal with postrm bugginess of tetex-base
+    (3.0) and removal of config files of TeX Live. This closes several RC
+    bugs, but upgrades from stable still can show these bugs in the case
+    that tetex-base is purged at dist-upgrade time.  (Closes: #420490,
+    #420390) [np]
+  * All the tetex-base package does is remove and deregister with ucf the
+    file /etc/texmf/language.d/10tetex.cnf in its postinst script. [fk]
+  * This will also lower the severity of bugs of the type "Uninstallable:
+    Depends on tetex-base".  These bugs are still important, though,
+    because tetex-base does not provide any functionality and will vanish
+    after lenny. [fk]
+  * blacklist intermediate files in mathpazo doc (Closes: #421620)
+  * backport koma-script r288 to fix the use of \usekomafont in all
+    koma-script classes (Closes: #421079)
+
+ -- Norbert Preining <preining@debian.org>  Thu, 03 May 2007 11:36:01 +0200
+
+texlive-base (2007-4) unstable; urgency=low
+
+  * The meta packages texlive does not depend on context.
+  * Document more clearly in tetex-bin's and tetex-extra's NEWS.Debian
+    that those transitional packages pull in texlive packages which might
+    not be needed at a site, and can safely be deselected
+
+ -- Norbert Preining <preining@debian.org>  Tue, 17 Apr 2007 13:17:11 +0200
+
+texlive-base (2007-3) unstable; urgency=low
+
+  * Fix the friday 13 bugs: A bad coincidence combined a serious bug in
+    debhelper (#419060) produces buggy maintainer scripts in most
+    texlive packages. The debhelper bug is fixed, so also the texlive
+    packages are fixed (no bug reported agains texlive-base).
+  * add texlive-latex-base replaces tetex-bin << 2007 (Closes: #418993)
+  * Document in NEWS.Debian that parts of texlive-latex-extra have been
+    moved to texlive-science and texlive-humanities (closes: #418989) [fk]
+
+ -- Norbert Preining <preining@debian.org>  Sat, 14 Apr 2007 09:18:34 +0200
+
+texlive-base (2007-2) unstable; urgency=low
+
+  * first upload of TeX Live 2007 to unstable
+  * tetex-extra is gone and replaced by texlive packages, this closes the
+    mempatch bug (Closes: #418232), (Closes Ubuntu: #78423)
+  * bump build-dep on tex-common to >= 1.4 for a working texmf.cnf check
+  * do not compress documentation pdf files
+
+ -- Norbert Preining <preining@debian.org>  Tue, 10 Apr 2007 18:16:39 +0200
+
+texlive-base (2007-1) experimental; urgency=low
+
+  * New upstream version (closes: #413809), upload to experimental
+  * Create transitional packages tetex-base and tetex-bin [frank]
+  * Packaging now based on the new SVN layout scheme [preining,frank]
+  * patch system switched to quilt [frank]
+  * blacklist siam as it is non-free (Closes: #406426) [preining]
+  * remove "editing" from the description of texlive-common (Closes:
+    #406482) [preining]
+  * no texlive-context anymore, we use the Debian context package
+    [preining]
+
+ -- Norbert Preining <preining@debian.org>  Wed, 21 Mar 2007 17:02:53 +0100
+
+texlive-base (2005.dfsg.3-1) unstable; urgency=high
+
+  * High urgency upload to fix RC bug
+  * Remove the kuvio package from texlive-pictures and the texlive-base
+    orig.tar.gz file (closes: #406833) [FK]
+  * This also removes from the orig.tar.gz other files that have been
+    blacklisted (for non-license reasons) [FK]
+  * remove 20_pgf-1.01-bugfix.dpatch, it patches files that have been
+    blacklisted and are no longer present. [FK]
+
+ -- Frank Küster <frank@debian.org>  Sun, 14 Jan 2007 21:32:26 +0100
+
+texlive-base (2005.dfsg.2-5) unstable; urgency=low
+
+  * Don't add mktexlsr calls to the postinst/postrm script of texlive
+    package, as it does not contain 'real' files (Closes: #400369)
+  * add an updated dcpic.sty to texlive-pictures (Closes: #388653)
+
+ -- Norbert Preining <preining@debian.org>  Thu, 28 Dec 2006 15:05:03 +0100
+
+texlive-base (2005.dfsg.2-4) unstable; urgency=low
+
+  * add the forgotten ltxtable.sty to texlive-latex-base (Closes: #396965)
+
+ -- Norbert Preining <preining@debian.org>  Tue,  7 Nov 2006 14:36:56 +0100
+
+texlive-base (2005.dfsg.2-3) unstable; urgency=medium
+
+  * alternative dependencies for teTeX changed to tetex-bin to get
+    mktexlsr (Closes: #395270)
+  * set urgency to medium as this is RC and present in testing
+  * upgrade prosper relation back to recommends in tl-latex-recommended
+    as we have an updated package now.
+  * adjust version numbers in the relation to jadetex, xmltex, passivetex
+
+ -- Norbert Preining <preining@debian.org>  Thu, 26 Oct 2006 11:59:06 +0200
+
+texlive-base (2005.dfsg.2-2) unstable; urgency=low
+
+  * blacklist beamer, xcolor, pgf and depend on the respective Debian
+    packages (Closes: #382870, #389467)
+  * texlive-full now recommends latex-cjk-all (>= 4.6.0+cvs20060714-2)
+  * add versioned dependencies on all texlive packages for texlive-full.
+  * texlive now only suggests texlive-doc-en, not depends (Closes: #392517)
+
+ -- Norbert Preining <preining@debian.org>  Wed, 18 Oct 2006 12:59:59 +0200
+
+texlive-base (2005.dfsg.2-1) unstable; urgency=medium
+
+  * texlive-latex-extra recommend texlive-latex-recommended (Closes: #385213)
+  * report bugs together with tex-common, and report status of the
+    tetex packages. Fix some small things in bug.scripts.
+  * change the uploader field to my debian.org email address
+  * do not recommend the not available prosper, but only suggest it
+    (Closes: #389195)
+  * drop unnnecessary conflict: tl-latex-recommended <-> latex-ucs*
+    (Closes: #388311)
+  * call tetex-bin-upgrade from tex-common (>= 0.32) to allow
+    upgrades from sarge's tetex2 (Closes: #382861) (at least we hope)
+  * urgency set to medium to get these fixes to testing
+  * blacklist several non-free beamer exampler files (Closes: #391946)
+
+ -- Norbert Preining <preining@debian.org>  Mon,  9 Oct 2006 19:01:26 +0200
+
+texlive-base (2005.dfsg.1-1) unstable; urgency=low
+
+  * add the license statement from Donald Arseneau to relicense underscore.sty
+    under LPPL license (Closes: #368902)
+  * move esbst.tex and romanidx.tex in the babel.tpm file into the
+    RunFiles section (Closes: #365235)
+  * move lmodern from Depends to Recommends in texlive-base
+  * move fpl and mathpazo to texlive-fonts-recommended as it is required
+    by PSNFSS, thanks Ralf Stubner and Frank Küster (Closes: #366035)
+  * included fixed supp-*.tex files in texlive-context
+  * move passivetex, jadetex, xmltex, latex-cjk from recommends to suggests
+    of texlive-full (Closes: #377106)
+  * add lintian override for wrong-name-for-upstream-changelog triggered
+    by CHANGES.packaging
+  * change maintainer to debian-tex-maint@l.d.o
+  * texlive-context: add dependency tl-context -> perl-tk, libxml-parser-perl
+    for texshow to run (Closes: #378829)
+
+ -- Norbert Preining <preining@logic.at>  Thu,  3 Aug 2006 12:37:06 +0200
+
+texlive-base (2005-2) unstable; urgency=low
+
+  * first upload to unstable, sponsored by 
+    Frank Küster <frank@debian.org>
+  * texdoc support
+    - let tetex texdoc find documentation of texlive (Closes: #364776)
+    - include tetex texdoc patches (following of symlinks, security
+      fixes) (Closes: #356390)
+  * texlive-lang-polish conflicts with octave-forge as both provide
+    /usr/bin/mex, this is preliminary, a better solution must be
+    sought (Closes: #364059)
+  * change shell for the reportbug script to bash (Closes: #356391)
+  * fix installation of thumbpdf and pdfcrop (Closes: #352092)
+  * improve various descriptions (Closes: #354964)
+  * call the update-* programs in all postinst scripts, so that the
+    config files do not contain left-overs (Closes: #355266)
+  * fix creation of formats which in turn depend on the latex format
+    (Closes: #351707)
+  * remap the ibycus4.map TeX/MF input file from the fonts/map location
+    to the fonts/source location (Closes: #354652)
+  * depend on the updated lmodern package, thus making the fonts
+    available for X (Closes: #351727)
+  * lots of internal changes, important ones being:
+    - texlive packages now do not include files which have been
+      packaged for Debian already (eg cm-super, lmodern, musixtex)
+    - most packages can be used together with teTeX
+    - fix several upstream bugs
+    - generate license information for each file from the
+      TeX Catalogue (ongoing work)
+    for detailed changes see CHANGES.packaging in texlive-common
+
+ -- Norbert Preining <preining@logic.at>  Thu, 11 May 2006 00:12:10 +0200
+
+texlive-base (2005-1) experimental; urgency=low
+
+  * First upload to experimental (Closes: #312897)
+
+ -- Norbert Preining <preining@logic.at>  Thu, 12 Jan 2006 17:30:22 +0100
+
+# vim:set fileencoding=utf-8: #
+# Local Variables:
+# coding: utf-8
+# mode: debian-changelog
+# End:
--- texlive-base-2009.orig/debian/create-doc-links
+++ texlive-base-2009/debian/create-doc-links
@@ -0,0 +1,21 @@
+#
+# create-doc-links
+#
+# (c) 2006 Norbert Preining
+# $Id$
+# create links from every file under /usr/share/doc/$1/ to
+# /usr/share/doc/$2/
+#
+
+pref="./debian/$1"
+src="usr/share/doc/$1"
+dst="usr/share/doc/$2"
+
+mkdir -p "$dst"
+
+for f in $(cd "$pref/$src"; find . -mindepth 2 -type f) ; do
+  g=$(echo $f | cut -b 3-)
+  echo "$src/$g" "$dst/$g"
+done
+
+
--- texlive-base-2009.orig/debian/texlive-base.menu
+++ texlive-base-2009/debian/texlive-base.menu
@@ -0,0 +1,16 @@
+?package(texlive-base):\
+  needs="x11"\
+  section="Applications/Viewers"\
+  title="XDvi"\
+  command="/usr/bin/xdvi"\
+  hints="DVI,Documents"
+?package(texlive-base):\
+  needs="text"\
+  section="Applications/System/Administration"\
+  title="TeXconfig"\
+  command="/usr/bin/texconfig"
+?package(texlive-base):\
+  needs="x11"\
+  section="Help" \
+  title="TeXdoctk"\
+  command="/usr/bin/texdoctk"
--- texlive-base-2009.orig/debian/texlive-metapost-doc.override
+++ texlive-base-2009/debian/texlive-metapost-doc.override
@@ -0,0 +1,4 @@
+texlive-metapost-doc: zero-byte-file-in-doc-directory
+texlive-metapost-doc: extra-license-file
+texlive-metapost-doc: script-not-executable
+texlive-metapost-doc: wrong-name-for-upstream-changelog
--- texlive-base-2009.orig/debian/texlive-latex-recommended.links.dist
+++ texlive-base-2009/debian/texlive-latex-recommended.links.dist
@@ -0,0 +1 @@
+usr/share/texmf-texlive/scripts/thumbpdf/thumbpdf.pl usr/bin/thumbpdf
--- texlive-base-2009.orig/debian/texlive.NEWS
+++ texlive-base-2009/debian/texlive.NEWS
@@ -0,0 +1,6 @@
+texlive (2007-3) unstable; urgency=low
+
+  * The meta-package texlive does NOT depend on context anymore to
+    keep dependencies minimal. Please install context if you need it.
+
+ -- Norbert Preining <preining@debian.org>  Mon, 16 Apr 2007 15:53:18 +0200
--- texlive-base-2009.orig/debian/Licenses.header
+++ texlive-base-2009/debian/Licenses.header
@@ -0,0 +1,41 @@
+#
+# LICENSES
+#
+# This file contains a (probably faulty, probably incomplete) list of
+# licenses extracted from the TeX Catalogue.
+#	http://www.ctan.org/tex-archive/help/Catalogue/
+#
+# The licenses codes as described on
+#	http://www.ctan.org/tex-archive/help/Catalogue/licenses.html
+# are
+# DFSG free licenses:
+#	dfsg	Debian Free Software Guidelines
+#               Since the DFSG are not a license, it's existence in
+#               the Catalogue is a bug, and if any package shows up
+#               below with this license, this is a bug, too.
+#
+#		According to the definition given in the above file, this
+#		means:
+#		This software is distributed under a license that conforms 
+#		to the Debian Free Software Guidelines but might not use one 
+#		of the common DFSG conforming licenses (GPL, LPPL, PD). For 
+#		example, the BSD license is another DFSG conforming license. 
+#		General permission to copy, distribute, and modify the 
+#		software will apply, but there may be other (compatible) 
+#		conditions.
+#	artistic 	Perl Artistic License
+#	bsd 	BSD Style License
+#	fdl 	GNU Free Documentation License
+#	gpl 	GNU General Public License
+#	lgpl 	GNU Library General Public License
+#	lppl 	LaTeX Project Public License
+#	pd 	Public Domain
+#
+# Further license codes which can occur in this list
+#	unknown	the TeX Catalogue has no information about this
+#	not-in-catalogue	the package could not be found in the Catalogue
+#
+# If you have any suggestions, improvements or complaints, please contact
+# the Debian TeX live Maintainers <pkg-texlive-maint@lists.alioth.debian.org>
+# or report to the TeX Catalogue Maintainers.
+#
--- texlive-base-2009.orig/debian/merge-dist-tree
+++ texlive-base-2009/debian/merge-dist-tree
@@ -0,0 +1,38 @@
+#
+# merge-dist-tree
+# $Id: merge-dist-tree 2583 2007-03-15 20:12:56Z frank $
+# (c) 2006 Norbert Preining
+#
+# merge tree $1 into destination $2
+# files in tree $1 with extension .uu are uudecoded installed into $2
+#
+
+src="$1"
+dst="$2"
+
+if ! [ -d "$dst" ] ; then
+  echo "please first call debian/rules install!"
+  exit 1
+fi
+
+if ! [ -d "$src" ] ; then
+  echo "first argument must be a directory: $src"
+  exit 1
+fi
+
+for f in $(cd "$src"; find . -type f) ; do
+  bn=$(basename "$f")
+  dn=$(dirname "$f")
+  mkdir -p "$dst/$dn"
+  case "$f" in
+    *.uu)
+      bn=$(basename "$f" .uu)
+      uudecode -o "$dst/$dn/$bn" "$src/$f"
+      ;;
+    *)
+      cp -a "$src/$f" "$dst/$dn/"
+      ;;
+  esac
+done
+
+
--- texlive-base-2009.orig/debian/watch
+++ texlive-base-2009/debian/watch
@@ -0,0 +1,2 @@
+version=3
+opts=pasv,dversionmangle=s/\.dfsg\.\d+$// ftp://ftp.tug.org/texlive/Images/texlive(....)-live-.*\.iso
--- texlive-base-2009.orig/debian/texlive-base.override
+++ texlive-base-2009/debian/texlive-base.override
@@ -0,0 +1,4 @@
+texlive-base: zero-byte-file-in-doc-directory
+texlive-base: extra-license-file
+texlive-base: script-not-executable
+texlive-base: wrong-name-for-upstream-changelog
--- texlive-base-2009.orig/debian/common.functions.postrm
+++ texlive-base-2009/debian/common.functions.postrm
@@ -0,0 +1,54 @@
+# common.functions.postrm start
+# $Id: common.functions.postrm 2876 2007-05-22 08:12:07Z frank $
+check_move_back () 
+{
+  orig="$1"
+  new="$2"
+  if [ -r "$new" ] ; then
+    mkdir -p $(dirname "$orig")
+    mv "$new" "$orig" 
+  fi
+}
+
+handle_config_file_postrm() 
+{
+    cfgfile="$1"
+    action="$2"
+    version="$3"
+    case "$action" in
+      abort-upgrade)
+	if dpkg --compare-versions "$version" ge 2007; then
+	  return 0
+	fi
+	;;
+      *)
+	return 0
+	;;
+    esac
+    conf_relpath=${cfgfile#/etc/texmf/}
+    conf_oldpath="/etc/texmf/texlive/$conf_relpath"
+    case "$cfgfile" in 
+        /etc/texmf/dvips/config/*)
+	    # special case for dvips config
+	    conf_oldpath="/etc/texmf/texlive/dvips/${conf_oldpath#/etc/texmf/dvips/config}"
+            ;;
+        # files which were only present in tetex
+        /etc/texmf/texdoctk/texdoctk.dat)
+	    conf_oldpath="/etc/texdoctk/texdoctk.dat"
+            ;;
+        /etc/texmf/xdvi/xdvi.cfg)
+	    # old tetex version
+	    if [ -r "$cfgfile" ]; then
+	      cp $cfgfile /etc/texmf/xdvi.cfg
+	    fi
+            # old texlive version 
+	    conf_oldpath="/etc/texmf/texlive/xdvi.cfg"
+    esac
+    check_move_back $conf_oldpath $cfgfile 
+}
+
+# common.functions.postrm end
+# Local Variables:
+# mode: shell-script
+# End:
+# vim:set expandtab: #
--- texlive-base-2009.orig/debian/texlive-base.postinst.pre
+++ texlive-base-2009/debian/texlive-base.postinst.pre
@@ -0,0 +1,21 @@
+# texlive-base postinst.pre begin
+
+# Cleanup after Bug #420390 for sid users
+# This is already done in the preinst, but only for upgrades. We redo it 
+# in the postinst, too in case that we are dealing with a install from
+# rc or purged state.
+case  "$1" in
+  configure)
+    resurrect_conffile_sid /etc/texmf/metafont/misc/modes.mf texlive-base
+    resurrect_conffile_sid /etc/texmf/tex/generic/config/pdftexconfig.tex texlive-base
+    # should we resurrect config.ps? But it is not shipped in texlive-base?
+
+    ;;
+  *)
+    ;;
+esac
+
+
+
+
+# texlive-base postinst.pre end
--- texlive-base-2009.orig/debian/texlive-latex-recommended-doc.override
+++ texlive-base-2009/debian/texlive-latex-recommended-doc.override
@@ -0,0 +1,4 @@
+texlive-latex-recommended-doc: zero-byte-file-in-doc-directory
+texlive-latex-recommended-doc: extra-license-file
+texlive-latex-recommended-doc: script-not-executable
+texlive-latex-recommended-doc: wrong-name-for-upstream-changelog
--- texlive-base-2009.orig/debian/texlive-latex-base.Licenses.add
+++ texlive-base-2009/debian/texlive-latex-base.Licenses.add
@@ -0,0 +1,201 @@
+
+What follows are individual license statements which override later entries,
+as the later entries are generated automatically.
+
+* underscore.sty (/usr/share/texmf-texlive/tex/latex/ltxmisc/underscore.sty)
+LPPL according to the following email exchange:
+> Donald Arseneau wrote:
+> > Josh Triplett <josh@freedesktop.org> writes:
+> >> % Copyright 1998,2001 Donald Arseneau;  Distribute freely if unchanged.
+> >>
+> >> Would you be willing to license this file under the standard LaTeX
+> >> Project Public License, or another Free Software license?
+> > 
+> > Yeah.  Following that original short permission, I should use the LPPL.
+
+* AMS files (/usr/share/texmf-texlive/***/ams***/***)
+
+As of May 1, 2010, the following license supersedes any license found
+inside any LaTeX macro files -- and associated documentation and
+source files -- currently being distributed by the AMS:
+
+    This work may be distributed and/or modified under the
+    conditions of the LaTeX Project Public License, either version 1.3c
+    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.3c or later is part of all distributions of LaTeX
+    version 2005/12/01 or later.
+    
+    This work has the LPPL maintenance status `maintained'.
+    
+    The Current Maintainer of this work is the American Mathematical
+    Society.
+
+Files covered by this notice include -- but are not necessarily
+limited to -- the following, along with any associated documentation
+files (README files, templates, examples, etc.).
+
+amsclass, version 2:
+    ams-c1.ins      v2.20   (2004/08/03)
+    amsalpha.bst    v2.0    (2000/03/27)
+    amsart.cls      v2.20.1 (2009/07/02)
+    amsbook.sty     v2.20.1 (2009/07/02)
+    amsclass.dtx    v2.20.1 (2009/07/02)
+    amsdtx.cls      v2.06   (2004/08/06)
+    amsdtx.dtx      v2.06   (2004/08/06)
+    amsldoc.cls     v2.06   (2004/08/06)
+    amsldoc.tex     v2.09   (2004/04/06)
+    amsmidx.dtx     v2.01   (2004/08/03)
+    amsmidx.sty     v2.01   (2004/08/03)
+    amsmidx.txt
+    amsplain.bst    v2.0    (2000/03/27)
+    amsproc.sty     v2.20.1 (2009/07/02)
+    amsthdoc.tex    v2.20   (2004/08/03)
+    amsthm.sty      v2.20   (2004/08/06)
+    instr-l.tex     v2.20   (2004/08/06)
+    thmtest.tex     v2.01   (2004/08/02)
+    upref.dtx       v2.01   (2004/07/29)
+    upref.sty       v2.01   (2004/07/29)
+
+amsfonts, version 3:
+    amsfndoc.cyr    v2.2c (1997/12/15)
+    amsfndoc.def    v2.2d (2002/01/18)
+    amsfndoc.fnt    v2.2c (2001/11/16)
+    amsfndoc.ins    v2.2f (2002/01/30)
+    amsfndoc.tex    v2.2d (2002/01/19)
+    amsfonts.dtx    v3.00 (2009/06/22)
+    amsfonts.ins    v3.00 (2009/02/22)
+    amsfonts.sty    v3.00 (2009/06/22)
+    amssym.def      v2.2b (2001/07/03)
+    amssym.tex      v2.2b (1997/02/26)
+    amssymb.dtx     v3.00 (2009/06/22)
+    amssymb.sty     v3.00 (2009/06/22)
+    cmmib57.dtx     v3.00 (2009/06/22)
+    cmmib57.sty     v3.00 (2009/06/22)
+    cyracc.def      v2.2b (2001/10/01)
+    eucal.sty       v3.00 (2009/06/22)
+    eufrak.dtx      v3.00 (2009/06/22)
+    eufrak.sty      v3.00 (2009/06/22)
+    euscript.dtx    v3.00 (2009/06/22)
+    euscript.sty    v3.00 (2009/06/22)
+    ueuex.fd        v3.00 (2009/06/22)
+    ueuf.fd         v3.00 (2009/06/22)
+    ueur.fd         v3.00 (2009/06/22)
+    ueus.fd         v3.00 (2009/06/22)
+    umsa.fd         v3.00 (2009/06/22)
+    umsb.fd         v3.00 (2009/06/22)
+
+amsmath, version 2:
+    ams-m1.ins      v1.05 (2000/05/25)
+    amsbsy.dtx      v1.2d (1999/11/29)
+    amsbsy.sty      v1.2d (1999/11/29)
+    amscd.dtx       v2.0  (1999/11/29)
+    amscd.sty       v2.0  (1999/11/29)
+    amsgen.dtx      v2.0  (1999/11/30)
+    amsgen.sty      v2.0  (1999/11/30)
+    amsmath.dtx     v2.13 (2000/07/18)
+    amsmath.sty     v2.13 (2000/07/18)
+    amsopn.dtx      v2.01 (1999/12/14)
+    amsopn.sty      v2.01 (1999/12/14)
+    amstex.sty      v1.2f (1999/11/15)
+    amstext.dtx     v2.01 (2000/06/29)
+    amstext.sty     v2.01 (2000/06/29)
+    amsxtra.dtx     v1.2c (1999/11/15)
+    amsxtra.sty     v1.2c (1999/11/15)
+    subeqn.tex      v1.2c (1999/11/29)
+    technote.tex    v2.0  (1999/11/15)
+    testmath.tex    v2.0  (1999/11/15)
+
+amsrefs, version 2:
+    amsbst.sty      v2.03  (2007/10/22)
+    amsj.bib        v2.01  (2007/10/01)
+    amsra.bst       v2.01  (2007/10/01)
+    amsrefs.dtx     v2.03  (2007/10/22)
+    amsrefs.ins
+    amsrefs.sty     v2.03  (2007/10/22)
+    amsrn.bst       v2.01  (2007/10/01)
+    amsrs.bst       v2.01  (2007/10/01)
+    amsru.bst       v2.01  (2007/10/01)
+    amsry.bst       v2.01  (2007/10/01)
+    amsxport.dtx    v2.01  (2007/10/01)
+    amsxport.ins
+    ifoption.dtx    v1.02  (2002/03/04)
+    ifoption.ins
+    ifoption.sty    v1.02  (2002/03/04)
+    mathscinet.dtx  v2.01  (2004/06/30)
+    mathscinet.ins
+    mathscinet.sty  v2.01  (2004/06/30)
+    pcatcode.dtx    v1.04b (2007/08/17)
+    pcatcode.ins
+    pcatcode.sty    v1.04b (2007/08/17)
+    rkeyval.dtx     v2.00  (2004/06/28)
+    rkeyval.ins
+    rkeyval.sty     v2.00  (2004/06/28)
+    textcmds.dtx    v1.06  (2007/10/19)
+    textcmds.ins
+    textcmds.sty    v1.06  (2007/10/19)
+    
+AMS author packages:
+    ams-rust.sty    v1.02 (2003/11/26)
+    amsbkrev.cls    v2.23 (2009/02/11)
+    amsip-m-l.cls   v2.01 (2005/03/16)
+    amsip-p-l.cls   v2.01 (2005/03/21)
+    amstext-l.cls   v0.92 (2010/03/05)
+    bull-l.cls      v2.05 (2009/05/07)
+    cbmath-l.cls    v1.2b (1996/10/25)
+    cbms-l.cls      v1.2b (1995/10/30)
+    ceb-l.cls       v2.02 (2007/08/28)
+    cmim-l.cls      v1.2b (2001/06/14)
+    cmip-l.cls      v1.0b (2001/04/19)
+    cmsams-l.cls    v1.2b (1996/10/25)
+    coll-l.cls      v1.2b (1996/10/30)
+    conm-m-l.cls    v1.2b (1996/10/30)
+    conm-p-l.cls    v1.2b (1996/10/25)
+    crmm-l.cls      v2.01 (2005/05/11)
+    crmp-l.cls      v2.01 (2005/05/11)
+    dimacs-l.cls    v1.2b (1996/10/24)
+    ecgd-l.cls      v2.02 (2007/06/18)
+    editor.cls      v0.97 (2008/12/04)
+    ert-l.cls       v2.02 (2007/06/18)
+    fic-l.cls       v1.2i (2010/01/26)
+    fim-l.cls       v1.2i (2010/01/26)
+    gen-j-l.cls     v1.2b (1996/10/25)
+    gen-m-l.cls     v1.2b (1996/10/30)
+    gen-p-l.cls     v1.2b (1996/01/25)
+    gsm-l.cls       v2.05 (2008/09/26)
+    hmath-l.cls     v1.2b (1996/10/30)
+    jag-l.cls       v1.2u (2005/06/24)
+    jams-l.cls      v2.01 (2007/06/18)
+    mawrld-l.cls    v1.01 (2006/05/23)
+    mcom-l.cls      v2.01 (2007/06/18)
+    memo-l.cls      v2.01 (2007/05/09)
+    mmono-l.cls     v1.2b (1996/10/30)
+    mmono-s.cls     v1.1b (1998/04/13)
+    mosc-l.cls      v2.07 (2006/03/06)
+    proc-l.cls      v2.01 (2007/06/18)
+    psapm-l.cls     v1.2c (1996/11/18)
+    pspum-l.cls     v1.2c (1996/11/18)
+    qam-l.cls       v2.07 (2005/09/09)
+    smf-l.cls       v1.2b (1998/06/29)
+    spmj-l.cls      v2.12 (2009/01/22)
+    stml-l.cls      v1.17 (2008/06/25)
+    surv-l.cls      v1.2b (1996/10/30)
+    tpms-l.cls      v2.07 (2009/01/22)
+    tran-l.cls      v2.01 (2007/06/18)
+    trans2-l.cls    v1.2b (1997/11/17)
+    ulect-l.cls     v1.2b (1996/10/30)
+    
+Please address any questions to
+
+    American Mathematical Society
+    Technical Support
+    Publications Technical Group
+    201 Charles Street
+    Providence, RI 02904
+    USA
+    tel: (401) 455-4080
+         (800) 321-4267 (USA and Canada only)
+    fax: (401) 331-3842
+    email: tech-support@ams.org
+
--- texlive-base-2009.orig/debian/tpm2deb.cfg
+++ texlive-base-2009/debian/tpm2deb.cfg
@@ -0,0 +1,669 @@
+#
+# tpm2deb.cfg
+# (c) 2005-2009 Norbert Preining
+#
+# $Id: tpm2deb.cfg 4715 2010-09-25 00:05:19Z preining $
+#
+# describe relations between texlive and other debian packages, but als
+# which packages and files should be blacklisted
+# and the filemappings
+#
+# For a description of the format of this file please see
+# the toplevel README file
+#
+# THIS IS FOR TEXLIVE 2009!!!!!!!!!!!!
+# 
+# we have to keep texlive-bin here so that we can change the dependency
+# on texlive-binaries for packages:
+source;texlive-bin
+latest-version;texlive-bin;2009-1
+name;collection-foobar;texlive-binaries;texlive-bin
+# sources
+source;texlive-doc
+source;texlive-base
+source;texlive-lang
+source;texlive-extra
+# basic info 
+maintainer;*;Debian TeX Maintainers <debian-tex-maint@lists.debian.org>
+uploaders;*;Norbert Preining <preining@debian.org>, Frank Küster <frank@debian.org>
+section;*;tex
+bin-section;texlive-fonts-recommended;fonts
+bin-section;texlive-fonts-extra;fonts
+#bin-section;texlive-doc-el;doc
+priority;*;optional
+standards;*;3.8.4
+# last texlive-common version all packages should depend on
+texlive-common-version;2009-1
+#
+# last revision of the packages, necessary for texlive-full dependencies
+latest-version;texlive-base;2009-1
+latest-version;texlive-extra;2009-1
+latest-version;texlive-doc;2009-1
+latest-version;texlive-lang;2009-1
+#
+#
+# collections -> debian package names plus source packages
+#
+# texlive-base
+name;collection-basic;texlive-base;texlive-base
+# contains texdoc
+depends;texlive-base;luatex (>= 0.46.0-5)
+replaces;texlive-base;luatex (<< 0.45.0)
+conflicts;texlive-base;luatex (<< 0.46.0-5)
+name;collection-genericrecommended;texlive-generic-recommended;texlive-base
+name;collection-latex;texlive-latex-base;texlive-base
+name;collection-latexrecommended;texlive-latex-recommended;texlive-base
+name;collection-fontsrecommended;texlive-fonts-recommended;texlive-base
+name;collection-pictures;texlive-pictures;texlive-base
+# make lintian happy
+depends;texlive-pictures;luatex
+name;collection-luatex;texlive-luatex;texlive-base
+depends;texlive-luatex;luatex (>= 0.46.0-5)
+name;collection-metapost;texlive-metapost;texlive-base
+name;collection-omega;texlive-omega;texlive-base
+name;collection-xetex;texlive-xetex;texlive-base
+# context has now its own Debian package
+#name;collection-context;texlive-context;texlive-base
+depends;texlive-full;context
+#
+# texlive-extra
+name;collection-bibtexextra;texlive-bibtex-extra;texlive-extra
+name;collection-binextra;texlive-extra-utils;texlive-extra
+# collection psutils dies, should be proper debian packages
+# same for graphicstools
+#name;collection-psutils;texlive-ps-utils;texlive-extra
+name;collection-fontutils;texlive-font-utils;texlive-extra
+name;collection-formatsextra;texlive-formats-extra;texlive-extra
+name;collection-genericextra;texlive-generic-extra;texlive-extra
+name;collection-mathextra;texlive-math-extra;texlive-extra
+name;collection-plainextra;texlive-plain-extra;texlive-extra
+name;collection-latexextra;texlive-latex-extra;texlive-extra
+name;collection-latex3;texlive-latex3;texlive-extra
+name;collection-fontsextra;texlive-fonts-extra;texlive-extra
+name;collection-music;texlive-music;texlive-extra
+name;collection-games;texlive-games;texlive-extra
+name;collection-pstricks;texlive-pstricks;texlive-extra
+name;collection-publishers;texlive-publishers;texlive-extra
+name;collection-humanities;texlive-humanities;texlive-extra
+name;collection-science;texlive-science;texlive-extra
+# htmlxml will not be build, but is replaced by xmtex, jadetex, and passivetex
+# and tex4ht see below
+#name;collection-htmlxml;texlive-htmlxml;texlive-extra
+#
+# texlive-doc
+name;collection-documentation-base;texlive-doc-base;texlive-doc
+name;collection-documentation-bulgarian;texlive-doc-bg;texlive-doc
+name;collection-documentation-chinese;texlive-doc-zh;texlive-doc
+name;collection-documentation-czechslovak;texlive-doc-cs+sk;texlive-doc
+name;collection-documentation-dutch;texlive-doc-nl;texlive-doc
+name;collection-documentation-english;texlive-doc-en;texlive-doc
+name;collection-documentation-finnish;texlive-doc-fi;texlive-doc
+name;collection-documentation-french;texlive-doc-fr;texlive-doc
+name;collection-documentation-german;texlive-doc-de;texlive-doc
+#name;collection-documentation-greek;texlive-doc-el;texlive-doc
+name;collection-documentation-italian;texlive-doc-it;texlive-doc
+name;collection-documentation-japanese;texlive-doc-ja;texlive-doc
+name;collection-documentation-korean;texlive-doc-ko;texlive-doc
+name;collection-documentation-mongolian;texlive-doc-mn;texlive-doc
+name;collection-documentation-polish;texlive-doc-pl;texlive-doc
+name;collection-documentation-portuguese;texlive-doc-pt;texlive-doc
+name;collection-documentation-russian;texlive-doc-ru;texlive-doc
+name;collection-documentation-slovenian;texlive-doc-si;texlive-doc
+name;collection-documentation-spanish;texlive-doc-es;texlive-doc
+name;collection-documentation-thai;texlive-doc-th;texlive-doc
+name;collection-documentation-turkish;texlive-doc-tr;texlive-doc
+name;collection-documentation-ukrainian;texlive-doc-uk;texlive-doc
+name;collection-documentation-vietnamese;texlive-doc-vi;texlive-doc
+#
+# texlive-lang
+name;collection-langafrican;texlive-lang-african;texlive-lang
+name;collection-langarabic;texlive-lang-arabic;texlive-lang
+replaces;texlive-lang-arabic;arabtex, texlive-lang-arab
+conflicts;texlive-lang-arabic;arabtex, texlive-lang-arab
+provides;texlive-lang-arabic;arabtex, texlive-lang-arab
+name;collection-langarmenian;texlive-lang-armenian;texlive-lang
+# texlive-lang-cjk can be put together by packages in Debian, do not build it
+# see below
+#name;collection-langcjk;texlive-lang-cjk;texlive-lang
+name;collection-langcroatian;texlive-lang-croatian;texlive-lang
+name;collection-langcyrillic;texlive-lang-cyrillic;texlive-lang
+name;collection-langczechslovak;texlive-lang-czechslovak;texlive-lang
+name;collection-langdanish;texlive-lang-danish;texlive-lang
+name;collection-langdutch;texlive-lang-dutch;texlive-lang
+name;collection-langfinnish;texlive-lang-finnish;texlive-lang
+name;collection-langfrench;texlive-lang-french;texlive-lang
+name;collection-langgerman;texlive-lang-german;texlive-lang
+name;collection-langgreek;texlive-lang-greek;texlive-lang
+name;collection-langhebrew;texlive-lang-hebrew;texlive-lang
+name;collection-langhungarian;texlive-lang-hungarian;texlive-lang
+name;collection-langindic;texlive-lang-indic;texlive-lang
+depends;texlive-lang-indic;python
+name;collection-langitalian;texlive-lang-italian;texlive-lang
+name;collection-langlatin;texlive-lang-latin;texlive-lang
+name;collection-langlatvian;texlive-lang-latvian;texlive-lang
+name;collection-langlithuanian;texlive-lang-lithuanian;texlive-lang
+name;collection-langmongolian;texlive-lang-mongolian;texlive-lang
+name;collection-langnorwegian;texlive-lang-norwegian;texlive-lang
+name;collection-langother;texlive-lang-other;texlive-lang
+name;collection-langpolish;texlive-lang-polish;texlive-lang
+name;collection-langportuguese;texlive-lang-portuguese;texlive-lang
+name;collection-langspanish;texlive-lang-spanish;texlive-lang
+name;collection-langswedish;texlive-lang-swedish;texlive-lang
+name;collection-langtibetan;texlive-lang-tibetan;texlive-lang
+name;collection-langukenglish;texlive-lang-ukenglish;texlive-lang
+name;collection-langvietnamese;texlive-lang-vietnamese;texlive-lang
+#
+# Additional packages, no tpms/collections exist
+addpackages;;texlive;texlive-full;texlive-common;texlive-lang-all
+# all should be part of the texlive-base source package
+name;collection-foobar;texlive;texlive-base
+name;collection-foobar;texlive-full;texlive-base
+name;collection-foobar;texlive-common;texlive-base
+name;collection-foobar;texlive-lang-all;texlive-lang
+# titles and descriptions for addpackages
+title;texlive-common;Base component
+description;texlive-common;The TeX Live software distribution offers a complete TeX system.
+description;texlive-common;It encompasses programs for typesetting, previewing and printing
+description;texlive-common;of TeX documents in many different languages, and a large collection
+description;texlive-common;of TeX macros and font libraries.
+description;texlive-common;.
+description;texlive-common;The distribution also includes extensive general documentation about
+description;texlive-common;TeX, as well as the documentation accompanying the included software
+description;texlive-common;packages.
+description;texlive-common;.
+description;texlive-common;This package provides a common base for all TeX Live packages.
+title;texlive-full;metapackage pulling in all components of TeX Live
+description;texlive-full;The TeX Live software distribution offers a complete TeX system.
+description;texlive-full;It encompasses programs for typesetting, previewing and printing
+description;texlive-full;of TeX documents in many different languages, and a large collection
+description;texlive-full;of TeX macros and font libraries.
+description;texlive-full;.
+description;texlive-full;The distribution also includes extensive general documentation about
+description;texlive-full;TeX, as well as the documentation accompanying the included software
+description;texlive-full;packages.
+# texlive-full should not depend on these meta- or transitional packages
+dependsnot;texlive-full;texlive-full;texlive;texlive-lang-all
+title;texlive;A decent selection of the TeX Live packages
+description;texlive;The TeX Live software distribution offers a complete TeX system.
+description;texlive;It encompasses programs for typesetting, previewing and printing
+description;texlive;of TeX documents in many different languages, and a large collection
+description;texlive;of TeX macros and font libraries.
+description;texlive;.
+description;texlive;This metapackage provides a decent selection of the TeX Live packages
+description;texlive;which should suffice for the most common tasks.
+description;texlive;.
+description;texlive;The distribution also includes extensive general documentation about
+description;texlive;TeX, as well as the documentation accompanying the included software
+description;texlive;packages.
+title;texlive-lang-all;metapackage depending on all TeX Live language packages
+description;texlive-lang-all;This package pulls in all texlive-lang-*
+description;texlive-lang-all;packages.
+#
+# build dependencies
+#
+# texlive-base
+build-dep;texlive-base;debhelper (>= 5), quilt
+build-dep-indep;texlive-base;sharutils, tex-common (>= 2.00), eperl, findutils (>=4.2.0)
+# texlive-doc
+build-dep;texlive-doc;debhelper (>= 5), quilt
+build-dep-indep;texlive-doc;sharutils, tex-common (>= 2.00), eperl, findutils (>=4.2.0)
+# texlive-lang
+build-dep;texlive-lang;debhelper (>= 5), quilt
+build-dep-indep;texlive-lang;sharutils, tex-common (>= 2.00), eperl, findutils (>=4.2.0)
+# texlive-extra
+build-dep;texlive-extra;debhelper (>= 5), quilt
+build-dep-indep;texlive-extra;sharutils, tex-common (>= 2.00), eperl, findutils (>=4.2.0)
+#
+# TITLE AND DESCRIPTIONS
+#
+# for packages give the short description, for tpms the description field
+title;hyphen-welsh;Welsh hyphenation files for TeX
+title;bin-afm2pl;AFM font metrics to TeX pl converter.
+title;antiqua;the URW Antiqua Condensed Font.
+title;bayer;Herbert Bayers Universal Font For Metafont.
+title;grotesq;the URW Grotesk Bold Font.
+title;adobeuro;font metrics for the Adobe Euro fonts.
+title;avantgar;the URW Avantgar fonts and support for the Adobe font set.
+title;bookman;the URW Bookman fonts and support for the Adobe font set.
+title;helvetic;the URW Helvetiva fonts and support for the Adobe font set.
+title;ncntrsbk;the URW New Century Schoolbook fonts and support for the Adobe font set.
+title;timesnew;the URW Times fonts and support for the Adobe font set.
+title;zapfchan;the URW Zapf Chancery font and support for the Adobe font.
+title;zapfding;the URW Zapf Dingbat font and support for the Adobe font.
+title;timescyr;font metrics for the Monotype times cyrillic fonts.
+title;latex;the basic LaTeX package.
+title;bin-latex;the basic LaTeX binary package.
+title;jknapltx;LaTeX support for Jörg Knappen's fonts.
+title;lambda;LaTeX format based on the Omega engine.
+title;gentle;A Gentle Introduction to TeX.
+#
+# PACKAGE BLACKLISTS
+# attention, the names are tpm names, so collection-something
+#
+# these are the packages which are blacklisted anyway without any further
+# doing around. There are further blacklist down with additional stuff, like
+# additional depends on Debian packages
+# blacklist glyphlist, dont know why 
+blacklist;tpm;glyphlist;*
+#
+# first the meta package texlive
+# the texlive package should pull in a decent selection of the packages,
+# what ever this may be
+depends;texlive;texlive-latex-recommended, texlive-fonts-recommended, texlive-latex-base
+suggests;texlive;texlive-doc-en
+#
+# texlive-common must depend on tex-common as the others don't do
+depends;texlive-common;tex-common (>= 2.0)
+#depends;texlive-base-bin;ed, perl
+#
+#
+# texlive-lang-polish
+#	suggests	texlive-fonts-extra
+suggests;texlive-lang-polish;texlive-fonts-extra
+recommends;texlive-pstricks;texlive-extra-utils
+conflicts;texlive-latex-base;ivritex (<= 1.1.1-5)
+#
+# texlive-extra-utils
+#contains dviasm which is a python script
+depends;texlive-extra-utils;python
+recommends;texlive-extra-utils;ghostscript
+#
+# texlive-font-utils
+recommends;texlive-font-utils;ghostscript
+#
+# texlive-xetex needs dvipdfmx for xdvipdfmx to work, see #430373
+#depends;texlive-xetex;dvipdfmx
+# we need texlive-latex-base to get xelatex working
+depends;texlive-xetex;texlive-latex-base
+# and lmodern to make everyone happy
+recommends;texlive-xetex;lmodern
+#
+# texlive-pstricks ships pdftricks which needs ps2eps and epstopdf
+# but since these are not strong deps I use a recommends
+recommends;texlive-pstricks;texlive-font-utils, ps2eps
+#
+# texlive-formats-extra needs bplain.tex which is in texlive-latex-base
+depends;texlive-formats-extra;texlive-latex-base
+#
+# ADDITIONAL FORMATS
+#
+#disable_format;texlive-latex-base;lualatex
+#disable_format;texlive-latex-base;dvilualatex
+#
+# MOVE PACKAGES
+#
+# xmlplay *was* in texlive-htmlxml, but this is not build anymore, so move
+# it to latex-extra
+move;xmlplay;texlive-latex-extra
+#
+# move texdoc.tpm to tl-base
+move;texdoc;texlive-base
+suggests;texlive-base;perl-tk
+# texdoc(tk) needs mime-support
+depends;texlive-base;mime-support
+#
+#
+suggests;texlive-lang-cyrillic;scalable-cyrfonts-tex
+# get some suggestions for gs/pdf viewer
+suggests;texlive-base;ghostscript, gv | postscript-viewer, xpdf-reader | pdf-viewer
+#
+# FILE BLACKLISTS and KILLS
+#
+# ONLY FOR TESTING CURRENTLY pdftosrc does not compile!!!
+blacklist;file;bin/i386-linux/pdftosrc
+#
+# this one we need for installation but not installed, so map it into nowhere
+# and do not blacklist it
+blacklist;file;texmf-dist/vtex/.*
+blacklist;file;texmf-dist/doc/latex/splitindex/splitindex-Linux-i386
+blacklist;file;texmf-dist/doc/latex/splitindex/splitindex-OpenBSD-i386
+blacklist;file;texmf-dist/doc/latex/splitindex/splitindex.exe
+blacklist;file;texmf-dist/doc/latex/splitindex/splitindex.class
+blacklist;file;texmf/dvipdfm/config/config-win32
+#
+# package we do NOT install
+#
+blacklist;tpm;texlive-common;*
+blacklist;tpm;texlive-scripts;*
+blacklist;tpm;texlive-msg-translations;*
+blacklist;tpm;asymptote;*
+#
+# map all files that somehow are in tlpkg into the nowhere 
+# that is currently (AFAIS) only tlpkg/tlpostcode/xetex.pl
+mapping;tlpkg/.*;;
+#
+#
+# MAPPINGS AND SPECIALS
+#
+mapping;.*/[^/]*\.info;;
+special;.*/([^/]*\.info);install-info;
+#mapping;.*/tex/generic/config/language\.us;;
+#
+# and just ignore the file
+mapping;texmf/web2c/texmf.cnf;;
+mapping;texmf/tex/generic/config/language.dat;link;/var/lib/texmf/tex/generic/config/language.dat
+mapping;texmf/tex/generic/config/language.def;link;/var/lib/texmf/tex/generic/config/language.def
+mapping;texmf/web2c/updmap.cfg;;
+mapping;texmf/web2c/fmtutil.cnf;;
+#
+# man page handling has to be fixed ... it is a pain ;-)
+# the man pages are installed via .install files in the respective 
+# dirs
+mapping;texmf[^/]*/doc/man/man(.*)/(.*).pdf;;
+#mapping;texmf[^/]*/doc/man/man(.*)/(.*);move;/usr/share/man/man$1/$2
+mapping;texmf[^/]*/doc/man/man(.*)/(.*);;
+#
+# config file handling
+#
+# first the config files which are in /etc/texmf but are not searched via
+# kpse:
+# mktex.cnf is taken over by tex-common, send it to the nowhere
+blacklist;file;texmf[^/]*/web2c/mktex.cnf
+#
+# note that config-move-link copies the file to the given position and creates
+# a link in the original position, while config-copy (see below) copies
+# the file into the same relative position in the given tree and leaves the 
+# file also in the original position!
+# The former should be used for files which are searched for at a specific
+# location, while the latter for files which are searched via kpse
+mapping;texmf[^/]*/dvipdfm/config/config;config-move;/etc/texmf/dvipdfm/config/config
+mapping;texmf[^/]*/dvipdfmx/dvipdfmx.cfg;config-move;/etc/texmf/dvipdfmx/dvipdfmx.cfg
+mapping;texmf[^/]*/xdvi/xdvi.cfg;config-move;/etc/texmf/xdvi/xdvi.cfg
+mapping;texmf[^/]*/texdoctk/texdocrc.defaults;config-move;/etc/texmf/texdoctk/texdocrc.defaults
+#
+# files found via kpse are just copied to /etc/texmf, directive configfile
+mapping;texmf[^/]*/dvips/config/([^/]*);config-move;/etc/texmf/dvips/config/$1
+# new config files, ie those which have not been config files till now
+# and don't need special treatment
+mapping;texmf[^/]*/tex/latex/pict2e/pict2e.cfg;move;/etc/texmf/tex/latex/pict2e/pict2e.cfg
+mapping;texmf[^/]*/tex/latex/contour/contour.cfg;move;/etc/texmf/tex/latex/contour/contour.cfg
+mapping;texmf[^/]*/tex/latex/config/hyperref.cfg;move;/etc/texmf/tex/latex/config/hyperref.cfg
+mapping;texmf[^/]*/xdvi/XDvi;move;/etc/texmf/xdvi/XDvi
+# conffiles which were nuked by tetex-base' postrm, need a copy in /usr/share/texlive-*
+# config.ps is also among them, but it is handled separately (in debian/rules.in)
+mapping;texmf[^/]*/metafont/misc/modes.mf;copy-move;/etc/texmf/metafont/misc/modes.mf,/usr/share/texlive-base/modes.mf
+mapping;texmf[^/]*/tex/generic/config/pdftexconfig.tex;copy-move;/etc/texmf/tex/generic/config/pdftexconfig.tex,/usr/share/texlive-base/pdftexconfig.tex
+mapping;texmf[^/]*/tex/latex/latexconfig/color.cfg;copy-move;/etc/texmf/tex/latex/config/color.cfg,/usr/share/texlive-base/color.cfg
+mapping;texmf[^/]*/tex/latex/latexconfig/graphics.cfg;copy-move;/etc/texmf/tex/latex/config/graphics.cfg,/usr/share/texlive-base/graphics.cfg
+#
+# now the fun part
+# some files should definitely STAY in TEXMFMAIN and not go into texmf-texlive
+# but the make_destinationname function moves per standard *all* files to
+# temxf-texlive, so we have to create exceptions here!
+mapping;texmf/web2c/mktex(.*);move;/usr/share/texmf/web2c/mktex$1
+mapping;texmf/texconfig/(.*);move;/usr/share/texmf/texconfig/$1
+mapping;texmf/web2c/(.*\.pool);move;/usr/share/texmf/web2c/$1
+# texconfig is only searching in /usr/share/texmf/texdoc for the config file
+mapping;texmf/texdoc/texdoc.cnf;config-move-link;/etc/texmf/texdoc/texdoc.cnf
+#mapping;texmf/texdoc/texdoc.cnf;move;/usr/share/texmf/texdoc/texdoc.cnf
+#
+# STUFF IN DEBIAN WHICH WE ALSO INCLUDE
+#
+# beamer, xcolor, pgf
+# AND remove the patches for pgf to 1.01!!! Great!
+# beamer is in collection-latexextra, but prosper is in
+# *-recommended.  This doesn't make sense: Let beamer be
+# recommended by texlive-latex-recommended
+# This is already executes upstream
+blacklist;tpm;beamer;*
+blacklist;tpm;xcolor;*
+blacklist;tpm;pgf;*
+depends;texlive-full;pgf (>= 1.01.dfsg.1-1), latex-beamer (>= 3.06.dfsg.1-0.1), latex-xcolor (>= 2.09-1)
+recommends;texlive-pictures;pgf (>= 1.01.dfsg.1-1)
+recommends;texlive-latex-recommended;latex-beamer (>= 3.06.dfsg.1-0.1)
+recommends;texlive-latex-recommended;latex-xcolor (>= 2.09-1)
+#
+#
+# PACKAGES WHICH ARE PRESENT IN DEBIAN
+#
+# latexmk
+blacklist;tpm;latexmk;*
+depends;texlive-full;latexmk
+suggests;texlive-extra-utils;latexmk
+#
+# fragmaster
+blacklist;tpm;fragmaster;*
+depends;texlive-full;fragmaster
+suggests;texlive-extra-utils;fragmaster
+#
+# dvipng
+blacklist;tpm;dvipng;*
+# TEMPORARY: UNTIL dvipng is updated
+#depends;texlive-full;dvipng
+recommends;texlive-full;dvipng
+#
+# tex4ht
+blacklist;tpm;tex4ht;*
+# TEMPORARY: UNTIL tex4ht is updated
+recommends;texlive-full;tex4ht (>= 20051214-1)
+#depends;texlive-full;tex4ht (>= 20051214-1)
+#
+# t1utils
+blacklist;tpm;t1utils;*
+suggests;texlive-font-utils;t1utils
+depends;texlive-full;t1utils
+#
+# psutils and getafm
+# both are packaged in Debian in psutils
+blacklist;tpm;psutils;*
+blacklist;tpm;getafm;*
+suggests;texlive-font-utils;psutils
+depends;texlive-full;psutils
+#
+# cm-super
+blacklist;tpm;cm-super;*
+suggests;texlive-fonts-extra;cm-super (>= 0.3.3-3)
+depends;texlive-full;cm-super (>= 0.3.3-3)
+#
+# texinfo
+blacklist;tpm;texinfo;*
+depends;texlive-full;texinfo (>= 4.8), info (>= 4.8)
+conflicts;texlive-base;texinfo (<< 4.8);;
+#
+# preview
+blacklist;tpm;preview;*
+depends;texlive-latex-extra;preview-latex-style
+# 
+# lacheck
+blacklist;tpm;lacheck;*
+recommends;texlive-extra-utils;lacheck
+#
+# tipa in Debian
+blacklist;tpm;tipa;*
+recommends;texlive-fonts-recommended;tipa (>= 2:1.2-2.1)
+#
+# purifyeps in Debian
+blacklist;tpm;purifyeps;*
+recommends;texlive-extra-utils;purifyeps
+#
+# dvipdfmx in Debian
+#blacklist;tpm;dvipdfmx;*
+#recommends;texlive-base;dvipdfmx (>= 1:20050831-1)
+replaces;texlive-base;dvipdfmx
+provides;texlive-base;dvipdfmx
+conflicts;texlive-base;dvipdfmx
+#
+# xindy is in Debian
+blacklist;tpm;xindy;*
+recommends;texlive-extra-utils;xindy
+#
+# luatex is in Debian
+blacklist;tpm;luatex;*
+# but we have to define the format generation in texlive-base
+execute;texlive-base;AddFormat name=luatex engine=luatex patterns=language.def options="luatex.ini"
+execute;texlive-base;AddFormat name=dviluatex engine=luatex patterns=language.def options="dviluatex.ini"
+#
+# lmodern
+blacklist;tpm;lm;*
+recommends;texlive-base;lmodern (>= 0.93.3-1)
+#
+# dvi2tty is not longer in Debian
+#blacklist;tpm;dvi2tty;*
+#suggests;texlive-extra-utils;dvi2tty
+#
+# latex-sanskrit
+blacklist;tpm;sanskrit;*
+recommends;texlive-lang-indic;latex-sanskrit (>= 2.2-1)
+#
+# musixtex and friends
+blacklist;tpm;musixps;*
+blacklist;tpm;musixtex;*
+blacklist;tpm;musixflx;*
+blacklist;tpm;musixlyr;*
+# musixtex package since 0.114-2 includes musixlyr and musxtex-slurps
+depends;texlive-music;musixtex (>= 1:0.114-2)
+#
+# lcdf-typetools
+blacklist;tpm;bin-lcdftypetools;*
+# TEMPORARY: UNTIL lcdf-typetools is updated
+recommends;texlive-full;lcdf-typetools
+#depends;texlive-full;lcdf-typetools
+#
+# texpower and tpslifonts = texpower in Debian
+# TODO: what the hell are these lines???
+blacklist;tpm;tpslifonts;*
+blacklist;tpm;texpower;*
+recommends;texlive-fonts-extra;texpower (>= 0.2-2)
+recommends;texlive-latex-extra;texpower (>= 0.2-2), texlive-latex-recommended
+#
+# prosper is in Debian, can be used with a small control patch
+# but as it is not updated, I can only to a recommend
+blacklist;tpm;prosper;*
+recommends;texlive-latex-recommended;prosper (>= 1.00.4+cvs.2006.10.22-1)
+#
+# latex-cjk
+# this is its own collection which is not included, see NAME section above
+recommends;texlive-full;latex-cjk-all (>= 4.6.0+cvs20060714-2)
+#
+# jadetex, xmltex, passivetex
+# all packages which were contained in texlive-xmlhtml
+# this collection is not included, see NAME section above
+suggests;texlive-full;jadetex (>= 3.13-7.1)
+suggests;texlive-full;xmltex (>> 1.9-11.1), passivetex (>> 1.25-2)
+#
+# feynmf: separate package  
+blacklist;tpm;feynmf;*
+recommends;texlive-metapost;feynmf  
+depends;texlive-full;feynmf
+#
+# docsplitting
+# texlive-base source package
+docsplitting;texlive-latex-base
+replaces;texlive-latex-base-doc;texlive-latex-base (<= 2007-12)
+docsplitting;texlive-latex-recommended
+replaces;texlive-latex-recommended-doc;texlive-latex-recommended (<= 2007-12)
+docsplitting;texlive-fonts-recommended
+replaces;texlive-fonts-recommended-doc;texlive-fonts-recommended (<= 2007-12)
+docsplitting;texlive-pictures
+replaces;texlive-pictures-doc;texlive-pictures (<= 2007-12)
+# texlive-extra
+docsplitting;texlive-fonts-extra
+replaces;texlive-fonts-extra-doc;texlive-fonts-extra (<= 2007-3)
+docsplitting;texlive-latex-extra
+replaces;texlive-latex-extra-doc;texlive-latex-extra (<= 2007-3)
+# since bigfoot was moved at the same time, we have to replace
+# texlive-humanities, too.
+replaces;texlive-latex-extra-doc;texlive-humanities (<= 2007-3)
+docsplitting;texlive-pstricks
+replaces;texlive-pstricks-doc;texlive-pstricks (<= 2007-3)
+docsplitting;texlive-publishers
+replaces;texlive-publishers-doc;texlive-publishers (<= 2007-3)
+docsplitting;texlive-humanities
+replaces;texlive-humanities-doc;texlive-humanities (<= 2007-3)
+docsplitting;texlive-science
+replaces;texlive-science-doc;texlive-science (<= 2007-3)
+docsplitting;texlive-metapost
+replaces;texlive-metapost-doc;texlive-metapost (<= 2007-14)
+# other candidates: ...
+#  
+# NON-FREE STUFF
+#
+# unfree stuff which has to be removed from Debian
+# no sources for the jar file, bummer
+blacklist;tpm;ppower4;*
+#
+# GYRE fonts have a very strange license ...
+blacklist;tpm;tex-gyre;*
+#
+# latexmp.pdf source code is not present, blacklist it for now
+blacklist;file;texmf-dist/doc/metapost/latexmp/latexmp.pdf
+#
+# eepic docs don't contain a license statement, so blacklist them
+blacklist;file;texmf-dist/doc/latex/eepic/epic-eg4.tex
+blacklist;file;texmf-dist/doc/latex/eepic/readme
+blacklist;file;texmf-dist/doc/latex/eepic/epic-eg3.tex
+blacklist;file;texmf-dist/doc/latex/eepic/eepic.dvi
+blacklist;file;texmf-dist/doc/latex/eepic/eepic.tex
+#
+# blacklist files that are already in other debian packages:
+blacklist;tpm;dvidvi;*
+suggests;texlive-extra-utils;dvidvi
+#
+# file placement errors in TL2007
+# useless files
+# todo upstream
+blacklist;file;texmf-dist/doc/latex/mathpazo/mapfplm.tex
+blacklist;file;texmf-dist/doc/latex/mathpazo/mapppl.tex
+blacklist;file;texmf-dist/doc/latex/mathpazo/mapzplm.tex
+#
+# Changes needed for upgrade 2007->2009
+# basic stuff
+replaces;texlive-latex-base;texlive-latex-recommended (<< 2008)
+conflicts;texlive-base;texlive-base-bin (<< 2008)
+#conflicts;texlive-base;texlive-base-bin-doc
+replaces;texlive-base;texlive-base-bin-doc
+conflicts;texlive-latex-recommended;texlive-base-bin (<< 2008)
+conflicts;texlive-common;texlive-base-bin (<< 2008)
+replaces;texlive-extra-utils;texlive-base-bin
+# more special replaces
+# replacing package built from source texlive-base
+replaces;texlive-omega;texlive-fonts-extra-doc (<< 2008)
+replaces;texlive-latex-recommended;texlive-latex-extra (<< 2008)
+replaces;texlive-latex-recommended-doc;texlive-latex-extra-doc (<< 2008)
+replaces;texlive-latex-base-doc;texlive-latex-recommended-doc (<< 2008)
+replaces;texlive-generic-recommended;texlive-base (<< 2008)
+replaces;texlive-base;texlive-xetex (<< 2008)
+replaces;texlive-latex-recommended;texlive-latex-recommended-doc (<< 2008)
+replaces;texlive-latex-base;texlive-metapost (<< 2008)
+replaces;texlive-latex-base;texlive-base-bin (<< 2008)
+# replacing package built from source texlive-extra
+replaces;texlive-font-utils;texlive-fonts-extra (<< 2008)
+replaces;texlive-font-utils;texlive-extra-utils (<< 2008)
+replaces;texlive-bibtex-extra;texlive-latex-extra (<< 2008)
+replaces;texlive-bibtex-extra;texlive-latex-extra-doc (<< 2008)
+replaces;texlive-latex-extra;texlive-latex3 (<< 2008)
+replaces;texlive-latex-extra;texlive-extra-utils (<< 2008)
+replaces;texlive-latex-extra-doc;texlive-latex3 (<< 2008)
+replaces;texlive-latex-extra-doc;texlive-latex-recommended-doc (<< 2008)
+replaces;texlive-latex-extra;texlive-latex-recommended (<< 2008)
+replaces;texlive-latex-extra;texlive-base-bin (<< 2008)
+replaces;texlive-latex3;texlive-latex-extra (<< 2008)
+replaces;texlive-latex3;texlive-math-extra (<< 2008)
+replaces;texlive-games;texlive-latex-extra (<< 2008)
+replaces;texlive-games;texlive-latex-extra-doc (<< 2008)
+replaces;texlive-fonts-extra;texlive-lang-polish (<< 2008)
+replaces;texlive-fonts-extra-doc;texlive-lang-polish (<< 2008)
+replaces;texlive-plain-extra;texlive-lang-vietnamese (<< 2008)
+# replacing package built from source texlive-lang
+replaces;texlive-lang-german;texlive-latex-extra (<< 2008)
+#replaces;texlive-extra-utils;texlive-base-bin
+#
+# only for testing, need to solve the real problem
+replaces;texlive-latex-base;texlive-formats-extra
+#
+# we blacklist ALL binaries we have to do that latter on with providing
+# additional depends
+blacklist;file;bin/.*
+#
+# MUST COME AFTER OTHER mappings, ORDER IS IMPORTANT FIRST HIT FIRST SERVE!
+# would be not necessary, is done in the fallback remapping in tpm2deb.pl, but
+# indeed necessary otherwise the config remap below hits config in doc files!
+mapping;texmf[^/]*/doc/(.*);move;$doccomponent/$1
+#
+#
+#
+#
+# vim:set fileencoding=utf-8: #
+# Local Variables:
+# coding: utf-8
+# End:
--- texlive-base-2009.orig/debian/tpm2deb-bin.pl.old
+++ texlive-base-2009/debian/tpm2deb-bin.pl.old
@@ -0,0 +1,916 @@
+#!/usr/bin/perl
+#
+# tpm2deb-bin.pl
+# machinery to create debian packages from TeX Live depot
+# (c) 2005, 2006 Norbert Preining
+#
+# $Id: tpm2deb.pl 2080 2006-12-15 12:03:49Z preining $
+#
+# configuration is done via the file tpm2deb.cfg
+#
+
+BEGIN {   # get our other local perl modules.
+	($mydir = $0) =~ s,/[^/]*$,,;
+	if ($mydir eq $0) { $mydir = `pwd` ; chomp($mydir); }
+	if (!($mydir =~ m,/.*,,)) { $mmydir = `pwd`; chomp($mmydir); $mydir = "$mmydir/$mydir" ; }
+	unshift (@INC, $mydir);
+	unshift (@INC, "$mydir/../build/tools");
+}
+
+use strict "vars";
+# use strict "refs"; # not possible with merge_into
+use warnings;
+no warnings 'once';
+no warnings 'uninitialized';
+
+#use Strict;
+use Getopt::Long;
+use File::Basename;
+use File::Copy;
+use File::Path;
+use File::Temp qw/ tempfile tempdir /;
+use Storable;
+## not needed, atm we are calling eperl binary use Parse::ePerl;
+#use XML::DOM;
+use Cwd;
+#use FileUtils qw(canon_dir cleandir make_link newpath member
+#		 normalize substitute_var_val dirname diff_list remove_list
+#		 rec_rmdir sync_dir walk_dir start_redirection stop_redirection);
+#use Tpm;
+
+
+#
+# Configuration for destination of files
+# DONT USER DOUBLE QUOTES; THESE VARIABLES HAVE TO GET REEVALUATED
+# AFTER $tmpdir IS SET!!
+#
+my $sysdebdest = '$tmpdir/debian';
+my $sysbasedir = '$debdest/$package';
+my $sysbindest = '$basedir/usr/bin';
+my $sysrundest = '$basedir/usr/share';
+my $sysdocdest = '$basedir/usr/share/doc/$package';
+my $sysetcdest = '$basedir/etc/texmf';
+
+my $debdest;
+my $basedir;
+my $bindest;
+my $rundest;
+my $docdest;
+my $etcdest;
+
+my @configfiles;
+
+my $texmfdist = "texmf-texlive";
+my $opt_nosource=0;
+my $optdestination="";
+
+my $opt_debug;
+my $opt_master;
+our $Master;
+my $globalreclevel=1;
+
+my $result = GetOptions ("debug!", 	# debug mode
+	"nosource!" => \$opt_nosource,			# don't include source files
+	"master=s" => \$opt_master,	# location of Master
+	"dest=s" => \$optdestination,	# where to write files
+	"reclevel=i" => \$globalreclevel,	# recursion level
+	);
+ 
+# Norbert, is $, intended here, or should it rather be m{/.*$}?
+if (!($opt_master =~ m,/.*$,,)) {
+	$Master = `pwd`;
+	chomp($Master);
+	$Master .= "/$opt_master";
+} else {
+	$Master = $opt_master;
+}
+my $TpmGlobalPath = $Master;
+my $DataGlobalPath = $Master;
+
+#
+# put Master/Tools/ into the include path to find TeX Live perl modules
+#
+unshift (@INC, "$Master/Tools");
+#
+# these we can only load now that we have correctly set the path to Master
+#
+require Strict;
+require XML::DOM;
+require FileUtils;
+import FileUtils qw(canon_dir cleandir make_link newpath member
+	normalize substitute_var_val dirname diff_list remove_list
+	rec_rmdir sync_dir walk_dir start_redirection stop_redirection);
+require Tpm;
+
+my $parser = new XML::DOM::Parser;
+my $startdir=getcwd();
+chdir($startdir);
+File::Basename::fileparse_set_fstype('unix');
+
+use tpm2debcommon;
+
+&main(@ARGV);
+
+1;
+
+
+sub main {
+	my (@packages) = @_;
+	${Tpm::MasterDir} = $TpmGlobalPath;
+	my $arch = "all";
+	$Tpm::CurrentArch = "i386-linux";
+	initialize_config_file_data("debian/tpm2deb.cfg");
+	load_collection_tpm_data();
+	build_data_hash();
+	check_consistency();
+	foreach my $package (@packages) {
+		# 
+		# various variables have to be set
+		#
+		#$arch = get_arch($package);
+		print "Working on $package, arch=$arch\n";
+		make_deb($package);
+	}
+}
+
+
+#
+# make_deb
+#
+sub make_deb {
+	# my function
+	#
+	# do_special ($originalfilename, $finaldestinationfilename)
+	#
+	# Do special actions as specified in the config file, like install info
+	# etc
+	my @SpecialActions = ();
+	sub do_special {
+		my ($origfn, $finalfn) = @_;
+		SPECIALS: foreach my $special (@{$TeXLive{'all'}{'special_actions_config'}}) {
+			my ($pat, $act) = ($special =~ m/(.*):(.*)/);
+			if ($origfn =~ m|$pat$|) {
+				if ($act eq "install-info") {
+					push @SpecialActions, "install-info:$origfn";
+				} else {
+					print "Unknown special action $act, terminating!\n";
+					exit 1;
+				}
+			}
+		}
+	}
+	# real start
+	my ($package) = @_;
+	my $foo;
+	my $tmpdir;
+	if ($optdestination ne "") {
+		$tmpdir = $optdestination;
+	} else {
+		$tmpdir = ".";
+	}
+	$opt_debug && print "tmpdir = $tmpdir\n";
+	$foo="\$debdest = \"$sysdebdest\""; eval $foo;
+	$foo="\$basedir = \"$sysbasedir\""; eval $foo;
+	$foo="\$bindest = \"$sysbindest\""; eval $foo;
+	$foo="\$rundest = \"$sysrundest\""; eval $foo;
+	$foo="\$docdest = \"$sysdocdest\""; eval $foo;
+	$foo="\$etcdest = \"$sysetcdest\""; eval $foo;
+	$opt_debug && print "\nProcess $package\n";
+	if ($opt_debug) {
+		print "debdest = $debdest\n";
+		print "basedir = $basedir\n";
+		print "bindest = $bindest\n";
+		print "rundest = $rundest\n";
+		print "docdest = $docdest\n";
+		print "etcdest = $etcdest\n";
+	}
+	my %lists = %{&get_all_files($package,$globalreclevel)};
+	my $title = $TeXLive{'binary'}{$package}{'title'};
+	my $description = $TeXLive{'binary'}{$package}{'description'};
+	eval { mkpath($rundest) };
+	if ($@) {
+		die "Couldn't create dir: $@";
+	}  
+	if ($opt_debug) {
+		print "SOURCEFILES: ", @{$lists{'SourceFiles'}}, "\n";
+		print "RUNFILES: ", @{$lists{'RunFiles'}}, "\n";
+	}
+	# clean @configfiles
+	@configfiles = ();
+	&mkpath($docdest);
+	if (!$opt_nosource) {
+		DOSFILE: foreach my $f (@{$lists{'SourceFiles'}}) {
+			foreach my $pat (@{$TeXLive{'all'}{'file_blacklist'}}) { 
+				if ($f =~ m|^${pat}$|) { next DOSFILE ; }
+			}
+			my $ret = do_remap_and_copy($f,$rundest);
+			do_special($f,$ret);
+		}
+	}
+	DORFILE: foreach my $f (@{$lists{'RunFiles'}}) {
+		foreach my $pat (@{$TeXLive{'all'}{'file_blacklist'}}) {
+			if ($f =~ m|^${pat}$|) { next DORFILE ; }
+		}
+		my $ret = do_remap_and_copy($f,$rundest);
+		do_special($f,$ret);
+	}
+	my %DocDirHash = ();
+	my @LinkedDocDir = ();
+	DODFILE: foreach my $f (@{$lists{'DocFiles'}}) {
+		foreach my $pat (@{$TeXLive{'all'}{'file_blacklist'}}) {
+			if ($f =~ m|^${pat}$|) { next DODFILE ; }
+		}
+		my $ret = do_remap_and_copy($f,$rundest,'^[^/]*/doc/(.*)$','$docdest/$1');
+		do_special($f,$ret);
+	}
+	DOBFILE: foreach my $f (@{$lists{'BinFiles'}}) {
+		$opt_debug && print "BINFILE: $f\n";
+		foreach my $pat (@{$TeXLive{'all'}{'file_blacklist'}}) {
+			if ($f =~ m|^${pat}$|) { next DOBFILE ; }
+		}
+		my $ret = do_remap_and_copy($f,$bindest,'^bin/[^/]*/(.*)$','$bindest/$1');
+		do_special($f,$ret);
+	}
+	if ($package eq 'texlive-base') {
+		# now activate the language.us file!
+		&mkpath("$basedir/var/lib/tex-common/language-cnf/");
+		open(LISTFILE, ">$basedir/var/lib/tex-common/language-cnf/$package.list")
+		    or die("Cannot open $basedir/var/lib/tex-common/language-cnf/$package.list");
+		print LISTFILE "09$package\n";
+		close LISTFILE;
+		&mkpath("$etcdest/language.d");
+		open(FOO,">$etcdest/language.d/09$package.cnf")
+		    or die("Cannot open $etcdest/language.d/09$package.cnf");
+		print FOO <<EOF;
+% 09$package.cnf
+%
+% You really can change stuff in this file, but it is NOT RECOMMENDED
+% to play around with this file if you do not know what you are doing!
+% Please leave this comment!
+% -_- DebPkgProvidedMaps -_-
+%
+EOF
+		open (BAR,"$DataGlobalPath/texmf/tex/generic/config/language.us")
+		or die("Cannot open $DataGlobalPath/texmf/tex/generic/config/language.us");
+		while (<BAR>) { print FOO $_; }
+		close (BAR);
+		close (FOO);
+	}
+	#
+	# EXECUTE ACTIONS
+	#
+	my @Executes = get_all_executes($package,$globalreclevel);
+	my $gotmapfiles = 0;
+	my $firstlang =1;
+	my %langhash = ();
+	my %formathash = ();
+	$opt_debug && print "Executes= @Executes\n";
+	my %Job;
+	foreach (@Executes) {
+		my @p = /([^=]+)=([^ ]+)\s+([^=]+)=([^ ]+)\s*([^=]*)=?(.*)/;
+		$Job{'parameter'} = $Job{'function'} = $Job{'mode'} = '';
+		$Job{$p[0]}=$p[1];
+		$Job{$p[2]}=$p[3];
+		$Job{$p[4]}=$p[5];
+		my $instcmd;
+		my $rmcmd;
+		if ($Job{'function'} eq 'addMap') {
+			if (!$gotmapfiles) {
+				&mkpath("$etcdest/updmap.d/");
+				open(UPDMAPCFG, ">$etcdest/updmap.d/10$package.cfg")
+				    or die("Cannot open $etcdest/updmap.d/10$package.cfg");
+				print UPDMAPCFG <<EOF;
+# 10$package.cfg
+# You can change/add entries to this file and changes will be preserved
+# over upgrades, even if you have removed the main package prior
+# (not if you purged it). YOu should leave the following pseudo comment
+# present in the file!
+# -_- DebPkgProvidedMaps -_-
+#
+EOF
+				$gotmapfiles = 1;
+			}
+			my $name=$Job{'parameter'};
+			if ($Job{'mode'} eq 'mixed') {
+				print UPDMAPCFG "Mixed";
+			}
+			print UPDMAPCFG "Map $name\n";
+		} elsif ($Job{'function'} eq 'BuildFormat') {
+			my $name=$Job{'parameter'};
+			$formathash{$name} = 1;
+		} elsif ($Job{'function'} eq 'BuildLanguageDat') {
+			my $name=$Job{'parameter'};
+			$langhash{$name} = 1;
+		}
+	}
+	#
+	# additional files to be created
+	#
+	my @formats = keys %formathash;
+	#
+	# Formats
+	#
+	if ($#formats >= 0) {
+		&mkpath("$etcdest/fmt.d/");
+		&mkpath("$basedir/var/lib/tex-common/fmtutil-cnf/");
+		open(LISTFILE, ">>$basedir/var/lib/tex-common/fmtutil-cnf/$package.list")
+		    or die("Cannot open $basedir/var/lib/tex-common/fmtutil-cnf/$package.list");
+		print LISTFILE "10$package\n";
+		close LISTFILE;
+		open(FOO, ">$etcdest/fmt.d/10$package.cnf") 
+		    or die("Cannot open $etcdest/fmt.d/10$package.cnf") ;
+		print FOO <<EOF;
+# 
+# 10$package.cnf
+#
+# You really can change stuff in this file, but it is NOT RECOMMENDED
+# to play around with this file if you do not know what you are doing!
+# Please leave this comment!
+# -_- DebPkgProvidedMaps -_-
+#
+EOF
+		foreach my $f (@formats) {
+		open(INFILE,"<$DataGlobalPath/texmf/fmtutil/format.$f.cnf")
+		    or die("Cannot open $DataGlobalPath/texmf/fmtutil/format.$f.cnf");
+			my @lines = <INFILE>;
+			close(INFILE);
+			print FOO @lines;
+		}
+		close(FOO);
+	}
+	#
+	# Map files
+	#
+	if ($gotmapfiles) {
+		# We have to call update-updmap and updmap-sys, but also create
+		# a file in /var/lib/tex-common/fontmap-cfg/pkgname.list
+		#/ containing all the files put into /etc/texmf/updmap.d/
+		&mkpath("$basedir/var/lib/tex-common/fontmap-cfg/");
+		open(LISTFILE, ">$basedir/var/lib/tex-common/fontmap-cfg/$package.list")
+		    or die("Cannot open $basedir/var/lib/tex-common/fontmap-cfg/$package.list");
+		print LISTFILE "10$package\n";
+		close LISTFILE;
+		close UPDMAPCFG;
+	}
+	#
+	# Languages
+	#
+	my @langs = keys %langhash;
+	if ($#langs >= 0) {
+		&mkpath("$etcdest/language.d/");
+		&mkpath("$basedir/var/lib/tex-common/language-cnf/");
+		open(LISTFILE, ">>$basedir/var/lib/tex-common/language-cnf/$package.list")
+		    or die("$basedir/var/lib/tex-common/language-cnf/$package.list");
+		print LISTFILE "10$package\n";
+		close LISTFILE;
+		open(LANGMAPCNF, ">$etcdest/language.d/10$package.cnf")
+		    or die("Cannot open $etcdest/language.d/10$package.cnf");
+		print LANGMAPCNF <<EOF;
+% 10$package.cnf
+%
+% You really can change stuff in this file, but it is NOT RECOMMENDED
+% to play around with this file if you do not know what you are doing!
+% Please leave this comment!
+% -_- DebPkgProvidedMaps -_-
+%
+EOF
+		foreach my $lang (keys %langhash) {
+			open(INFILE,"<$DataGlobalPath/texmf/tex/generic/config/language.$lang.dat")
+			    or die("Cannot open $DataGlobalPath/texmf/tex/generic/config/language.$lang.dat");
+			while (<INFILE>) {
+				#
+				# do NOT disable any language, users should only choose
+				# those languages they are interested in. AND, I should
+				# make a debconf question which languages should be
+				# installed/activated!!!
+				# if ("$lang" eq "py") { print LANGMAPCNF "% "; }
+				print LANGMAPCNF "$_";
+			}
+			close(INFILE);
+		}
+		close(LANGMAPCNF);
+	}
+	#
+	# Work on @SpecialActions
+	#
+	my @infofiles = ();
+	foreach my $l (@SpecialActions) {
+		my ($act, $fname) = ($l =~ m/(.*):(.*)/);
+		if ($act eq "install-info") {
+			push @infofiles, "$fname";
+		} else {
+			print "Unknown action, huuu, where does this come from: $act, exit!\n";
+			exit 1;
+		}
+	}
+	if ($#infofiles >=0) {
+		open(INFOLIST, ">$debdest/$package.info")
+		    or die("Cannot open $debdest/$package.info");
+		foreach my $f (@infofiles) {
+			print INFOLIST "$f\n";
+		}
+		close(INFOLIST);
+	}
+	#
+	# create the maintainer scripts
+	#
+	make_maintainer($package,$debdest);
+}
+
+#
+# make_maintainer
+#
+# create maintainer scripts
+#
+sub make_maintainer {
+	# my functions
+	sub merge_into {
+		my ($fname, $fhandle) = @_;
+		if (-r "$fname") {
+			open(FOO,"<$fname")
+			    or die("Cannot open $fname");
+			while (<FOO>) { print $fhandle $_; }
+		}
+	}
+	# real start
+	my ($package,$destination) = @_;
+	my @Executes = get_all_executes($package,$globalreclevel);
+	$debdest = $destination;
+	&mkpath($debdest);
+	my $gotmapfiles = 0;
+	my $firstlang = 1;
+	my %langhash = ();
+	my %formathash = ();
+	my %Job;
+	$opt_debug && print "Executes= @Executes\n";
+	foreach (@Executes) {
+		my @p = /([^=]+)=([^ ]+)\s+([^=]+)=([^ ]+)\s*([^=]*)=?(.*)/;
+		$Job{'parameter'} = $Job{'function'} = $Job{'mode'} = '';
+		$Job{$p[0]}=$p[1];
+		$Job{$p[2]}=$p[3];
+		$Job{$p[4]}=$p[5];
+		my $instcmd;
+		my $rmcmd;
+		if ($Job{'function'} eq 'addMap')
+		{
+			if (!$gotmapfiles) {
+				$gotmapfiles = 1;
+			}
+		}
+		elsif ($Job{'function'} eq 'BuildFormat')
+		{
+			my $name=$Job{'parameter'};
+			$formathash{$name} = 1;
+		} elsif ($Job{'function'} eq 'BuildLanguageDat') {
+			my $name=$Job{'parameter'};
+			$langhash{$name} = 1;
+		}
+	}
+	my @formats = keys %formathash;
+	my @alines = ();
+	my @blines = ();
+	my $allformatsbuild = 0;
+	#
+	# it doesn't hurt to call all three of them in any case!
+	#
+	$package eq "texlive-common" || push @alines, "update-texmf";
+	$package eq "texlive-common" || push @alines, "update-language";
+	$package eq "texlive-common" || push @alines, "update-fmtutil";
+	$package eq "texlive-common" || push @alines, "update-updmap --quiet";
+	#
+	# POSTINST HANDLING
+	#
+	if ($package eq "texlive") {
+		# do nothing, texlive does not include any real files, so 
+		# no call to mktexlsr necessary
+	} elsif (($package =~ m/texlive-doc-/) || ($package eq "texlive-common")) {
+		push @blines, "if which mktexlsr > /dev/null ; then update_lsr_files ; fi";
+	} else {
+		push @blines, "update_lsr_files";
+	}
+	if ($package eq 'texlive-base') {
+		push @blines, "rm -f /var/lib/texmf/web2c/latex.fmt /var/lib/texmf/web2c/latex.log /var/lib/texmf/web2c/pdflatex.fmt /var/lib/texmf/web2c/pdflatex.log";
+		push @blines, "build_format --all";
+		$allformatsbuild = 1;
+	}
+	if ($package eq 'texlive-base-bin') {
+		push @blines, "rm -f /var/lib/texmf/web2c/latex.fmt /var/lib/texmf/web2c/latex.log /var/lib/texmf/web2c/pdflatex.fmt /var/lib/texmf/web2c/pdflatex.log";
+		push @blines, "build_format --all";
+		$allformatsbuild = 1;
+	}
+	#
+	# Formats
+	#
+	my @doneformats = ();
+	if ($#formats >= 0) {
+		foreach my $f (@formats) {
+			open(INFILE,"<$DataGlobalPath/texmf/fmtutil/format.$f.cnf")
+			    or die("Cannot open $DataGlobalPath/texmf/fmtutil/format.$f.cnf");
+			my @lines = <INFILE>;
+			close(INFILE);
+			my @actualformats = grep(!/(^\s*#)|(^\s*$)/, @lines);
+			foreach my $l (@actualformats) {
+				my @bar = reverse(split(' ',$l));
+				my $fmt = pop(@bar);
+				#
+				# remove old fmt file if it is present
+				#
+				push @alines, "rm -f /var/lib/texmf/web2c/$fmt.*";
+				$allformatsbuild || push @blines, "build_format --byfmt $fmt";
+				push @doneformats, $fmt;
+			}
+		}
+	}
+	my @extraformats = ();
+	if ((defined($TeXLive{'binary'}{$package}{'extra_format'})) && (!$allformatsbuild)) {
+		foreach my $fmt (keys %{$TeXLive{'binary'}{$package}{'extra_format'}}) {
+			if (!ismember($fmt,@doneformats)) {
+				push @extraformats, $fmt;
+			}
+		}
+	}
+	foreach my $fmt (@extraformats) {
+		push @alines, "rm -f /var/lib/texmf/web2c/$fmt.*";
+		if ($TeXLive{'binary'}{$package}{'extra_format'}{$fmt} eq "0") {
+			push @blines, "build_format --byfmt $fmt";
+		} elsif ($TeXLive{'binary'}{$package}{'extra_format'}{$fmt} eq "1") {
+			push @blines, "build_format_if_format_exists --byfmt $fmt";
+		} else {
+			push @blines, "build_format_if_file_exists --byfmt $fmt $TeXLive{'binary'}{$package}{'extra_format'}{$fmt}";
+		}
+	}
+	#
+	# Map files
+	#
+	if ($gotmapfiles) {
+		# We have to call update-updmap and updmap-sys, but also create
+		# a file in /var/lib/tex-common/fontmap-cfg/pkgname.list
+		#/ containing all the files put into /etc/texmf/updmap.d/
+		push @blines, "create_fontmaps";
+	}
+	#
+	# Languages
+	#
+	my @langs = keys %langhash;
+	if ($#langs >= 0) {
+		#
+		# Again a problem with texmf-config settings and fmtutil-sys not
+		# finding language.dat in the right position.
+		#
+		push @blines, "build_format_if_format_exists --byhyphen latex `kpsewhich language.dat`";
+	}
+	if (($#alines >= 0) || 
+		($#blines >= 0) || 
+		(-r "$debdest/postinst.pre") || 
+		(-r "$debdest/postinst.post") || 
+		(-r "$debdest/$package.postinst.pre") || 
+		(-r "$debdest/$package.postinst.post")) {
+		open(POSTINST, ">$debdest/$package.postinst")
+		    or die("Cannot open $debdest/$package.postinst");
+		print POSTINST "#!/bin/sh -e\n";
+		merge_into("$debdest/common.functions", POSTINST);
+		merge_into("$debdest/common.functions.postinst", POSTINST);
+		#
+		# first we merge the .pre parts into the scripts
+		#
+		merge_into("$debdest/postinst.pre", POSTINST);
+		merge_into("$debdest/$package.postinst.pre", POSTINST);
+		print POSTINST <<'EOF';
+case "$1" in
+	configure|abort-upgrade|abort-remove|abort-deconfigure)
+EOF
+		foreach my $a (@alines) {
+			print POSTINST "\t", $a, "\n";
+		}
+		foreach my $b (@blines) {
+			print POSTINST "\t", $b, "\n";
+		}
+		print POSTINST <<'EOF';
+	;;
+	*)
+		echo "postinst called with unknown argument '$1'" >&2
+	exit 1
+	;;
+esac
+
+EOF
+		print POSTINST "\n#DEBHELPER#\n";
+		merge_into("$debdest/$package.postinst.post", POSTINST);
+		merge_into("$debdest/postinst.post", POSTINST);
+		print POSTINST "exit 0\n";
+		close POSTINST;
+	}
+	#
+	# END OF POSTINST STUFF
+	#
+	#
+	# PREINST STUFF
+	#
+	# only create the preinst file *if* there is a content!
+	# if there is a debhelper entry, it will create it if necessary
+	if ((-r "$debdest/$package.preinst.pre") || 
+		(-r "$debdest/$package.preinst.post") ||
+		(-r "$debdest/preinst.pre") ||
+		(-r "$debdest/preinst.post") ||
+		($#configfiles >= 0)) {
+		open(PREINST, ">$debdest/$package.preinst")
+                    or die("Cannot open $debdest/$package.preinst");
+		print PREINST "#!/bin/sh -e\n";
+		merge_into("$debdest/common.functions", PREINST);
+		merge_into("$debdest/common.functions.preinst", PREINST);
+		merge_into("$debdest/preinst.pre", PREINST);
+		merge_into("$debdest/$package.preinst.pre", PREINST);
+		foreach my $cf (@configfiles) {
+			print PREINST "handle_config_file_preinst $cf\n"
+		}
+		print PREINST "\n#DEBHELPER#\n";
+		merge_into("$debdest/$package.preinst.post", PREINST);
+		merge_into("$debdest/preinst.post", PREINST);
+		print PREINST "exit 0\n";
+		close PREINST;
+	}
+	#
+	# END OF PREINST STUFF
+	#
+	#
+	# PRERM STUFF
+	#
+	# only create the prerm file *if* there is a content!
+	# if there is a debhelper entry, it will create it if necessary
+	if ((-r "$debdest/$package.prerm.pre") || 
+		(-r "$debdest/$package.prerm.post") ||
+		(-r "$debdest/prerm.pre") ||
+		(-r "$debdest/prerm.post")) {
+		open(PRERM, ">$debdest/$package.prerm")
+                    or die("Cannot open $debdest/$package.prerm");
+		print PRERM "#!/bin/sh -e\n";
+		merge_into("$debdest/common.functions", PRERM);
+		merge_into("$debdest/common.functions.prerm", PRERM);
+		merge_into("$debdest/prerm.pre", PRERM);
+		merge_into("$debdest/$package.prerm.pre", PRERM);
+		print PRERM "\n#DEBHELPER#\n";
+		merge_into("$debdest/$package.prerm.post", PRERM);
+		merge_into("$debdest/prerm.post", PRERM);
+		print PRERM "exit 0\n";
+		close PRERM;
+	}
+	#
+	# END OF PRERM STUFF
+	#
+	# POSTRM STUFF
+	# on remove:
+	# 		call update-updmap and updmap-sys
+	# 		call update-language and fmtutil-sys --byhyphen
+	# 		call update-fmtutil and remove old formats
+	# on purge etc:
+	# 		do nothing
+	#
+	@alines = ();
+	@blines = ();
+	#
+	# Formats
+	# 
+    if ($package eq "texlive") {
+	        # do nothing, texlive does not include any real files, so
+			# no call to mktexlsr necessary
+	} else {
+		push @blines, "check_run_without_errors mktexlsr";
+	}
+	if ($#formats >= 0) {
+		foreach my $f (@formats) {
+		open(INFILE,"<$DataGlobalPath/texmf/fmtutil/format.$f.cnf")
+		    or die("Cannot open $DataGlobalPath/texmf/fmtutil/format.$f.cnf");
+			my @lines = <INFILE>;
+		my @actualformats = grep(!/(^\s*#)|(^\s*$)/, @lines);
+		foreach my $l (@actualformats) {
+			my @bar = reverse(split(' ',$l));
+			my $fmt = pop(@bar);
+		push @alines, "rm -f /var/lib/texmf/web2c/$fmt.*";
+		}
+			close(INFILE);
+	}
+	}
+	foreach my $fmt (@extraformats) {
+		push @alines, "rm -f /var/lib/texmf/web2c/$fmt.*";
+	}
+	if (($#formats >= 0) || ($#extraformats >= 0)) {
+		push @alines, "check_run_without_errors update-fmtutil";
+	}
+	#
+	# Map files
+	#
+	if ($gotmapfiles) {
+		push @alines, "check_run_without_errors update-updmap";
+		push @blines, "check_run_without_errors updmap-sys";
+	}
+	#
+	# Languages
+	# 
+	@langs = keys %langhash;
+	if ($#langs >= 0) {
+		#
+		# Again a problem with texmf-config settings and fmtutil-sys not
+		# finding language.dat in the right position.
+		#
+		push @alines, "check_run_without_errors update-language";
+		push @blines, "if which fmtutil-sys >/dev/null ; then";
+		push @blines, "\tbuild_format_if_format_exists --byhyphen latex `kpsewhich language.dat`";
+		push @blines, "fi";
+	}
+	if (($#alines >= 0) || 
+		($#blines >= 0) || 
+		(-r "$debdest/$package.postrm.pre") || 
+		(-r "$debdest/$package.postrm.pre") || 
+		(-r "$debdest/postrm.pre") || 
+		(-r "$debdest/postrm.post")) {
+		open(POSTRM, ">$debdest/$package.postrm")
+                    or die("Cannot open $debdest/$package.postrm");
+		print POSTRM "#!/bin/sh -e\n";
+		merge_into("$debdest/common.functions", POSTRM);
+		merge_into("$debdest/common.functions.postrm", POSTRM);
+		#
+		# first we merge the .pre parts into the scripts
+		#
+		merge_into("$debdest/postrm.pre", POSTRM);
+		merge_into("$debdest/$package.postrm.pre", POSTRM);
+		#
+		print POSTRM <<'EOF';
+
+case "$1" in
+  remove|disappear)
+EOF
+		foreach my $a (@alines) {
+			print POSTRM "\t", $a, "\n";
+		}
+		foreach my $b (@blines) {
+			print POSTRM "\t", $b, "\n";
+		}
+		print POSTRM <<'EOF';
+	;;
+	purge|upgrade|failed-upgrade|abort-upgrade|abort-install)
+	;;
+	*)
+		echo "postrm called with unknown argument '$1'" >&2
+	exit 1
+	;;
+esac
+
+EOF
+		print POSTRM "\n#DEBHELPER#\n";
+		merge_into("$debdest/$package.postrm.post", POSTRM);
+		merge_into("$debdest/postrm.post", POSTRM);
+		print POSTRM "exit 0\n";
+		close POSTRM;
+	}
+	#
+	# END OF POSTRM STUFF
+	#
+}
+
+
+#
+# do_remap_and_copy
+#
+sub do_remap_and_copy {
+	# my functions
+	#
+	# here the mapping from texlive pathes to debian pathes is done
+	#
+	sub make_destinationname {
+		my ($o) = @_;
+		$o =~ s#texmf-dist#$texmfdist#;
+		$o =~ s#texmf-doc#$texmfdist#;
+		#
+		# we do map *ALL* files into $texmfdist, not only the dist files
+		#
+		$o =~ s#texmf/#$texmfdist/#;
+		return($o);
+	}
+	# real start
+	my ($f,$standarddest,$finalremap,$finaldest) = @_;
+	my $gotremapped = 0;
+	my $returnvalue = "**NOTSET**";
+
+	my $destname = make_destinationname($f);
+	$opt_debug && print "DESTINATION NAME = $destname\n";
+	MAPPINGS: foreach my $maplines (@{$TeXLive{'all'}{'filemappings'}}) {
+		my ($pat, $dest) = ($maplines =~ m/(.*):(.*)/);
+		if ($f =~ m|$pat$|) {
+			$gotremapped = 1;
+			my $act = $TeXLive{'all'}{'file_map_actions'}{$pat};
+			my $newdest;
+			my $foo="\$newdest = \"$dest\"";
+			eval $foo;
+			$opt_debug && print "REMAP HIT f=$f\nnewdest=$newdest\npat=$pat\ndest=$dest\n";
+			# if you add possible actions here, also add them to the list in tpm2deb.cfg
+			if ($act eq "remap") {
+				&mkpath(dirname($newdest));
+				mycopy("$DataGlobalPath/$f",$newdest);
+				$returnvalue = $newdest;
+			} elsif ($act eq "copy") {
+				# mapping;origfile;copy;TEXMF-tree-base
+				# eg
+				# mapping;temxf/tex/latex/pict2e/pict2e.cfg;copy;/etc/texmf
+				#
+				# first install it into the normal path
+				mycopy("$DataGlobalPath/$f","$standarddest/$destname");
+				&mkpath("$basedir/$newdest");
+				# remove the leading texmf{-dist,-doc,}/
+				my $o = $f;
+				$o =~ s#texmf-dist#texmf#;
+				$o =~ s#texmf-doc#texmf#;
+				$o =~ s#texmf/##;
+				mycopy("$DataGlobalPath/$f","$basedir$newdest/$o");
+				$returnvalue = "$basedir$newdest/$o";
+			} elsif ($act eq "config-copy") {
+				# mapping;origfile;config-copy;TEXMFSYSCONFIGPATH
+				# eg
+				# mapping;temxf/tex/generic/language.dat;config-copy;/etc/texmf
+				#
+				# first install it into the normal path
+				mycopy("$DataGlobalPath/$f","$standarddest/$destname");
+				&mkpath("$basedir/$newdest");
+				# remove the leading texmf{-dist,-doc,}/
+				my $o = $f;
+				$o =~ s#texmf-dist#texmf#;
+				$o =~ s#texmf-doc#texmf#;
+				$o =~ s#texmf/##;
+				mycopy("$DataGlobalPath/$f","$basedir$newdest/$o");
+				$returnvalue = "$standarddest/$destname";
+				push @configfiles, "$newdest/$o";
+			} elsif ($act eq "link") {
+				&mkpath(dirname("$standarddest/$destname"));
+				symlink($newdest, "$standarddest/$destname") or
+					die "Cannot symlink $standarddest/$destname -> $newdest: $!\n"; 
+				$returnvalue = $newdest;
+			} elsif ($act eq "config-link") {
+				# config-link is LIKE remap-link, only that we maybe can 
+				# add some automatic specialities for config-file 
+				# maintainer script magic
+				# remap and link from the original destination
+				&mkpath(dirname("$basedir$newdest"));
+				mycopy("$DataGlobalPath/$f","$basedir/$newdest");
+				# we have to strip of the $debdest part
+				&mkpath(dirname("$standarddest/$destname"));
+				symlink($newdest, "$standarddest/$destname") or
+					die "Cannot symlink $standarddest/$destname -> $newdest: $!\n"; 
+				$returnvalue = $newdest; ## ?? or $destname????
+				push @configfiles, $newdest;
+			} elsif ($act eq "remap-link") {
+				# remap and link from the original destination
+				&mkpath(dirname($newdest));
+				mycopy("$DataGlobalPath/$f",$newdest);
+				# we have to strip of the $debdest part
+				$foo = $newdest;
+				$foo =~ s/^$basedir//;
+				&mkpath(dirname("$standarddest/$destname"));
+				symlink($foo, "$standarddest/$destname") or
+					die "Cannot symlink $standarddest/$destname -> $newdest: $!\n"; 
+				$returnvalue = $newdest; ## ?? or $destname????
+			} elsif ($act eq "add-link") {
+				#print "DEBUG: f=$f\nDEBUG: destname=$destname\nDEBUG: newdest=$newdest\n";
+				mycopy("$DataGlobalPath/$f","$standarddest/$destname");
+				&mkpath(dirname($newdest));
+				$b = "$standarddest/$destname";
+				symlink($b,$newdest) or
+					die "Cannot symlink, $newdest -> $b: $!\n";
+				$returnvalue = "$standarddest/$destname";
+			} elsif ($act eq "replace-link") {
+				my ($a,$b) = split(/%/,$newdest);
+				&mkpath(dirname($a));
+				symlink($b,$a) or die "Cannot symlink $a -> $b: $!\n";
+				$returnvalue = $b;
+			} elsif ($act eq "") {
+				$returnvalue = "";
+				# do nothing, the file is killed
+			} else {
+				print "maplines=$maplines\nact = $TeXLive{'all'}{'file_map_actions'}{$pat}\n";
+				print "Unknown action $act in config file, terminating!\n";
+				exit 1;
+			}
+			last MAPPINGS;
+		}
+	}
+	if ($gotremapped == 0) {
+		if ($finalremap ne "" && $destname =~ m|$finalremap|) {
+			my $foo="\$finaldest = \"$finaldest\"";
+			eval $foo;
+			&mkpath(dirname($finaldest));
+			mycopy("$DataGlobalPath/$f",$finaldest);
+			$returnvalue = $finaldest;
+		} else {
+			$opt_debug && print "NORMAL COPY: $standarddest/$destname\n";
+			&mkpath(dirname("$standarddest/$destname"));
+			mycopy("$DataGlobalPath/$f","$standarddest/$destname");
+			$returnvalue = "$standarddest/$destname";
+		}
+	}
+	return($returnvalue);
+}
+
+### Local Variables:
+### perl-indent-level: 4
+### tab-width: 4
+### indent-tabs-mode: t
+### End:
+# vim:set tabstop=4: #
--- texlive-base-2009.orig/debian/texlive-luatex.override
+++ texlive-base-2009/debian/texlive-luatex.override
@@ -0,0 +1,4 @@
+texlive-luatex: zero-byte-file-in-doc-directory
+texlive-luatex: extra-license-file
+texlive-luatex: script-not-executable
+texlive-luatex: wrong-name-for-upstream-changelog
--- texlive-base-2009.orig/debian/rules
+++ texlive-base-2009/debian/rules
@@ -0,0 +1,94 @@
+#!/usr/bin/make -f
+# 
+# debian/rules file for texlive-base
+# $Id: rules.in 4319 2009-10-26 04:01:14Z preining $
+
+include /usr/share/quilt/quilt.make
+
+PACKAGES=texlive-base texlive-generic-recommended texlive-latex-base texlive-latex-recommended texlive-fonts-recommended texlive-pictures texlive-luatex texlive-metapost texlive-omega texlive-xetex texlive-fonts-recommended-doc texlive-latex-base-doc texlive-latex-recommended-doc texlive-metapost-doc texlive-pictures-doc
+METAPACKAGES=texlive texlive-full texlive-common
+
+SHELL=/bin/bash
+
+
+build: build-stamp
+
+build-stamp: $(QUILT_STAMPFN)
+	touch build-stamp
+
+clean: unpatch
+	for i in $(PACKAGES) $(METAPACKAGES) ; do \
+	  rm -f debian/$$i.{README.Debian,links,links.generated} ; \
+	  rm -f debian/$$i.{postinst,postrm,preinst,prerm} ; \
+	  rm -f debian/$$i.{maps,languages,formats} ; \
+	done
+	rm -f debian/texlive-base.cnf
+	# texlive contains some .orig files we need to keep otherwise
+	# the copy will fail due to the files occurring in the tlpdb
+	dh_clean -X.orig
+	rm -f configure-stamp
+	rm -f build-stamp
+	rm -f install-stamp
+
+install: install-stamp
+
+install-stamp: build-stamp
+	perl debian/tpm2deb-bin.pl --nosource $(PACKAGES) $(METAPACKAGES)
+	bash debian/fix-bin-dangling-links.sh
+	for i in $(PACKAGES) $(METAPACKAGES) ; do \
+	  if [ -d debian/$$i.root ] ; then bash debian/merge-dist-tree debian/$$i.root debian/$$i ; fi ; \
+	  bash debian/generate-license-file $$i ; \
+	  install -D --mode=644 debian/$$i.override debian/$$i/usr/share/lintian/overrides/$$i ; \
+	  install -D --mode=755 debian/bug.script debian/$$i/usr/share/bug/$$i/script ; \
+	  install -D --mode=644 debian/bug.control debian/$$i/usr/share/bug/$$i/control ; \
+	  bash debian/create-doc-links $$i texlive-doc > debian/$$i.links ; \
+	  if [ -r debian/$$i.links.dist ] ; then cat debian/$$i.links.dist >> debian/$$i.links ; fi ; \
+	  if [ -r debian/$$i.README ] ; then cat debian/$$i.README > debian/$$i.README.Debian ; fi ; \
+	  cat debian/README.Debian >> debian/$$i.README.Debian ; \
+	done
+	touch install-stamp
+
+binary-arch:
+
+binary-indep: build install
+	dh_testdir
+	dh_testroot
+	dh_install
+	dh_installmenu
+	dh_installdocs -A debian/README.source
+	dh_installdocs -p texlive-common README readme-txt.dir readme-html.dir debian/CHANGES.packaging
+	dh_installtex -Ntexlive-base -A --priority=10	\
+		$(patsubst %,-N%,$(METAPACKAGES))	\
+		--flavor=lsr:full
+	dh_installtex -ptexlive-base --priority=10	\
+		--flavor=format:build_all		\
+		--flavor=lsr:full			\
+		hyphenfile=debian/texlive-base.cnf=09
+	# /usr/bin/mf has been created by dh_installtex as symlink to mf-nowin
+	# but is also shipped by texlive-base-bin, remove it.
+	rm debian/texlive-base/usr/bin/mf
+	# furthermore we want to have etex and pdfetex as links in 
+	# texlive-base-bin and not in texlive-base, remove them here
+	# and add them via dh_link in texlive-base-binaries
+	rm debian/texlive-base/usr/bin/etex 
+	rm debian/texlive-base/usr/bin/pdfetex
+	dh_installchangelogs
+	bash debian/convert-info-files-to-unix.sh
+	bash debian/fix-manpages.sh
+	dh_installinfo
+	dh_installmime
+	dh_link
+	dh_compress -X.pdf
+	dh_fixperms
+	# we also have to fix the permissions of the link targets from /usr/bin
+	bash debian/fix-bin-symlink-targets-permissions.sh
+	dh_installdeb
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+
+.PHONY: build clean binary-indep binary-arch binary install
+
+# eof
--- texlive-base-2009.orig/debian/texlive-latex-base.links.dist
+++ texlive-base-2009/debian/texlive-latex-base.links.dist
@@ -0,0 +1 @@
+usr/share/texmf-texlive/scripts/oberdiek/pdfatfi.pl usr/bin/pdfatfi
--- texlive-base-2009.orig/debian/fix-bin-symlink-targets-permissions.sh
+++ texlive-base-2009/debian/fix-bin-symlink-targets-permissions.sh
@@ -0,0 +1,24 @@
+#!/bin/bash
+# $Id: fix-bin-symlink-targets-permissions.sh 4319 2009-10-26 04:01:14Z preining $
+#
+# TeX Live 2008 ships many "binaries" as symlinks to ../../texmf-*/...
+# we make sure that the link targets have executable bit set
+#
+# Norbert Preining, 2008
+# GPL
+
+set -e
+
+for i in `find debian/ -wholename 'debian/texlive-*/usr/bin/*' -type l` ; do
+	ln=`readlink $i`
+	case "$ln" in 
+	../share/texmf-texlive/*)
+	  # set the executable bit on the target
+	  dn=`dirname $i`
+	  target="$dn/$ln"
+	  chmod ugo+x "$target"
+	  ;;
+	esac
+done
+
+
--- texlive-base-2009.orig/debian/texlive-common.override
+++ texlive-base-2009/debian/texlive-common.override
@@ -0,0 +1,4 @@
+texlive-common: zero-byte-file-in-doc-directory
+texlive-common: extra-license-file
+texlive-common: script-not-executable
+texlive-common: wrong-name-for-upstream-changelog
--- texlive-base-2009.orig/debian/compat
+++ texlive-base-2009/debian/compat
@@ -0,0 +1 @@
+5
--- texlive-base-2009.orig/debian/control
+++ texlive-base-2009/debian/control
@@ -0,0 +1,427 @@
+Source: texlive-base
+Section: tex
+Priority: optional
+Maintainer: Debian TeX Maintainers <debian-tex-maint@lists.debian.org>
+Uploaders: Norbert Preining <preining@debian.org>, Frank Küster <frank@debian.org>
+Build-Depends: debhelper (>= 5), quilt
+Build-Depends-Indep: sharutils, tex-common (>= 2.00), eperl, findutils (>=4.2.0)
+Standards-Version: 3.8.4
+Homepage: http://www.tug.org/texlive/
+
+Package: texlive-base
+Architecture: all
+Depends: texlive-doc-base (>= 2009-1), mime-support, ${misc:Depends}, luatex (>= 0.46.0-5), texlive-common (>= 2009-1), texlive-binaries (>= 2009-1)
+Conflicts: texlive-base-bin (<< 2008), luatex (<< 0.46.0-5), dvipdfmx, texinfo (<< 4.8)
+Recommends: lmodern (>= 0.93.3-1)
+Provides: dvipdfmx
+Suggests: perl-tk, ghostscript, xpdf-reader | pdf-viewer, gv | postscript-viewer
+Replaces: texlive-xetex (<< 2008), dvipdfmx, luatex (<< 0.45.0), texlive-base-bin-doc
+Description: TeX Live: Essential programs and files
+ These files are regarded as basic for any TeX system, covering plain TeX
+   macros, Computer Modern fonts, and configuration for common drivers; no
+   LaTeX.
+ .
+ This package includes the following CTAN packages:
+  amsfonts -- TeX fonts from the American Mathematical Society.
+  apalike -- APA-like citations
+  bibtex -- Process bibliographies for LaTeX, etc.
+  cm -- Computer Modern fonts.
+  dvipdfm -- A DVI driver to produce PDF directly.
+  dvipdfmx -- An extended version of dvipdfm.
+  dvipdfmx-def --
+  dvips -- A DVI to PostScript driver.
+  enctex -- A TeX extension that translates input on its way into TeX.
+  etex -- An extended version of TeX, from the NTS project.
+  etex-pkg -- E-TeX support package.
+  gsftopk -- Convert "ghostscript fonts" to PK files.
+  hyph-utf8 -- Hyphenation patterns expressed in UTF-8.
+  hyphen-base --
+  ifluatex -- Provides the \ifluatex switch.
+  ifxetex -- Am I running under XeTeX?
+  kpathsea -- Path searching library for TeX-related files.
+  makeindex -- Process index output to produce typesettable code.
+  metafont -- A system for specifying fonts.
+  mflogo -- LaTeX support for MetaFont logo fonts.
+  mfware -- Supporting tools for use with MetaFont.
+  misc --
+  pdftex -- A TeX extension for direct creation of PDF.
+  plain -- The Plain TeX format.
+  tcdialog --
+  tetex -- scripts and files originally written for or included in teTeX
+  tex -- A sophisticated typesetting engine.
+  texconfig --
+  xdvi -- A DVI previewer for the X Window System.
+  texdoc -- Documentation access for TeX distributions.
+
+Package: texlive-generic-recommended
+Architecture: all
+Depends: ${misc:Depends}, texlive-base (>= 2009-1), texlive-common (>= 2009-1)
+Replaces: texlive-base (<< 2008)
+Description: TeX Live: Recommended generic packages
+ Recommended packages that work with multiple formats.
+ .
+ This package includes the following CTAN packages:
+  epsf -- Simple macros for EPS inclusion.
+  fontname -- Scheme for naming fonts in TeX.
+  genmisc --
+  multido -- A loop facility for Generic TeX.
+  tex-ps -- TeX to PostScript generic macros and add-ons.
+
+Package: texlive-latex-base
+Architecture: all
+Depends: ${misc:Depends}, texlive-base (>= 2009-1), texlive-common (>= 2009-1), texlive-binaries (>= 2009-1)
+Conflicts: ivritex (<= 1.1.1-5)
+Recommends: texlive-latex-base-doc
+Replaces: texlive-formats-extra, texlive-base-bin (<< 2008), texlive-metapost (<< 2008), texlive-latex-recommended (<< 2008)
+Description: TeX Live: Basic LaTeX packages
+ These packages are mandated by the core LaTeX team, or at least very
+   strongly recommended.
+ .
+ This package includes the following CTAN packages:
+  ae -- Virtual fonts for T1 encoded CMR-fonts.
+  amscls -- AMS document classes for LaTeX.
+  amsmath -- AMS mathematical facilities for LaTeX.
+  babel -- Multilingual support for Plain TeX or LaTeX.
+  babelbib -- Multilingual bibliographies.
+  carlisle -- David Carlisle's small packages.
+  colortbl -- Add colour to LaTeX tables.
+  fancyhdr -- Extensive control of page headers and footers in LaTeX2e.
+  geometry -- Flexible and complete interface to document dimensions.
+  graphics -- Standard LaTeX graphics.
+  hyperref -- Extensive support for hypertext in LaTeX.
+  latex -- the basic LaTeX package.
+  latex-bin -- LaTeX executables and man pages.
+  latex-fonts -- A collection of fonts used in LaTeX distributions.
+  latexconfig --
+  ltxmisc -- Miscellaneous LaTeX packages, etc.
+  mfnfss -- Packages to typeset oldgerman and pandora fonts in LaTeX.
+  natbib -- Flexible bibliography support.
+  oberdiek -- A bundle of packages submitted by Heiko Oberdiek.
+  pdftex-def -- Colour and Graphics support for PDFTeX.
+  pslatex -- Use PostScript fonts by default.
+  psnfss -- Font support for common PostScript fonts.
+  pspicture -- PostScript picture support.
+  supp-pdf -- native MetaPost graphics inclusion
+  tools -- The LaTeX standard tools bundle.
+
+Package: texlive-latex-recommended
+Architecture: all
+Depends: ${misc:Depends}, texlive-common (>= 2009-1), texlive-binaries (>= 2009-1), texlive-latex-base (>= 2009-1)
+Conflicts: texlive-base-bin (<< 2008)
+Recommends: texlive-latex-recommended-doc, prosper (>= 1.00.4+cvs.2006.10.22-1), latex-beamer (>= 3.06.dfsg.1-0.1), latex-xcolor (>= 2.09-1)
+Replaces: texlive-latex-recommended-doc (<< 2008), texlive-latex-extra (<< 2008)
+Description: TeX Live: LaTeX recommended packages
+ A collection of recommended add-on packages for LaTeX which have widespread
+   use
+ .
+ This package includes the following CTAN packages:
+  anysize -- A simple package to set up document margins.
+  booktabs -- Publication quality tables in LaTeX
+  caption -- Customising captions in floating environments.
+  cite -- Improved citation handling in LaTeX.
+  citeref -- Add reference-page-list to bibliography-items.
+  cmap -- Make PDF files searchable and copyable.
+  crop -- Support for cropmarks.
+  ctable -- Easily typeset centered tables.
+  ec -- Computer modern fonts in T1 and TS1 encodings.
+  eso-pic -- Add picture commands (or backgrounds) to every page.
+  euler -- Use AMS Euler fonts for math.
+  extsizes -- Extend the standard classes' size options.
+  fancybox -- Variants of \fbox and other games with boxes.
+  fancyref -- A LaTeX package for fancy cross-referencing.
+  fancyvrb -- Sophisticated verbatim text.
+  float -- Improved interface for floating objects.
+  fp -- Fixed point arithmetic.
+  index -- Extended index for LaTeX including multiple indexes.
+  jknapltx -- LaTeX support for Jörg Knappen's fonts.
+  koma-script -- A bundle of versatile classes and packages
+  listings -- Typeset source code listings using LaTeX.
+  mdwtools -- Miscellaneous tools by Mark Wooding.
+  memoir -- Typeset fiction, non-fiction and mathematical books.
+  metalogo -- Extended TeX logo macros.
+  microtype -- An interface to the micro-typographic features of pdfTeX.
+  ms -- Various LaTeX packages by Martin Schroder.
+  ntgclass -- "European" versions of standard classes.
+  pdfpages -- Include PDF documents in LaTeX.
+  powerdot -- A presentation class.
+  psfrag -- Replace strings in encapsulated PostScript figures.
+  rcs -- Use RCS (revision control system) tags in LaTeX documents.
+  rotating -- Rotation tools, including rotated full-page floats.
+  seminar -- Make overhead slides.
+  setspace -- Set space between lines.
+  subfig -- Figures broken into subfigures
+  thumbpdf -- Thumbnails for pdfTeX and dvips/ps2pdf.
+  xkeyval -- Extension of the keyval package.
+
+Package: texlive-fonts-recommended
+Section: fonts
+Architecture: all
+Depends: ${misc:Depends}, texlive-base (>= 2009-1), texlive-common (>= 2009-1)
+Recommends: texlive-fonts-recommended-doc, tipa (>= 2:1.2-2.1)
+Description: TeX Live: Recommended fonts
+ .
+ This package includes the following CTAN packages:
+  avantgar -- the URW Avantgar fonts and support for the Adobe font set.
+  bookman -- the URW Bookman fonts and support for the Adobe font set.
+  charter -- Charter fonts.
+  cmextra --
+  courier -- Adobe Type 1 "free" copies of Courier.
+  euro -- Provide Euro values for national currency amounts.
+  euro-ce -- Euro and CE sign font.
+  eurofont -- Provides a command that prints a euro symbol.
+  eurosans -- Interface to Adobe's sans-serif Euro font.
+  eurosym -- MetaFont and macros for Euro sign.
+  fpl -- SC and OsF fonts for URW Palladio L
+  helvetic -- the URW Helvetiva fonts and support for the Adobe font set.
+  marvosym -- Martin Vogel's Symbols (marvosym) font.
+  mathpazo -- Fonts to typeset mathematics to match Palatino.
+  ncntrsbk -- the URW New Century Schoolbook fonts and support for the Adobe
+   font set.
+  palatino --
+  pxfonts -- Palatino-like fonts in support of mathematics.
+  rsfs -- Ralph Smith's Formal Script font.
+  symbol --
+  times -- Select Adobe Times Roman (or equivalent) as default font.
+  timesnew -- the URW Times fonts and support for the Adobe font set.
+  txfonts -- Times-like fonts in support of mathematics.
+  utopia -- Adobe Utopia fonts.
+  wasy -- The wasy fonts (Waldi symbol fonts).
+  wasysym -- LaTeX support file to use the WASY2 fonts
+  zapfchan -- the URW Zapf Chancery font and support for the Adobe font.
+  zapfding -- the URW Zapf Dingbat font and support for the Adobe font.
+
+Package: texlive-pictures
+Architecture: all
+Depends: ${misc:Depends}, texlive-base (>= 2009-1), luatex, texlive-common (>= 2009-1), texlive-binaries (>= 2009-1)
+Recommends: texlive-pictures-doc, pgf (>= 1.01.dfsg.1-1)
+Description: TeX Live: Graphics packages and programs
+ .
+ This package includes the following CTAN packages:
+  asyfig -- Commands for using Asymptote figures.
+  autoarea -- Automatic computation of bounding boxes with PiCTeX.
+  bardiag -- LateX package for drawing bar diagrams.
+  cachepic -- Convert document fragments into graphics.
+  circuitikz -- Draw electrical networks with TikZ.
+  curve -- A class for making curriculum vitae.
+  curve2e -- Extensions for package pict2e.
+  curves -- Curves for LaTeX picture environment
+  dcpic -- Commutative diagrams in a LaTeX and TeX documents.
+  diagmac2 -- Diagram macros, using pict2e.
+  doc-pictex -- A summary list of PicTeX documentation.
+  dottex -- Use dot code in LaTeX.
+  dot2texi -- Create graphs within LaTeX using the dot2tex tool.
+  dratex -- General drawing macros.
+  eepic -- Extensions to epic and the LaTeX drawing tools.
+  epspdf -- Converter for PostScript, EPS and PDF.
+  epspdfconversion -- On-the-fly conversion of EPS to PDF.
+  fig4latex -- Management of figures for large LaTeX documents.
+  gnuplottex -- Embed Gnuplot commands in LaTeX documents.
+  miniplot -- A package for easy figure arrangement.
+  pb-diagram -- A commutative diagram package using LAMSTeX or Xy-pic fonts.
+  petri-nets -- A set TeX/LaTeX packages for drawing Petri nets.
+  pgf-soroban -- Create images of the soroban using TikZ/PGF.
+  pgfopts -- LaTeX package options with pgfkeys.
+  pgfplots -- Create normal/logarithmic plots in LaTeX.
+  picinpar -- Insert pictures into paragraphs.
+  pict2e -- New implementation of picture commands.
+  pictex -- Picture drawing macros for TeX and LaTeX.
+  pictex2 -- Adds relative coordinates and improves the \plot command.
+  pinlabel -- A TeX labelling package.
+  pmgraph -- "Poor man's" graphics.
+  randbild -- Marginal pictures.
+  schemabloc -- Draw block diagrams, using Tikz.
+  swimgraf -- Graphical/textual representations of swimming performances
+  texdraw -- Graphical macros, using embedded PostScript.
+  tikz-inet -- Draw interaction nets with TikZ
+  tikz-timing -- Easy generation of timing diagrams as tikz pictures.
+  tkz-doc -- Documentation macros for the TKZ series of packages.
+  tkz-linknodes -- Link nodes in mathematical environments.
+  tkz-tab -- Tables of signs and variations using PGF/TikZ.
+  tufte-latex -- Document classes inspired by the work of Edward Tufte.
+  xypic -- Flexible diagramming macros.
+
+Package: texlive-luatex
+Architecture: all
+Depends: ${misc:Depends}, luatex (>= 0.46.0-5), texlive-base (>= 2009-1), texlive-common (>= 2009-1)
+Description: TeX Live: LuaTeX packages
+ Packages for LuaTeX, a Unicode-aware extension of pdfTeX, using Lua  as an
+   embedded scripting and extension language. http://luatex.org/
+ .
+ This package includes the following CTAN packages:
+  luainputenc -- Replacing inputenc for use in LuaTeX.
+  luamplib -- Use LuaTeX's built-in MetaPost interpreter.
+  luaotfload -- ConTeXt OTF loading system for Plain and LaTeX.
+  luatextra -- Additional macros for Plain TeX and LaTeX in LuaTeX.
+
+Package: texlive-metapost
+Architecture: all
+Depends: ${misc:Depends}, texlive-base (>= 2009-1), texlive-common (>= 2009-1), texlive-binaries (>= 2009-1)
+Recommends: texlive-metapost-doc, feynmf  
+Description: TeX Live: MetaPost (and Metafont) drawing packages
+ .
+ This package includes the following CTAN packages:
+  automata -- Finite state machines, graphs and trees in MetaPost.
+  bbcard -- Bullshit bingo, calendar and baseball-score cards.
+  blockdraw_mp -- Block diagrams and bond graphs, with MetaPost.
+  bpolynomial -- Drawing polynomial functions of up to order 3.
+  cmarrows -- MetaPost arrows and braces in the Computer Modern style.
+  drv -- Derivation trees with MetaPost.
+  dviincl -- Include a DVI page into MetaPost output.
+  emp -- "Encapsulate" MetaPost figures in a document.
+  epsincl -- Include EPS in MetaPost figures.
+  expressg -- Diagrams consisting of boxes, lines, and annotations.
+  exteps -- Include EPS figures in MetaPost.
+  featpost -- MetaPost macros for 3D.
+  garrigues -- MetaPost macros for the reproduction of Garrigues' Easter
+   nomogram.
+  hatching -- MetaPost macros for hatching interior of closed paths.
+  latexmp -- Interface for LaTeX-based typesetting in MetaPost
+  metago -- MetaPost output of Go positions.
+  metaobj -- MetaPost package providing high-level objects.
+  metaplot -- Plot-manipulation macros for use in Metapost.
+  metapost -- A development of MetaFont for creating graphics.
+  metauml -- MetaPost library for typesetting UML diagrams.
+  mfpic -- Draw MetaFont/Post pictures from (La)TeX commands.
+  mfpic4ode -- Macros to draw direction fields and solutions of ODEs.
+  mp3d -- 3D animations.
+  mpattern -- Patterns in MetaPost.
+  piechartmp -- Draw pie-charts using MetaPost.
+  roex --
+  slideshow -- Generate slideshow with MetaPost.
+  splines -- MetaPost macros for drawing cubic spline interpolants.
+  suanpan -- MetaPost macros for drawing Chinese and Japanese abaci.
+  textpath -- Setting text along a path with MetaPost.
+
+Package: texlive-omega
+Architecture: all
+Depends: ${misc:Depends}, texlive-base (>= 2009-1), texlive-common (>= 2009-1), texlive-binaries (>= 2009-1), texlive-latex-base (>= 2009-1)
+Replaces: texlive-fonts-extra-doc (<< 2008)
+Description: TeX Live: Omega
+ Omega, a 16-bit extended TeX by John Plaice and Yannis Haralambous
+ .
+ This package includes the following CTAN packages:
+  antomega -- Alternative language support for Omega/Lambda.
+  lambda -- LaTeX format based on the Omega engine.
+  mxd -- Support for Mongolian "horizontal" (Xewtee Dorwoljin) script.
+  mxedruli -- A pair of Georgian fonts.
+  omega -- A wide-character-set extension of TeX.
+  aleph -- Extended TeX.
+  omegaware --
+
+Package: texlive-xetex
+Architecture: all
+Depends: ${misc:Depends}, texlive-base (>= 2009-1), texlive-common (>= 2009-1), texlive-binaries (>= 2009-1), texlive-latex-base (>= 2009-1)
+Recommends: lmodern
+Description: TeX Live: XeTeX packages
+ Packages for XeTeX, the Unicode/OpenType-enabled TeX by Jonathan Kew,
+   http://scripts.sil.org/xetex.
+ .
+ This package includes the following CTAN packages:
+  arabxetex -- An ArabTeX-like interface for XeLaTeX.
+  euenc -- Unicode font encoding definitions for XeTeX.
+  bidi -- Support for bidirectional typesetting with XeLaTeX.
+  fontspec -- An automatic interface to feature-rich fonts in XeLaTeX.
+  fontwrap -- Bind fonts to specific unicode blocks.
+  harvardkyoto -- XeTeX input map for Unicode Devanagari.
+  mathspec -- Specify arbitrary fonts for mathematics in XeTeX.
+  philokalia -- A font to typeset the Philokalia Books.
+  polyglossia -- Modern multilingual typesetting with XeLaTeX.
+  xecjk -- Support for CJK documents in XeLaTeX.
+  xecolour -- Support for colour in XeLaTeX.
+  xecyr -- Using Cyrillic languages in XeTeX.
+  xepersian -- Persian for LaTeX over XeTeX.
+  xetex --
+  xetex-def -- Colour and graphics support for XeTeX.
+  xetex-pstricks -- Running PStricks under XeTeX.
+  xetexconfig --
+  xetexfontinfo -- Report font features in XeTeX.
+  xltxtra -- "Extras" for LaTeX users of XeTeX.
+  xunicode -- Generate Unicode characters from accented glyphs.
+
+Package: texlive
+Architecture: all
+Depends: ${misc:Depends}, texlive-fonts-recommended (>= 2009-1), texlive-latex-recommended (>= 2009-1), texlive-latex-base (>= 2009-1)
+Suggests: texlive-doc-en
+Description: TeX Live: A decent selection of the TeX Live packages
+ The TeX Live software distribution offers a complete TeX system.
+ It encompasses programs for typesetting, previewing and printing
+ of TeX documents in many different languages, and a large collection
+ of TeX macros and font libraries.
+ .
+ This metapackage provides a decent selection of the TeX Live packages
+ which should suffice for the most common tasks.
+ .
+ The distribution also includes extensive general documentation about
+ TeX, as well as the documentation accompanying the included software
+ packages.
+
+Package: texlive-full
+Architecture: all
+Depends: texlive-humanities (>= 2009-1), texlive-lang-swedish (>= 2009-1), texlive-humanities-doc (>= 2009-1), texlive-doc-es (>= 2009-1), texlive-doc-en (>= 2009-1), texlive-fonts-extra (>= 2009-1), texlive-lang-french (>= 2009-1), texlive-lang-tibetan (>= 2009-1), texlive-doc-ja (>= 2009-1), texlive-doc-cs+sk (>= 2009-1), texlive-lang-czechslovak (>= 2009-1), texlive-games (>= 2009-1), texlive-lang-ukenglish (>= 2009-1), texlive-doc-th (>= 2009-1), texlive-base (>= 2009-1), texlive-fonts-recommended-doc (>= 2009-1), texlive-doc-fi (>= 2009-1), texlive-pstricks-doc (>= 2009-1), texlive-math-extra (>= 2009-1), texlive-science-doc (>= 2009-1), texlive-generic-extra (>= 2009-1), texlive-latex3 (>= 2009-1), texlive-lang-hebrew (>= 2009-1), texlive-doc-bg (>= 2009-1), texlive-formats-extra (>= 2009-1), texlive-lang-finnish (>= 2009-1), psutils, texlive-plain-extra (>= 2009-1), texlive-doc-de (>= 2009-1), texlive-pictures (>= 2009-1), texlive-lang-polish (>= 2009-1), latex-xcolor (>= 2.09-1), texlive-doc-pt (>= 2009-1), texlive-doc-mn (>= 2009-1), texlive-latex-extra-doc (>= 2009-1), texlive-pstricks (>= 2009-1), texlive-fonts-recommended (>= 2009-1), texlive-doc-base (>= 2009-1), texlive-latex-recommended-doc (>= 2009-1), texlive-doc-it (>= 2009-1), texlive-lang-cyrillic (>= 2009-1), texlive-metapost (>= 2009-1), texlive-lang-vietnamese (>= 2009-1), texlive-lang-croatian (>= 2009-1), texlive-generic-recommended (>= 2009-1), t1utils, texlive-lang-other (>= 2009-1), texlive-metapost-doc (>= 2009-1), texlive-lang-arabic (>= 2009-1), texlive-lang-latvian (>= 2009-1), texlive-doc-si (>= 2009-1), texlive-lang-african (>= 2009-1), texlive-lang-german (>= 2009-1), texlive-latex-base-doc (>= 2009-1), feynmf, texlive-latex-extra (>= 2009-1), texlive-doc-tr (>= 2009-1), pgf (>= 1.01.dfsg.1-1), texlive-lang-greek (>= 2009-1), latexmk, texlive-lang-spanish (>= 2009-1), texlive-font-utils (>= 2009-1), ${misc:Depends}, fragmaster, texlive-binaries (>= 2009-1), texlive-doc-zh (>= 2009-1), texlive-doc-ru (>= 2009-1), cm-super (>= 0.3.3-3), texlive-doc-uk (>= 2009-1), texlive-lang-lithuanian (>= 2009-1), texlive-lang-armenian (>= 2009-1), texlive-doc-fr (>= 2009-1), texlive-lang-norwegian (>= 2009-1), texlive-music (>= 2009-1), texlive-lang-portuguese (>= 2009-1), texlive-doc-pl (>= 2009-1), texlive-publishers-doc (>= 2009-1), texlive-doc-nl (>= 2009-1), texlive-doc-vi (>= 2009-1), texlive-lang-indic (>= 2009-1), texlive-science (>= 2009-1), texlive-xetex (>= 2009-1), info (>= 4.8), texlive-latex-base (>= 2009-1), texlive-publishers (>= 2009-1), texlive-bibtex-extra (>= 2009-1), texlive-lang-latin (>= 2009-1), texlive-luatex (>= 2009-1), texlive-fonts-extra-doc (>= 2009-1), texlive-lang-danish (>= 2009-1), texlive-pictures-doc (>= 2009-1), context, latex-beamer (>= 3.06.dfsg.1-0.1), texlive-lang-italian (>= 2009-1), texlive-lang-dutch (>= 2009-1), texlive-common (>= 2009-1), texlive-latex-recommended (>= 2009-1), texlive-doc-ko (>= 2009-1), texlive-lang-hungarian (>= 2009-1), texlive-extra-utils (>= 2009-1), texlive-omega (>= 2009-1), texinfo (>= 4.8), texlive-lang-mongolian (>= 2009-1)
+Recommends: tex4ht (>= 20051214-1), latex-cjk-all (>= 4.6.0+cvs20060714-2), lcdf-typetools, dvipng
+Suggests: passivetex (>> 1.25-2), jadetex (>= 3.13-7.1), xmltex (>> 1.9-11.1)
+Description: TeX Live: metapackage pulling in all components of TeX Live
+ The TeX Live software distribution offers a complete TeX system.
+ It encompasses programs for typesetting, previewing and printing
+ of TeX documents in many different languages, and a large collection
+ of TeX macros and font libraries.
+ .
+ The distribution also includes extensive general documentation about
+ TeX, as well as the documentation accompanying the included software
+ packages.
+
+Package: texlive-common
+Architecture: all
+Depends: ${misc:Depends}, tex-common (>= 2.0)
+Conflicts: texlive-base (<< 2009-1), texlive-doc-es (<< 2009-1), texlive-lang-latvian (<< 2009-1), texlive-bibtex-extra (<< 2009-1), texlive-doc-uk (<< 2009-1), texlive-doc-pl (<< 2009-1), texlive-doc-ko (<< 2009-1), texlive-doc-fr (<< 2009-1), texlive-publishers-doc (<< 2009-1), texlive-lang-spanish (<< 2009-1), texlive-metapost (<< 2009-1), texlive-lang-other (<< 2009-1), texlive-metapost-doc (<< 2009-1), texlive-lang-croatian (<< 2009-1), texlive-lang-czechslovak (<< 2009-1), texlive-humanities-doc (<< 2009-1), texlive-games (<< 2009-1), texlive-lang-african (<< 2009-1), texlive-fonts-recommended (<< 2009-1), texlive-pictures-doc (<< 2009-1), texlive-fonts-extra (<< 2009-1), texlive-lang-dutch (<< 2009-1), texlive-doc-zh (<< 2009-1), texlive-latex-recommended-doc (<< 2009-1), texlive-binaries (<< 2009-1), texlive-common (<< 2009-1), texlive-latex3 (<< 2009-1), texlive-science (<< 2009-1), texlive-lang-polish (<< 2009-1), texlive (<< 2009-1), texlive-latex-base (<< 2009-1), texlive-luatex (<< 2009-1), texlive-pictures (<< 2009-1), texlive-base-bin (<< 2008), texlive-latex-recommended (<< 2009-1), texlive-humanities (<< 2009-1), texlive-doc-bg (<< 2009-1), texlive-generic-extra (<< 2009-1), texlive-lang-armenian (<< 2009-1), texlive-fonts-recommended-doc (<< 2009-1), texlive-doc-it (<< 2009-1), texlive-doc-mn (<< 2009-1), texlive-lang-indic (<< 2009-1), texlive-pstricks-doc (<< 2009-1), texlive-doc-ja (<< 2009-1), texlive-math-extra (<< 2009-1), texlive-lang-cyrillic (<< 2009-1), texlive-lang-finnish (<< 2009-1), texlive-doc-nl (<< 2009-1), texlive-formats-extra (<< 2009-1), texlive-omega (<< 2009-1), texlive-lang-italian (<< 2009-1), texlive-lang-latin (<< 2009-1), texlive-lang-hebrew (<< 2009-1), texlive-lang-hungarian (<< 2009-1), texlive-lang-lithuanian (<< 2009-1), texlive-lang-all (<< 2009-1), texlive-lang-arabic (<< 2009-1), texlive-doc-en (<< 2009-1), texlive-doc-tr (<< 2009-1), texlive-doc-de (<< 2009-1), texlive-latex-extra (<< 2009-1), texlive-lang-swedish (<< 2009-1), texlive-doc-pt (<< 2009-1), texlive-lang-vietnamese (<< 2009-1), texlive-doc-fi (<< 2009-1), texlive-doc-base (<< 2009-1), texlive-doc-ru (<< 2009-1), texlive-lang-tibetan (<< 2009-1), texlive-lang-french (<< 2009-1), texlive-lang-ukenglish (<< 2009-1), texlive-lang-german (<< 2009-1), texlive-lang-norwegian (<< 2009-1), texlive-generic-recommended (<< 2009-1), texlive-pstricks (<< 2009-1), texlive-extra-utils (<< 2009-1), texlive-doc-th (<< 2009-1), texlive-lang-greek (<< 2009-1), texlive-doc-cs+sk (<< 2009-1), texlive-fonts-extra-doc (<< 2009-1), texlive-lang-mongolian (<< 2009-1), texlive-latex-base-doc (<< 2009-1), texlive-latex-extra-doc (<< 2009-1), texlive-music (<< 2009-1), texlive-plain-extra (<< 2009-1), texlive-full (<< 2009-1), texlive-science-doc (<< 2009-1), texlive-lang-danish (<< 2009-1), texlive-doc-vi (<< 2009-1), texlive-xetex (<< 2009-1), texlive-font-utils (<< 2009-1), texlive-publishers (<< 2009-1), texlive-lang-portuguese (<< 2009-1), texlive-doc-si (<< 2009-1)
+Description: TeX Live: Base component
+ The TeX Live software distribution offers a complete TeX system.
+ It encompasses programs for typesetting, previewing and printing
+ of TeX documents in many different languages, and a large collection
+ of TeX macros and font libraries.
+ .
+ The distribution also includes extensive general documentation about
+ TeX, as well as the documentation accompanying the included software
+ packages.
+ .
+ This package provides a common base for all TeX Live packages.
+
+Package: texlive-fonts-recommended-doc
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}, texlive-common (>= 2009-1)
+Replaces: texlive-fonts-recommended (<= 2007-12)
+Description: TeX Live: Documentation files for texlive-fonts-recommended
+ This package provides the documentation for texlive-fonts-recommended
+
+Package: texlive-latex-base-doc
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}, texlive-common (>= 2009-1)
+Replaces: texlive-latex-base (<= 2007-12), texlive-latex-recommended-doc (<< 2008)
+Description: TeX Live: Documentation files for texlive-latex-base
+ This package provides the documentation for texlive-latex-base
+
+Package: texlive-latex-recommended-doc
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}, texlive-common (>= 2009-1)
+Replaces: texlive-latex-recommended (<= 2007-12), texlive-latex-extra-doc (<< 2008)
+Description: TeX Live: Documentation files for texlive-latex-recommended
+ This package provides the documentation for texlive-latex-recommended
+
+Package: texlive-metapost-doc
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}, texlive-common (>= 2009-1)
+Replaces: texlive-metapost (<= 2007-14)
+Description: TeX Live: Documentation files for texlive-metapost
+ This package provides the documentation for texlive-metapost
+
+Package: texlive-pictures-doc
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}, texlive-common (>= 2009-1)
+Replaces: texlive-pictures (<= 2007-12)
+Description: TeX Live: Documentation files for texlive-pictures
+ This package provides the documentation for texlive-pictures
--- texlive-base-2009.orig/debian/texlive-fonts-recommended-doc.override
+++ texlive-base-2009/debian/texlive-fonts-recommended-doc.override
@@ -0,0 +1,4 @@
+texlive-fonts-recommended-doc: zero-byte-file-in-doc-directory
+texlive-fonts-recommended-doc: extra-license-file
+texlive-fonts-recommended-doc: script-not-executable
+texlive-fonts-recommended-doc: wrong-name-for-upstream-changelog
--- texlive-base-2009.orig/debian/texlive-latex-base.postinst.pre
+++ texlive-base-2009/debian/texlive-latex-base.postinst.pre
@@ -0,0 +1,16 @@
+# texlive-latex-base postinst.pre begin
+
+# Cleanup after Bug #420390 for sid users
+# This is already done in the preinst, but only for upgrades. We redo it 
+# in the postinst, too in case that we are dealing with a install from
+# rc or purged state.
+case  "$1" in
+  configure)
+    resurrect_conffile_sid /etc/texmf/tex/latex/config/color.cfg texlive-base
+    resurrect_conffile_sid /etc/texmf/tex/latex/config/graphics.cfg texlive-base
+    ;;
+  *)
+    ;;
+esac
+
+# texlive-latex-base postinst.pre end
--- texlive-base-2009.orig/debian/texlive-full.override
+++ texlive-base-2009/debian/texlive-full.override
@@ -0,0 +1,4 @@
+texlive-full: zero-byte-file-in-doc-directory
+texlive-full: extra-license-file
+texlive-full: script-not-executable
+texlive-full: wrong-name-for-upstream-changelog
--- texlive-base-2009.orig/debian/texlive-latex-recommended.override
+++ texlive-base-2009/debian/texlive-latex-recommended.override
@@ -0,0 +1,4 @@
+texlive-latex-recommended: zero-byte-file-in-doc-directory
+texlive-latex-recommended: extra-license-file
+texlive-latex-recommended: script-not-executable
+texlive-latex-recommended: wrong-name-for-upstream-changelog
--- texlive-base-2009.orig/debian/convert-info-files-to-unix.sh
+++ texlive-base-2009/debian/convert-info-files-to-unix.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+#
+# convert-info-files-to-unix.sh
+#
+# info files in texlive are with DOS lineendings. Fix this here
+#
+# $Id: convert-info-files-to-unix.sh 2583 2007-03-15 20:12:56Z frank $
+# Norbert Preining, 2005
+# GPL
+set -e
+shopt -s nullglob
+
+for f in debian/*.info ; do
+    for i in `cat $f` ; do
+        sed -e 's/\r$//' $i > $i.new
+	mv $i.new $i
+    done
+done
+
--- texlive-base-2009.orig/debian/texlive-generic-recommended.override
+++ texlive-base-2009/debian/texlive-generic-recommended.override
@@ -0,0 +1,4 @@
+texlive-generic-recommended: zero-byte-file-in-doc-directory
+texlive-generic-recommended: extra-license-file
+texlive-generic-recommended: script-not-executable
+texlive-generic-recommended: wrong-name-for-upstream-changelog
--- texlive-base-2009.orig/debian/README.Debian
+++ texlive-base-2009/debian/README.Debian
@@ -0,0 +1,47 @@
+README TeX live for Debian
+==========================
+
+First of all, if you need help with TeX on Debian, ie with respect to 
+file placement, configuration options, etc, please see the document
+	TeX-on-Debian
+in the tex-common package, which can be found in 
+	/usr/share/doc/tex-common/
+in the pdf, txt, and html format.
+
+This file contains additional information specific to TeX live.
+
+
+Differences to TeX live (upstream)
+----------------------------------
+
+Several parts of TeX Live have not been included into the Debian packages,
+mostly due to licensing issues (e.g., XyMTeX, which is not redistributable,
+or ppower4 which needs a jar file where sources are not provided).
+
+Some collection are not packaged, as the packages they contain are already
+in Debian, or should be packaged separately. Furthermore, some TeX packages
+are excluded from the debian packages out of the same reasons:
+already in Debian (incomplete list):
+	cm-super, texinfo, preview, lcdf-typetools, passivetex, tex4ht,
+	jadetex, xmltex, tipa, t1utils, prosper, tpslifonts
+	CJK, arphic, c90enc, cns, garuda, norasi, uhc, wadalab,
+	beamer, pgf, xcolor, lacheck, dvipdfmx, lm, dvi2tty, sanskrit
+	musixps, musixtex, musixflx, musixlyr, texpower, tpslifonts,
+	psutils, t1utils, dvidvi, xmltex, jadetex, tex4ht
+collections gone because the containing TeX packages are in Debian
+	collection-langarab (would have been texlive-lang-arab)
+		replaced by arabtex
+	collection-htmlxml (would have been texlive-htmlxml)
+		replaced by xmltex, jadetex, passivetex, tex4ht
+	collection-langcjk (would have been texlive-lang-cjk)
+		replaced by latex-cjk-all
+
+If a package is removed from a collection/Debian package due to the
+existence of an equivalent package in Debian, the collection/Debian package
+depends on the other package, so no functionality is lost.
+
+For disappearing whole collections this is not possible, but the metapackage
+`texlive-full' depends on all the necessary items.
+
+
+$Id: README.Debian 4071 2009-07-08 19:48:08Z preining $
--- texlive-base-2009.orig/debian/fix-manpages.sh
+++ texlive-base-2009/debian/fix-manpages.sh
@@ -0,0 +1,80 @@
+#!/bin/bash
+# $Id: fix-manpages.sh 4267 2009-10-08 01:34:17Z preining $
+# fix-manpages.sh
+#
+# Several manpages in TeX live have smaller or bigger flaws like:
+# - international characters from latin1 are not written in their
+#   encoded form (ä instead of \[:a])
+# - problems in the first line of the manpage defining wrong section
+#   or syntactical wrong files
+# We fix all these errors on the installed man pages, otherwise lintian
+# complains.
+#
+# Norbert Preining, 2005
+# GPL
+
+set -e
+
+tmpfile=`mktemp`
+
+for i in `find debian/ -wholename 'debian/texlive-*/usr/share/man/man?/*' -type f` ; do
+	bn=`basename $i`
+	case "$bn" in 
+	ttf2pt1.1)
+		# fix ttf2pt1.1 first line error
+		(echo '.TH "ttf2pt1" "1" "Nov 2005" "TeX live" "TeX live"' ; tail --lines=+2 $i ) > $tmpfile
+		cat $tmpfile > $i
+		;;
+	vlna.1)
+		# fix the NAZEV to NAME in vlna.1
+		cat $i | sed -e 's/^\.SH NAZEV/.SH NAME/' > $tmpfile
+		cat $tmpfile > $i
+		;;
+	makeindex.1)
+		# fix section
+		cat $i | sed -e 's/^\.TH MAKEINDEX 1L /.TH MAKEINDEX 1 /' > $tmpfile
+		cat $tmpfile > $i
+		;;
+	detex.1)
+		# fix section
+		cat $i | sed -e 's/^\.TH DETEX 1L /.TH DETEX 1 /' > $tmpfile
+		cat $tmpfile > $i
+		;;
+	dvi2tty.1)
+		# fix section
+		cat $i | sed -e 's/^\.TH DVI2TTY Local /.TH DVI2TTY 1 /' > $tmpfile
+		cat $tmpfile > $i
+		;;
+	dvidvi.1)
+		# fix section
+		cat $i | sed -e 's/^\.TH DVIDVI L /.TH DVIDVI 1 /' > $tmpfile
+		cat $tmpfile > $i
+		;;
+	fmtutil.1)
+		# fix section
+		cat $i | sed -e 's/^\.TH "fmtutil" "8"/.TH "fmtutil" "1"/' > $tmpfile
+		cat $tmpfile > $i
+		;;
+	texlinks.1)
+		# fix section
+		cat $i | sed -e 's/^\.TH "texlinks" "8"/.TH "texlinks" "1"/' > $tmpfile
+		cat $tmpfile > $i
+		;;
+	tie.1)
+		# fix section
+		cat $i | sed -e 's/^\.TH TIE 1L /.TH TIE 1 /' > $tmpfile
+		cat $tmpfile > $i
+		;;
+	esac
+	cat $i | sed 	-e "s/\ó/\\['o]/g" 		\
+			-e "s/\é/\\['e]/g"		\
+			-e 's/\ü/\\[:u]/g'		\
+			-e 's/\ä/\\[:a]/g'		\
+			-e 's/\ö/\\[:o]/g'		\
+			-e 's/\©/\\[co]/g'		\
+				> $tmpfile
+	cat $tmpfile > $i
+done
+
+rm $tmpfile
+
--- texlive-base-2009.orig/debian/common.functions.postinst
+++ texlive-base-2009/debian/common.functions.postinst
@@ -0,0 +1,63 @@
+# common.functions.postinst start
+# $Id: common.functions.postinst 3031 2007-08-13 05:20:40Z preining $
+handle_config_file_postinst() 
+{
+    # this function handles two things: It moves conffiles to their
+    # new place if they had been changed, and it ignores the possible
+    # removal of the conffile because of bug #420390, fixing upgrades
+    # from etch.
+    #
+    # Note that the consequences of this bug for users of sid are
+    # dealt with separately, in the function resurrect_conffile_sid()
+    # which is only called for the critical conffiles.
+    cfgfile="$1"
+    action="$2"
+    version="$3"
+    case "$action" in
+      configure) # not reconfigure
+	if dpkg --compare-versions "$version" ge 2007; then
+	  return 0
+	fi
+	;;
+      *)
+	return 0
+	;;
+    esac
+    if [ -f "$cfgfile.preinst-deleted" ]; then
+      echo "It looks like $cfgfile has been removed."
+      echo "In most cases this is a consequence of bug #420390."
+      echo "We are reinstatiating this config file."
+      echo "If you *really* want this to be removed, do it again,"
+      echo "but beware of the consequences."
+      echo ""
+      #mv "$cfgfile" "$cfgfile.dpkg-new"
+      rm "$cfgfile.preinst-deleted"
+    fi
+    if [ -f "$cfgfile.preinst-copy" ]; then
+      echo "Preserving user changes to $cfgfile"
+      # this only works as intended as long as the shipped version
+      # does not change!
+      mv -f "$cfgfile" "$cfgfile.dpkg-new"
+      mv -f "$cfgfile.preinst-copy" "$cfgfile"
+    fi
+}
+
+resurrect_conffile_sid(){
+  cfgfile="$1"
+  package="$2"
+  template_source="/usr/share/$package"
+  basefile=$(basename $cfgfile)
+  dirname=$(dirname $cfgfile)
+
+  if ! [ -f "$cfgfile" ]; then
+    mkdir -p $dirname
+    echo "Reinstalling deleted mandatory conffile $basefile" >&2
+    cp $template_source/$basefile $cfgfile
+  fi
+}
+
+# common.functions.postinst end
+# Local Variables:
+# mode: shell-script
+# End:
+# vim:set expandtab: #
--- texlive-base-2009.orig/debian/bug.control
+++ texlive-base-2009/debian/bug.control
@@ -0,0 +1,2 @@
+report-with: tex-common
+package-status: tex-common texlive-binaries
--- texlive-base-2009.orig/debian/CHANGES.packaging
+++ texlive-base-2009/debian/CHANGES.packaging
@@ -0,0 +1,2380 @@
+#
+# ChangeLog for tpm2deb.pl and relatives
+#
+# $Id: CHANGES.packaging 4715 2010-09-25 00:05:19Z preining $
+#
+
+release texlive-extra 2009-10 unstable
+release texlive-base 2009-11 unstable
+
+2010-09-25
+  * [base] remove texlive-base conflict texlive-base-bin-doc following
+    the wish of release managers
+
+2010-08-11
+
+  * [base] make texlive-base conflict with texlive-base-bin-doc to get
+    it removed (Closes: #589205)
+  * [base] avoid unneeded 10texlive-base.cnfpre-edit files in /etc/texmf/fmt.d,
+    thanks Jörg-Volker Peetz (Closes: #584950)
+
+2010-08-10
+
+  * [bin] revert the set -e change since we are in freeze, change the
+    texconfig patch to only remove the text and depend on debianized fmtutil.
+
+2010-08-06
+
+  * [bin] adapt the texconfig formats and texconfig hyphen warning text to
+    Debian reality (Closes: #588731)
+
+2010-08-05
+
+  * [bin] add perl, texlive-common to the list of dependencies
+  * [bin] set -e in updmap, mktexlsr, fmtutil (Closes: #586549)
+
+2010-07-01
+
+  * [extra] add the forgotten epoch for musixtex dependency (Closes: #587746)
+
+release texlive-extra 2009-9 unstable
+
+2010-06-29
+
+  * [extra] make texlive-music *not* depend on musixlyr and musixtex-slurps
+    anymore, but tighten dep on new musixtex package that provides this
+    functionality (Closes: #587718)
+
+2010-06-24
+
+  * [all] change bug.script to mention running the bug example with 
+    -recorder and send the .fls file
+
+release texlive-extra 2009-8 unstable
+
+2010-06-02
+
+  * [extra] add ghostscript to the list of recommends of
+    texlive-font-utils (Closes: #584329)
+
+2010-05-25
+
+  * [bin] add ed to the list of dependencies (LP: #577305)
+    (Closes: #580732)
+
+release texlive-base 2009-10 unstable
+
+2010-05-25
+  * [base] add license statements for all the AMS macros (Closes: #477060)
+  * [all] add debian/source/format wiht 1.0 content
+
+2010-05-20
+  
+  * [base] Make sure that the texdoc.cnf link is actually created
+    (Closes: #582291)
+
+release texlive-base 2009-9 unstable
+release texlive-bin 2009-6 unstable
+
+2010-04-30
+
+  * [bin] Fix CVE-2010-1440: this overrides the incomplete fix for 
+    CVE-2010-0793.
+
+2010-04-29
+
+  * [extra] include revtex4 backward compatibility (Closes: #561836)
+
+2010-04-27
+  * [base] texlive-xetex recommends lmodern (Closes: #576599)
+  * [bin] bump build-dep on libpoppler to 0.12.4 (against my will!!)
+    (Closes: #577684)
+
+2010-04-26
+  * [base] reinstantiate the code for the lost pdftexconfig.tex in
+    texlive-base (Closes: #579000)
+  * [all] bump standards version to 3.8.4
+  * [base] add dependency texlive-pictures -> luatex to make lintian happy
+
+2010-04-24
+  * [bin] incorporate cve fixes from security teams nmu
+
+2010-03-30
+  * [bin] add a patch upstream-web2c-tmpfilewithpid that fixes overwriting
+    files with -recorder in parallel builds (Closes: #575731).
+
+2010-03-29
+  * [bin] include (lost) man pages for texconfig-dialog, devnag, bibtex8,
+    omfonts, otangle, pdfopen (no bug, but see #574796)
+  * [extra] install man page for pdfcrop (Closes: #574796)
+  * [extra] update epstopdf to latest version (--output fixes) 
+    (Closes: #573540)
+  * [base] move texdoc.cnf into /etc/texmf and create a link from the
+    original location, making it a conffile (Closes: #569737)
+    That makes an added type of the mapping directive necessary: 
+    copy-move-config.
+
+2010-03-11
+  * [base] update patch upstream-pdftex.def-fixes to include latest addition 
+    to pdftex.def, fixing FTBFS when defining \undefined macro
+    (LP: #534293)
+
+release texlive-base 2009-8 unstable
+
+2010-03-17
+  * [base] add patch epspdf-call-ruby-explicitely that make epspdf and epspdftk
+    call the ruby implementations explicitely with ruby as interpreter
+    to allow execution (Closes: #565646)
+  * [base] add texlive-base_cid-x.map_add-jis.patch from YOSHINO Yoshihito
+    that adds jis maps to cid-x.map fixing the usage of jis fonts with 
+    ptex (Closes: #570901)
+
+2010-02-14
+  * [base] update pdftex.def to latest version to fix pdfxmltex breakage
+    (Closes: #566591) [np]
+
+2010-01-31
+  * [all] add a trailing slash to the Homepage: line for debian/control in
+    tpm2deb-source.pl [fk]
+  
+release texlive-extra 2009-7 unstable
+	(urgency=high to easy transition to testing)
+
+2010-01-11
+  * [extra] texlive-latex-extra replaces texlive-base-bin (<< 2008)
+    (Closes: #564709)
+
+release texlive-base 2009-7 unstable
+
+2010-01-05
+  * [base] add missing replace texlive-latex-base > texlive-base-bin 
+    (Closes: #563733)
+  * [base] support zipped documents in texdoc by patching constants.tlu
+  * [base] update xetex.def to 0.94 from upstream (Closes: #485071)
+  * [base] use see in texdoc.cnf
+
+2010-01-03
+  * [base] install texdoc.cnf in /usr/share/texmf/texdoc to make texdoc 
+    find it (Closes: #557861, #563460)
+  * [base] update texdoc to 0.61
+
+2010-01-02
+  * [base] add man page for simpdftex
+  * [extra] add man pages for pkfix and ps4pdf (Closes: #563301)
+
+2009-12-29
+  * [base] fix location of updated texdoc.pdf[.uu] in texlive-base.root
+    (must be in /u/s/d/texlive-base/texdoc)
+  * [base] update luainputenc and luatextra to current versions 
+    (Closes: #562849)
+
+release texlive-base 2009-6 unstable
+release texlive-extra 2009-6 unstable
+
+2009-12-25
+  * [all] install several man pages via the .install files. That
+    will install also the epstopdf man page (Closes: #562498)
+  * [extra] update epstopdf to current version (where --filter works) 
+    (Closes: #562497)
+
+2009-12-24
+  * [base] upgrade texdoc to 0.60, activate support for zipped documents,
+    and change the config file to use see for all documents (Closes: #561785)
+    (patches: texdoc-update, texdoc-viewer-use-see, added .pdf.uu in
+    debian/texlive-base.root/usr/share/texmf-texlive/doc/texdoc)
+
+2009-12-23
+  * [bin] include a patch (from upstream) to fmtutil so that multiple 
+    defined formats are accepted. That is the definitive fix for bug
+    #557091, but the other one is necessary, too.
+
+release texlive-bin 2009-4 unstable
+release texlive-base 2009-5 unstable
+release texlive-extra 2009-5 unstable
+release texlive-lang 2009-3 unstable
+
+2009-12-22
+  * [extra] add texlive-plain-extra replaces texlive-lang-vietnamese (<< 2008)
+    for replacement of tex/plain/plnfss/MIKmathf.tex
+  * [extra] texlive-latex-extra replaces texlive-extra-utils (for vpe.pl)
+
+2009-12-21
+  * [base] remove "texlive-common conflicts tex-common (<< 2.0) to make 
+    upgrades more smooth with cupt
+  * [base] texlive-pictures: fix typo in xyframe.tex (patch from Andrey
+    Paramonov) (Closes: #561784)
+  * [bin] fix the etex chaos
+  * [bin] include a fix for segfaults in mpost (Closes: #561500)
+  * [extra] texlive-formats-extra depends texlive-latex-base since
+    it needs bplain.tex (Closes: #561882)
+  * [bin] take over forgotten patch from TL2007 for building on i386-hurd.
+    The patches are now icu-xetex_hurd.diff and detex-hurd.diff
+    (patches thanks to Samuel Thibault as already in TL2007, and
+    thanks for Hilmar for tracking that down) (Closes: #560800)
+  * [base] add code to texlive-base.preinst to disable offending lines
+    that have been taken over from texlive-base-bin in oldstable and
+    causing fmtutil to die with "infinite recursion detected".
+    (Closes: #557091)
+
+2009-12-20
+  * [bin] resurrect etex which was lost (Closes: #561768)
+  * [base] add texlive-base conflicts dvipdfmx (Closes: #561728)
+  * [base] texlive-pictures: add symlinks for cachepic, fig4latex
+  * [extra] texlive-extra-utils: add symlinks for listings-ext, findhyph, 
+    texdiff, rpdfcrop
+  * [lang] texlive-lang-greek: add symlink for mkgrkindex
+  * [base] add NEWS for texlive-common on font cache handling (Closes: #561352)
+
+2009-12-15
+  * [base] ship dvipdfmx.cfg file
+    patch dvipdfm (config) and dvipdfmx (dvipdfmx.cfg) config files to
+    use gs instead of rungs. (Closes: #561151)
+
+release texlive-base 2009-4 unstable
+release texlive-bin 2009-3 unstable
+release texlive-doc 2009-2 unstable
+release texlive-extra 2009-4 unstable
+release texlive-lang 2009-2 unstable
+
+2009-12-05
+  * [base] bump dep on luatex version to first working 0.46.0-5
+
+2009-11-30
+
+  * bump depends and add conflicts on luatex, but that doesn't solve
+    the diversions problem. Needs fixing.
+
+release texlive-base 2009-3
+release texlive-extra 2009-3
+
+2009-11-29
+  * [base] remove transition code (hopefully really closes #557091) (fk)
+  * [base] bump luatex replace to << 0.45.0 to really get files replaced
+    (Closes: #557086)
+  
+2009-11-25
+  * [extra] package latexmk, it is packaged separately (Closes: #557855)
+
+release texlive-base 2009-2
+release texlive-bin 2009-2
+release texlive-extra 2009-2
+
+2009-11-21
+  * [bin] add replace texlive-extra-utils (<< 2008) for dvi* (reported in 
+    bug #557086)
+  * [base] fix typo in tpm2deb.cfg, let texlive-common conflict with
+    texlive-base-bin instead of tex-base-bin (hopefully that is closing
+    bug #557091, but that needs testing)
+
+2009-11-19
+  * [extra] blacklist purifyeps, it is packaged separately (Closes: #557018)
+  * [base] texlive-base: bump dep on luatex to 0.44.0, and add a replace 
+    luatex (<= 0.40.6) since dviluatex moved (Closes: #557086)
+
+release texlive-base 2009-1
+release texlive-bin 2009-1
+release texlive-doc 2009-1
+release texlive-lang 2009-1
+release texlive-extra 2009-1
+
+2009-11-12
+  * building all packages a new, fixing lintian errors
+
+2009-10-15
+  * re-add the dependencies on dvipng, lcdf-typetools and tex4ht that had
+    been removed for testing. No other changes needed [fk]
+    
+2009-10-15
+  * add luatexiniconfig.tex to texlive-base via .root mechanism
+    (it must be in base because there it is where the luatex format is built!)
+
+2009-10-12
+
+  * add dependency texlive-xetex -> texlive-latex-base to get the 
+    xelatex format working
+
+2009-10-08
+  * Much work, no idea what
+  * include the fix to fix-manpages.sh from Ubuntu
+
+2009-09-23
+  * Don't install the /usr/bin/vpe symlink in texlive-binaries, script and
+    symlink are in texlive-latex-extra
+
+2009-09-20
+  * Remove amstex symlink from texlive-binaries. The manpage stays there,
+    however, since it's missing in tl-math-extra.
+  * Remove manual install of fragmaster in tl-extra-utils
+
+2009-09-18
+  * remove
+    texlive-extra/debian/texlive-formats-extra.root/ \
+    usr/share/texmf-texlive/tex/latex/latexconfig/mllatex.ini
+    (once needed for cooperation with teTeX). The blacklist in
+    texlive-base has been removed a while ago. [fk]
+  * For testing TL2009, remove texlive-full's dependencies on
+    lcdf-typetools, dvipng and tex4ht for the moment.
+  
+2009-08-11
+  * tpm2deb.cfg: Add additional conflicts to force the upgrade in a bunch;
+    this is just a try.
+
+2009-08-10
+  * tpm2deb.cfg, lang: collection-langarabIC (the IC is new), rename our
+    texlive-lang-arab to texlive-lang-arabic and add 
+    provide/replace/conflict. [np]
+
+2009-08-09
+  * Add Conflicts/Replaces/Provides: tl-base-bin to texlive-binaries, only
+    Conflicts for those packages who contain file formerly in
+    tl-base-bin. [fk]
+  * Remove all traces of libkpathsea4 from tpm2deb.cfg; it's all in
+    texlive-bin which doesn't use this config file.
+  
+2009-06-27
+  * rules.in (& texlive-bin/debian/rules): use /usr/share/quilt/quilt.make
+    provided by quilt and remove patch-stamp & unpatch targets
+
+2009-06-24
+
+  * allow
+          disable_format;binpackage;formatname
+    in tpm2deb.cfg, disable lualatex and pdflualatex format in 
+    texlive-latex-base
+
+2009-06-21
+
+  * simplify rules.in since texlive-bin is not built anymore from rules.in
+  * call dh_installtex without the format:nolinks to create format
+    links at build time, and remove the links from the *.install files
+    in the texlive-bin directory
+  * remove the binaries-that-are-symlinks from the texlive-bin packages
+    and create them in the other packages with $pkg.links.dist
+
+2009-05-10
+
+  * [all] bump tex-common build-dep to >= 2.00, we need the new 
+    support for language.def
+
+2009-03-10
+
+  * [all] bump tex-common build-dep on >= 1.14
+  * [bin] drop three recommends to suggests:
+    - texlive-extra-utils -> dvi2tty: dvi2tty is not in testing
+    - texlive-extra-utils -> dvidvi: added feature, no direct need
+    - texlive-base-bin -> perl-tk: we give an error message on texdoctk if
+      perl-tk is missing
+
+branch-off point for TL2008 packaging
+
+2008-08-02
+
+  * all: remove the termencoding and encoding variables in the vim strings
+
+release texlive-extra 2007.dfsg.3-2
+release texlive-base 2007.dfsg.1-3
+release texlive-lang 2007.dfsg.3-3
+
+2008-07-22
+
+  * [extra] fix g-brief redefinition of \Telefon (closes: #423919)
+  * [extra] fix g-brief empty unterschrift bug (closes: #154266, #407968)
+
+2008-07-11
+
+  * [extra] fix location of proba doc files (Closes: #490282) [np]
+
+release texlive-extra 2007.dfsg.3-1
+
+2008-07-09
+
+  * [extra] remove alternative dependencies on tetex-extra from 
+    texlive-latex-extra
+
+2008-07-06
+
+  * [base] fix dangling symlink of README.Debian-source to README.source
+    in texlive-common (Closes: #489342) [np]
+
+2008-07-03
+
+  * [extra] blacklist oesch which cannot be modified, needs new .orig.tar
+    (Closes: #489689) [np]
+
+release texlive-doc 2007.dfsg.1-1
+release texlive-bin 2007.dfsg.2-3
+
+2008-06-26
+
+  * [bin] add roadmap.fig to fontinst (patch add-missing-fontinst-source)
+    (Closes: #482915) (urgency medium, RC bug) [np]
+
+release texlive-base 2007.dfsg.1-2
+release texlive-bin 2007.dfsg.2-2
+
+2008-06-25
+
+  * [doc] blacklist catalogue.tpm, the source is not present and in addition
+    not completely free. So we drop the Catalogue, as it is also dropped
+    upstream for TL2008. (Closes: #487149) [np]
+  * [base] fix texlive-base.postinst(.pre) to actually add the comment and not
+    echo it to stderr, thanks Julien Cristau for the patch (Closes: #487947)
+  * [bin] do not install fmtutil.cnf in texmf-texlive/web2c (Closes: #488035)
+  * [bin] use the local keyword in a policy-compliant way (rebuild packages
+    with fix from 2008-06-23) (Closes: #488023)
+
+release texlive-base 2007.dfsg.1-1
+
+2008-06-23
+  * [common.functions.preinst] use the local keyword in a policy-compliant
+    way [fk]
+
+2008-06-23
+  * [extra] add texlive-pstricks recommends texlive-extra-utils for pdfcrop
+    (recommends because pdf is getting more and more over)
+    (Closes Ubuntu Bug 145407) [np]
+  * [base] tetex-extra depends on texlive now, not on tetex-bin, lintian
+    error
+  * [base] fix spelling in descriptions of the metapackages
+
+release texlive-bin 2007.dfsg.2-1
+
+2008-06-12
+  * [base] activate eps-inclusion code in xetex.def (Closes: #485071) [np]
+  * [all] add Homepage field to the control file [np]
+  * [all] rename README.Debian-source to README.source, and add change the
+    information therein to refer to the trunk/README file and the quilt
+    README.source. [np]
+  * [all] bump policy to 3.8.0 [np]
+  * [all] add a patch target to rules.in [np]
+  * [all] add dversionmangle to debian/watch file to ignore the .dfsg.NN suffix
+    and add pasv option
+
+2008-06-11
+  * [base] blacklist proba.sty in texlive-latex-base (Closes: #483282) [np]
+  * [extra] add the new proba package (src, doc, run files) from CTAN.
+    This is done to comply with what has been done upstream by adding 
+    the proba package to collection-mathextra. [np]
+  * [bin] include sfd files necessary for other packages, but removed from
+    the archive with the imminent removal of freetype1-tools. That needs
+    a new .orig.tar.gz [np]
+  * [base] add EPS support for xelatex by including an updated xetex.def
+    (patch added, not activated, would close the bug #485071, waiting
+    for Jonathans remark) [np]
+
+2008-06-07
+  * [common.functions.preinst] make $package a local variable in the
+    check_move shell function (fixes one half of #483833) [fk]
+  * [bin] correct invocation of dpkg_md5sum in tl-base-bin.preinst.pre,
+    fixes the second half of #484833 [fk]
+  * [bin] Add Replaces: texlive-context for tl-metapost (supp-mis.tex
+    moved) [fk]
+
+release texlive-bin 2007.dfsg.1-4
+
+2008-06-01
+  * [bin] use gcc/g++-4.2 on armel to fix FTBFS (closes: #483939) [np]
+    that adds aditional build-dep for texlive-bin and adds code to rules.in
+
+2008-05-28
+  * [bin] add a missing line to the tl2007.2 xetex patch,
+    taken from upstream [np]
+  * [bin] add a patch to xdvipdfmx to re-allow inclusion of tagged pdf images
+    (Closes: #483019) (big thanks to Jonathan Kew for tracking all this down)
+  * [bin] do not install xdvizilla(.1) (Closes: #477160) [np]
+
+2008-05-19
+  * [bin] add mktexlsr-ignore-more-vcs patch that makes mktexlsr ignore not
+    only .svn, but also other VCS directories. Patch taken from upstream
+    (Closes: #481371) [np]
+
+2008-05-13
+  * [extra] let texlive-pstricks recommend texlive-extra-utils and ps2eps 
+    since the included pdftricks packages needs them (Closes: #473791) [np]
+
+release texlive-extra 2007.dfsg.2-1
+
+2008-05-09
+  * [extra] blacklist tpm/camel as it is nosell, thus we need a new
+    .orig.tar.gz (Closes: #479832)
+  * [extra] add a license statement from Robert Gilles about the bbm fonts to
+    Licenses file (Closes: #479097)
+  * [extra] add a license statement from Michael Nüsken about the
+    computational-complexity packages to the Licenses file (Closes: #477152)
+  * [base] blacklist documentation files for eepic since license statement
+    is missing. That closes another part of bug #356853.
+    This makes a new .orig.tar.gz necessary
+
+release texlive-bin 2007.dfsg.1-3
+release texlive-base 2007-14
+release texlive-extra 2007.dfsg.1-2
+release texlive-lang 2007.dfsg.3-2
+release texlive-doc 2007-4
+
+2008-04-25
+  * [extra] update everypage from CTAN to fix serious error (Closes: #477794)
+
+2008-04-20
+  * [bin] texlive-extra-utils now recommends ghostscript (Closes: #476954) [np]
+  * [bin] fix skipping of all trees in mktexlsr with empty $HOME
+    (Closes: #473548)
+  * [bin] add a patch for Sinhala support by Anuradha Ratnaweera 
+    <anuradha@taprobane.org>, but keep it disabled until Jonathan gives me
+    the ok. This would close the bug #476957.
+
+2008-04-19
+  * [all] include the lppl.txt literally in the copyright file
+    (greating to all those who enjoy reading a LONG copyright file)
+
+2008-04-18
+  * [bin] add dviconcat.1 and dviselect.1 to texlive-bin/texmf/doc/man/man1,
+    they were blacklisted when building the .orig.tar.gz and we include
+    these bin/man now [np]
+  * [all] fix some lintian errors, many more to do.
+  * [bin] TeX Live 2007.2 release incorporation: fixes for xetex and xdvipdfmx,
+    new patches tl2007.2-xetex and tl2007.2-xdvipdfmx
+    (adapted from Jonathan Kew's original patches to work with poppler) [np]
+
+2008-03-20
+  * [bin] fix perl warning in thumbpdf (patch: fix-thumbpdf-perlwarning)
+    (Closes: #469294) [np]
+  * [bin] * fix a segfault in ovp2ovf (patch: fix-ovp2ovf-segfault)
+    (Closes: #470433)
+  * [all] Clarify the location of lppl.txt (Closes: #470479)
+  * [doc] fix the spelling of the gentle description (Closes: #469931)
+
+2008-02-21
+  * [bin] add copies of supp-pdf.tex and supp-mis.tex from context 2008-01-28
+    to texlive-metapost so inclusion of metapost images in pdf(la)tex does
+    work without installation of context (Closes: #465107) [np]
+
+2008-02-20
+  * [base] add a fancyheadings placeholder calling fancyhdr (Closes Ubuntu 
+    bug 132399) [np]
+
+2008-02-09
+  * [extra] let -formats-extra replace -latex-base (<= 2007-10) to make
+    smooth upgrades in Ubuntu (gutsy->hardy) possible (Closes Ubuntu 
+    bug 188910) [np]
+
+2008-02-08
+  * [extra] add pbox.pdf to texlive-latex-extra-doc (Closes: #464219) [np]
+  * [lang] texlive-lang-cyrillic suggests scalable-cyrfonts-tex
+    (email from Ralf) (Closes: #459539) [np]
+
+2008-02-03
+  * [all] add a dependeny for all splitted docpks on texlive-common
+    ($version) (closes: #457270) [fk]
+
+2008-01-26
+  * [bin] texlive-xetex depends on texlive-latex-base (Closes: #462610)
+
+2008-01-22
+  * [base] add a patch fix-txfonts-precapprox to switch the symbols 
+    \precapprox and \succapprox in txfonts.sty (Closes Ubuntu bug 184065) [np]
+
+2008-01-16
+  * [base] fix a small bug in booktabs.sty by updating it to the version
+    on CTAN (Closes: #460878) [np]
+
+2008-01-15
+  * [bin] include dviconcat and dviutils (orphaned package dviutils/seetex)
+    and provide/replace/conflict with dviutils (extra-utils) [np]
+
+2007-12-31
+  * [base] make texlive-latex-recommended provide latex-ucs-uninames,
+    latex-ucs, latex-ucs-contrib as these Debian packages have been given
+    up for adoption [np]
+
+2007-12-21
+  * [all] bump standards version to 3.7.3, no changes needed [np]
+  * [all] add texlive-common dependency to the -doc splitted packages,
+    otherwise configuration can fail due to missing update-updmap etc
+    (Closes: #457270) (Closes Ubuntu bug: 177674) [np]
+
+2007-12-05
+  * [base,extra] replace gs-* alternatives with ghostscript [np]
+
+2007-11-29
+  * [bin] add a patch for metapost 1.02 (from upstream svn), but leave it
+    deactivated [np]
+  * (really?) fix the watch file (Closes: #449621), thanks Raphael Geissert
+
+2007-11-28
+  * [base] improve the comments about english hyphenation/language0 in 
+    language.dat, from DEK on tex-k [np]
+      
+2007-11-26
+  * [bin] improve manpage of patgen (Closes: #450875) [np]
+
+release texlive-bin 2007.dfsg.1-2 unstable
+
+2007-11-17
+  * [bin] switch to libpoppler >= 0.5.9 since unstable has now 0.6.2
+    (Closes: #451588) [np] (also adjust build deps)
+  * [base] do not install tex/latex/jknapltx/ubbold.fd, it break the bbold
+    fonts (Closes: #449221). Thanks and sorry Ralf for ignoring you so long!
+
+2007-11-15
+  * [base] close the latin.ldf bug (Closes: #451295) [np]
+
+2007-11-13
+  * [extra] update via.cls from CTAN to fix misbehaviour (Closes: #429150) [np]
+  * [all] add instructions how to generate .orig.tar.gz files to
+    all/debian/README.Debian-source, and extend the trunk/README file [np]
+  * change watch file to use the tug.org ftp server
+  * [extra] fix skak.sty for usage with skaknew's uskak.fd (the only one
+    present) (Closes: #439709) [np]
+
+2007-11-11
+  * [extra] include simplecv to make lyx happy (Closes: #449983) [np]
+
+2007-11-07
+  * [all] change watch file to point to cstug server, update changelogs
+    closing respective bugs
+
+2007-10-30
+  * [base] fix latin.ldf with the version from CTAN 
+    (closes Ubuntu bug #157709) [np]
+
+release texlive-bin 2007.dfsg.1-1 unstable
+release texlive-base 2007-13 unstable
+release texlive-extra 2007-4 unstable
+
+2007-10-24
+  * recode the NEWS files to utf8
+
+2007-10-22
+  * [bin] fix segfault of dvips -z on amd64 (patch applied upstream), thanks
+    to Bastien Roucaries for finding and providing a patch (Closes: #447081)
+
+2007-10-04
+  * [bin] add a patch for metapost 1.0, but do not activate it [np]
+
+2007-09-27
+  * [extra] blacklist tableaux.tpm, new orig.tar.gz
+
+2007-09-25
+  * remove most stuff from the README.Debian file
+
+2007-09-24
+  * implement doc splitting, so that we can build separate -doc packages
+    for every collection we want to [np]
+    splitting is done for: (texlive-base) latex-base, latex-recommended, 
+    fonts-recommended, pictures 
+    (texlive-extra) latex-extra (Closes: #420574), pstricks (Closes: #442052), 
+    publishers, humanities, science
+    (texlive-bin) metapost
+  * add patch gcc43-compile-fix to compilation of teckit with newer
+    gcc compilers (Closes: #441605) (patch taken from 007-12ubuntu3,
+    thanks Matthias Klose)
+
+2007-09-15
+  * put DEBHELPER tag before the post parts [fk from htmlxml]
+  * return (with 0) if we don't have to create a new tarball [fk from htmlxml]
+
+release texlive-lang 2007.dfsg.3-1 unstable
+
+2007-09-09
+  * texlive-lang: reinclude csplain, the license has been fixed.
+  * add a dir orig.tar.gz-addons to the svn repository for orig.tar.gz
+    building
+
+release texlive-lang 2007.dfsg.2-1 unstable
+
+2007-09-05
+  * only blacklist the five files covered by Petr's special licence,
+    not the whole csplain.tpm, since it contains t1code.tex which
+    is essential
+  * build new orig.tar for texlive-bin and texlive-lang
+  * include the change from htmlxml branch for setting the INC path
+    to /usr/share/tex-common in tpm2deb-bin.pl
+  * add a NEWS file for texlive-lang-czechslovak announcing the
+    removal of csplain
+  * fix the syntax error for blacklisting literat and csplain stuff
+
+2007-09-04
+  * texlive-bin: disable pdftex character shifting (option G) in config.pdf
+    (Closes: #434891) [np]
+  * all: retitle all those dreadful "Macro package for TeX" title 
+    (Closes: #436729)
+  * texlive-extra: fix an occurrence of the @ in pubform.bib (Closes: #430438)
+  * spell the path of mllatex.ini the right way, both in the tpm2deb.cfg
+    and in the texlive-latex-extra.root (Closes: #430969)
+
+release texlive-base 2007-12 unstable
+release texlive-bin 2007-14 unstable
+
+2007-09-01
+  * rework the preinst resurrect code so that it is executed *only* for
+    upgrades from >= 2007. Furthermore, the special code for config.ps
+    is executed only for 2007-12.
+  * texlive-bin: blacklist latexmp.pdf since no source is present
+    (Closes: #436965)
+
+2007-08-25
+  * set LANG=C for the update-alternatives grepping, thanks Andreas Degert
+    (Closes: #438551) [np]
+  * blacklist literat (texlive-lang-cyrillic) (Closes: #439028) [np]
+  * Add missing quotes around the sed script in
+    texlive-base-bin.postinst(.pre) (Closes parts of #439205) [np]
+
+2007-08-23
+  * only try to resurrect conffiles when there is a template file present,
+    i.e., only for versions of 2007 in the archive (Closes: #439205) [np]
+
+2007-08-16
+  * fix FTBFS on hurd-i386, adding patch icu-powerpc-buildfix-patch from
+    Samuel Thibault (Closes: #437949) [np]
+
+2007-08-15
+  * Really move Philokalia-Regular.otf to a fonts directory [fk]
+
+release texlive-base 2007-11 unstable
+release texlive-bin 2007-13 unstable
+
+2007-08-13
+  * run the resurrect code *also* in the postinst scripts for the cases 
+    where a package is in rc state with removed conf files. [np]
+  * adapt the menu items to new menu policy [np]
+
+2007-08-11
+  * adjust latest-version for texlive-base to -11 and -bin to -13 so that
+    we get a good combination of packages ;-) [np]
+  * fix removal of old tetex files in language.d (Closes: #435812) [np]
+  * use see in texdoc for displaying of all types of files (Closes: #432037) 
+    [np]
+  * run the resurrect code only at upgrade, not install time. At clean install
+    time there is no file in /u/s/texlive-{bin,base}/... [np]
+
+2007-08-07
+  * move the code to recreate missing conffiles from postinst to preinst:
+    texlive-base: modes.mf
+    texlive-base-bin: pdftexconfig.tex, config.ps
+    texlive-latex-base: color/graphics.cfg
+    (Closes: #425803, #435156, #435081, #433889, #436235, #435719, #435081,
+    #433889) [np]
+    unfortunately version 2007-12 of texlive-bin ships a config.ps in
+    /u/s/texlive-bin which is NOT equal to /e/texmf/dvips/config/config.ps
+    in the same version. We fix this by applying a sed command that transforms
+    the /u/s/texlive-bin/config.ps into the /e/texmf/d/c/config.ps of -12
+    in the preinst of -13. After -13 is in testing we should remove this
+    code.
+
+2007-07-27
+  * Move Philokalia-Regular.otf to a fonts directory [fk]
+
+2007-07-24
+  * copy over explanations in copyright from tetex-base's copyright.header
+    [fk]
+  * bump versioned dep of tl-common on tex-common [fk]
+  
+2007-07-03
+  * [texlive-bin] add another libpoppler patch for libpoppler >= 0.5.9
+    (needs control update, too). Thanks go to 
+    Martin Pitt <martin.pitt@ubuntu.com> for creating this patch. Rename the
+    libpoppler patches to have the respective version in the name. [np]
+  * [texlive-bin] include the fixes to dvilj(k) which are included in the 
+    TeX Live security branch, this adds a patch dviljk-security-fixes [np]
+
+2007-07-02
+  * [texlive-bin] update config.ps from svn (Closes: #431338) [np]
+  * add lost texlive-extra-utils recommends dvidvi (thanks Lionel for
+    spotting this) [np]
+
+2007-06-29
+  * [texlive-bin] update a2ping script and it's man page (Closes: #412107) [np]
+
+2007-06-27
+  * update patch for xetex from texlive svn release texlive 2007.1
+    this also fixes some bugs with OTF inclusion
+    actually use this patch
+
+2007-06-25
+  * fix multiple inclusion of hyphen patterns [np]
+  * let texlive-xetex depend on dvipdfmx (Closes: #430373)
+
+2007-06-22
+  * include a patch for xetex from Jonathan Kew which fixes problems
+    on 64bit archs, and incorrect output in certain (obscure)
+    situations. The patch is NOT activated by now! [np]
+    (version patch1a from 23 Jun 2007, texlive ML
+    msg id <D1EBC1B5-2ADD-4972-8198-9EBE4AFA7249@sil.org>, see
+    http://tug.org/pipermail/tex-live/2007-June/014110.html)
+
+2007-06-21
+  * change common.functions.preinst to use new dpkg_md5sum which
+    does not grep the status file but uses dpkg_query [np]
+
+release texlive-base 2007-10 unstable
+release texlive-bin 2007-12 unstable
+release texlive-lang 2007.dfsg.1-3 unstable
+
+2007-06-20
+  * many changes and fixes by Frank (thanks!)
+
+2007-06-13
+  * Change mapping directive config-copy-move to copy-move and don't
+    register it as a conffile: This is only for *moved* conffiles [fk]
+  * Add a remark to trunk/README about what "config file" actually means
+    for mapping. [fk]
+  
+2007-06-11
+  * Add debianize-fmtutil in /usr/share/texlive-bin, and source it in
+    fmtutil. [fk]
+  * Bring fmtutil(1) closer to reality in TeXLive 2007 [fk]
+
+2007-06-10
+  * Let tetex-base conflict with tetex-bin (<< 2007) to prevent its
+    isolated upgrade on mixed systems (closes: #427859) [fk]
+
+2007-06-05
+  * [base] activate mathpple.map (closes: #426790) [np]
+  * [base] don't call dh_installtex for meta packages (closes: #427169)
+      - make a distinction between meta packages and normal packages
+        in rules.in
+
+2007-06-02
+  * beautify the config.ps installation [np] (see merge-dist-tree!):
+    - remove the code in rules.in
+    - move config.ps from texlive-bin/debian/ to 
+      texlive-bin/debian/texlive-base-bin.root/usr/share/texlive-bin
+  * strip the ./debian/$pkg part in debian/all/generate-license-file [np]
+
+2007-05-31
+  * Remove the version check from the "resurrect conffile" code; purging
+    tetex-base may happen any time.
+  
+release texlive-base 2007-8 unstable  
+release texlive-bin 2007-10 unstable  
+  
+2007-05-30
+  * IMPORTANT: Move the #DEBHELPER# string after the $maintscript.post
+    snippet.  "post" now signifies that it is after the usual,
+    tpm2deb-bin.pl-generated config file handling, not that it is after
+    the debhelper stuff.  I need some code at this special place, and
+    furthermore I think it's usually a bug in tex-common if something is
+    not handled in a dh_installtex snippet, but cannot be done before it.
+  * Fix the copying of conffiles to /usr/share/$sourcepkg: New directive
+    "config-copy-move".
+  * Add missing dep of libkpathsea-dev on libkpathsea4
+
+2007-05-29
+  * Ship modes.mf and pdftexconfig.tex in /usr/share/$sourcepackagename,
+    and install it into /etc/texmf in postinst.  For the time being, do
+    that without debconf messages and unconditionally (configure would
+    fail without them, anyway). [fk]
+  * Recreate tpm2liclines
+  * tex-common package-status in bug.control, since "report-with" doesn't
+    supply that information
+
+2007-05-26
+  * texlive-bin: don't install libkpathsea.la (Closes: #426006) [np]
+  * all/texlive-bin: do not actually carry out the "preserve deleted
+    conffile" due to the tetex bug and too many busted installations.
+    We warn the admin to delete the file if he really wants to.
+    (Closes: #425781 in texlive-bin and #425803 in texlive-base) [np]
+
+release texlive-bin 2007-9 unstable
+
+2007-05-24
+  * Use --enable-shared=default in order to not try it in the
+    subdirectories for static-only libraries, in particular xetex's
+    teckit. [fk]
+
+2007-05-23
+  * libkapthsea4 is of section libs, libkpathsea-dev of libdevel, add
+    infrastructure to override single bin package sections (bin-section) [np]
+
+release texlive-base 2007-7 unstable
+release texlive-bin 2007-8 unstable
+release texlive-lang 2007.dfsg.1-2 unstable
+
+2007-05-23
+  * Let tl-generic-recommended declare Replaces: tl-base because of
+    cmyk-hax.tex [fk]
+  
+2007-05-22
+  * in the abort-upgrade case in texlive-base-bin's postrm, we cannot
+    assume that xdvi.cfg does exist at the new place: Make code
+    conditional [fk]
+
+2007-05-22
+  * add texlive-base-bin replaces texlive-pdfetex
+
+2007-05-21
+  * texlive-common conflicts with all package revisions of all packages 
+    << latest-revision as set in tpm2deb.cfg.
+  * big format move:
+    - move (partly fixed) format.{tex,pdftex,etex,metafont} to texlive-base
+      and edit format.latex.cnf in texlive-base. Fixes done:
+      . add pdfetex to format.etex.cnf
+      . add latex to format.latex.cnf
+      . remove those two from format.pdftex.cnf
+      . take unchanged format.tex.cnf
+    - BuildFormat executes moves:
+      . remove call in texlive-bin/bin-{tex,pdftex,etex,metafont}.tpm
+      . add call {tex,pdftex,etex} to plain.tpm (and thus to texlive-base)
+      . add call metafont to metafont.tpm (and thus to texlive-base)
+    - missing: should we take over fmt.d/10texlive-base-bin.cnf? I prefer
+      to leave it there and don't do anything. After we have this version
+      without a conf file we can add code for the upgrade from 2005.
+  * as a consequence of the format move some cleaning actions:
+    - remove /usr/bin/mf -> mf-nowin as generated from dh_installtex in
+      texlive-base rules, mf is shipped by texlive-base-bin
+    - remove also /usr/bin/{pdf,}etex in texlive-base rules, and create
+      them via dh_link in texlive-base-bin
+
+2007-05-20
+  * texlive-base: rename (and not remove) old obsolete config files from tetex
+    (Closes: #425256)
+  * texlive-base: don't call tetex-bin-upgrade (Closes: #425270)
+  * texlive-bin: update 64_fix_makempx_installation to upstream fix
+  * texlive-extra: move bigfoot from tl-humanities to tl-latex-extra 
+    (upstream move, too) (Closes: #420394)
+  * common.functions.preinst: rework the xdvi conf file handling code
+    to not "preserve removal" when upgrading from older texlive versions
+    (Closes: #425272)
+
+2007-05-19
+  * add stricter dependencies to all packages: if in the final shipout
+    dep on a texlive package there is no version given, the value of
+    latest-version (from tpm2deb.cfg) of the source package is taken.
+    (texlive-bin: Closes: #421969) (texlive-lang: Closes: #423143)
+  * texlive-bin: remove cruft from control files (cweb, ctie, texdoctk)
+    (Closes: #241089, #249085)
+  * don't leave copies of conffiles in TEXMFDIST (Closes: #420139)
+  * texlive-bin: add poppler to the pdftex banner (Closes: #420971)
+  * texlive-bin: texlive-lang-indic needs depends on python
+  * update/add some patches for the invocation fixes, they patched the
+    wrong files
+  * add lintian source override for 
+    maintainer-script-lacks-debhelper-token debian/common.functions.*
+  * add lintian override for
+    tetex-base: maintainer-script-needs-depends-on-ucf postinst
+    we check with -x /usr/bin/ucf
+  * texlive-bin: add build-dep on chrpath, and remove the rpath entry
+    in the binaries
+  * texlive-bin: remove link /u/s/d/libkpathsea-dev -> libkpathsea4
+    as shipped in packages <= 3.something
+  * texlive-bin: add patch 64_fix_makempx_installation to fix the installation
+    of makempx script instead of the binary (thanks Sanjoy Mahajan)
+
+2007-05-18
+  * Output the list of files in /etc/texmf/web2c in the bug.script
+
+2007-05-17
+  * shlibs magic, thanks Florent
+  * add new poppler patch: 30_libpoppler_new, the old is still present
+    for backports, this also adds a versioned build dep for
+    libpoppler-dev (>= 0.5.4) to texlive-bin
+  * texlive-extra-utils suggests gs-* for epstopdf (Closes: #423988)
+
+2007-05-16
+  * texlive-bin: dpkg_md5sum in common-functions.preinst returns now
+    the empty string in case of an unknown conffile (could have been
+    created by touch). This should fix Ubuntu bug 111654. [np]
+    Serious testing whether nothing else is broken should be done.
+  * merge manually the changes from the libkpathsea branch back [np,fk]
+    - change rules.in to build libkpathsea4 and -dev, and add the necessary
+      control files [fk]
+    - add texlive-bin/debian/libkpathsea4.install, 
+      texlive-bin/debian/libkpathsea-dev.README.Debian, and
+      texlive-bin/debian/libkpathsea-dev.install
+    - adjust tpm2deb.cfg to build the new packages from texlive-bin
+  * Change the code that drops meta- and transitional packages from
+    texlive-full's dependencies so that the list of unwanted packages is
+    in the config file [fk]
+  * Consistently output error messages of perl scripts to STDERR [fk]
+  * move bin-thumbpdf to texlive-base-bin (upstream done, too) 
+    (Closes: #424658) [np]
+
+2007-05-15
+  * texlive-bin: move bangfont.tex from doc to run files (Closes: #424031)
+  * texlive-bin: add missing python header to ebong script (Closes: #423990)
+
+2007-05-14
+  * texlive-base: texlive-full should not depend on tetex-base 
+    (Closes: #424023) [np] (We should move the code from tpm2debcommon.pm
+    to the config file... but I am too lazy for now)
+
+release texlive-base 2007-6 unstable
+release texlive-doc 2007-3 unstable
+
+2007-05-14
+  * texlive-base: make the conflict with ivritex versioned (Closes: #423718)
+  * tetex-base replaces tetex-extra << 2007, since teTeX3-extra ships a
+    lintian override file for tetex-base (Closes: #423520) [np]
+  * texlive-doc-zh replaces/conflicts texlive-doc-ch ...
+
+release texlive-bin 2007-7 unstable
+
+2007-05-07
+  * rename texlive-doc-cn to texlive-doc-zh, sorry all for the chaos [np]
+    (needs new texlive-base and -lang packages)
+  * fix typo in postinst scripts update-alternative(s) (Closes: #422929)
+
+release texlive-bin 2007-6 unstable
+
+2007-05-03
+  * texlive-bin: add a "changed by debianize-updmap" comment to
+    syncWithTrees' definition, and divert "--edit" [fk]
+
+2007-05-03
+  * texlive-bin: move the debianize-updmap call in updmap after the
+    syncWithTrees function so that this function is also debianized.
+    (Closes: #421184)
+  * texlive-bin: apply teTeX texdoctk.defaults patch to get texdoctk
+    to use the right programs (Closes: #421633)
+  * all: add call to dh_installmenu to rules.in
+  * texlive-bin: add menu entry of xdvi, texdoctk, texconfig (Closes: #421634)
+  * all: update README.Debian-source to point to the svn repository and
+    the contained README file
+  * [base] blacklist intermediate files in mathpazo doc (Closes: #421620)
+  * all: fix bug.script
+  * lang: add jerus10 to tl-lang-herbrew to fix hebrew typesetting
+  * base: backport koma-script r288 to fix the use of \usekomafont in all
+    koma-script classes (Closes: #421079)
+  * doc: rename texlive-doc-ch to texlive-doc-cn, stupid me [np]
+
+2007-04-28
+  * texlive-bin: patch updmap so that the help text at map file not found
+    error does not mention --syncwithtree etc, but refers to updmap.d
+    and update-updmap
+
+2007-04-25
+  * texlive-bin: reworked alternative code for removal of old tetex 
+    settings [np]
+  * create tetex-base
+
+release texlive-bin 2007-5 unstable
+
+2007-04-17
+  * fix config file handling (Closes: #419826) [np]
+    - fix a bug in tpm2deb-bin.pl which prevented any config file handling
+    - fix another bug in tpm2deb-bin.pl which didn't install the config
+      file handling in the postrm script
+
+release texlive-bin 2007-4 unstable
+release texlive-base 2007-4 unstable
+release texlive-lang 2007.dfsg.1-1 unstable
+
+2007-04-16
+  * Add patch 31_pdftex_gcc_ICE-on-alpha to work around a bug in newer
+    gcc, thanks to Falk Hueffner <falk@debian.org> (closes: #419434) [fk]
+  * create meta packages texlive-lang-all in texlive-lang, thanks to
+    Frans Pop for the suggestion. [np]
+  * texlive does not longer depend on context [np]
+  * we build texlive-lang-arab, this needs a new .orig.tar.gz as we have
+    to include the respective files there. [np]
+  * Since we take over xdvi from tetex-bin, we remove its xdvi alternative
+    in case it is present (closes: #419381) [fk]
+  * Remove any format or log files in /var/lib/texmf/web2c, they must be
+    in $engine subdirs now.  teTeX does not properly remove them, and
+    they cause strange failures with context (see #419059 and #418976) [fk]
+  * add code to the bug.script to give the md5sums of all the files in
+    /etc/texmf/texmf.d [np]
+  * add update tests from etch in tests/etch-test-*
+  * [tl-bin] Add patch 62_dvips_absolutepath_doc to document the change in
+    dvips' file inclusion behavior in config.ps (closes: #418788)
+
+release texlive-bin 2007-3 unstable
+release texlive-base 2007-3 unstable
+release texlive-extra 2007-3 unstable
+release texlive-lang 2007-3 unstable
+
+2007-04-14
+  * undo the fix of friday 13, thanks to debhelper bug #419060, this fixes
+    several texlive bugs
+  * bump tex-common build-deps to 1.7
+
+2007-04-13
+  * fix the ordering of auto scripts:
+    - bump build-dep on tex-common to 1.6 for fixed auto scripts
+    - bump build-dep on debhelper to >= 5.0.44 for the 
+    (thanks to Loïc Minier for the hint!)
+
+2007-04-12
+  * disable the texmf.cnf check which was run by default, this can only be
+    done manually (because each upload of tex-common with changed files
+    would make tl-bin FTBFS) [fk]
+  
+release texlive-bin 2007-2 unstable
+release texlive-base 2007-2 unstable
+release texlive-extra 2007-2 unstable
+release texlive-doc 2007-2 unstable
+release texlive-lang 2007-2 unstable
+
+2007-04-10
+  * texlive-bin: Fix missing build dependency on tex-common >= 1.3, thanks
+    to Yannick Roehlly for spotting this.
+  * call dh_compress with -X.pdf so that pdf files are not compressed
+
+2007-04-06
+  * texlive-bin: drop updated collection-binextra.tpm and bin-dvipos.tpm
+    into the source package to solve the missing dvipos problem.
+
+2007-04-05
+  * texlive-bin: replace links of odvicopy.1 and odvitype.1 to the respective
+    man pages without o with a minimal manpage (Closes: #417274) [np]
+
+  * fix installation of info pages, we should believe perl if it tells us
+    Variable "@SpecialActions" will not stay shared at 
+    debian/tpm2deb-bin.pl line 343. [np]
+
+  * big do_remap_and_copy restructuring: the final component now is 
+    unified for all mapping directives: either relative file names (in this
+    case /usr/share/texmf-texlive is prepended), or absolute file names.
+    Needs loads of testing. Furthermore, the sub-directives names have
+    changed (remap -> move). Proper documentation added in trunk/README [np]
+
+2007-03-23
+  * texlive-bin: fix config file move logic for xdvi.cfg (Closes: #415906) [np]
+  * really move nag.sty [np]
+
+release texlive-bin 2007-1
+release texlive-base 2007-1
+release texlive-extra 2007-1
+release texlive-doc 2007-1
+release texlive-lang 2007-1
+
+2007-03-21
+  * final changelog editing
+
+2007-03-15
+  * move nag.sty to a TEXINPUTS tree [fk] 
+  * modularize the make_deb function in tpm2deb-bin.pl (ongoing work) [fk]
+
+2007-03-14
+  * Add code to take over changes from fmt.d/10texlive-pdfetex in
+    texlive-base-bin. 
+
+2007-03-12
+  * Let tl-bin Build-Depend on tex-common (>= 1.2) for the handling of
+    fmtutil-sys in postrm [FK]
+  * Fix the "when to run" logic for conffile moves, and write them in a
+    way that I actually understand them myself
+
+2007-03-09
+  * Fix conffile upgrade code: Only act with correct versions, actually
+    pass the action parameter to the function, and respect conffile
+    removals [FK]
+
+2007-03-08
+  * Add error-unwind code for the conffile renames [FK]
+
+2007-03-02
+  * upgrade path replaces:
+    - texlive-latex-base -> texlive-base-bin << 2007 since 
+      /usr/bin/pdflatex has moved
+    - texlive-base-bin -> tetex-bin (<< 2007)
+    - texlive-metapost -> tetex-bin (<< 2007)
+  * fix forgotten config files handling
+
+2007-03-01
+  * introduce a new map sub-directive config-remap
+  * remap instead of copy various files into /etc/texmf (dvips/config/config.*
+    texdoctk, xdvi)
+  * texdoctk.dat is not a configfile anymore
+  * fix fmtutil patches referring to pdfetex as engine
+
+2007-02-28
+  * use old teTeX's xdvi perl script, add a dependency base-bin -> perl [NP]
+  * create links via dh_installtex and remove the links.dist entries [NP]
+  * depend on tex-common >= 1.1 to get dh_installtex with link creation [NP]
+
+2007-02-18
+  * add common.functions.preinst and include common.functions.$type in
+    the make_maintainer call. We don't want to have the preinst code
+    hanging around in all other maintainer scripts.
+  * use dh_installtex in the rules files, thus cleaning the 
+    maintainer scripts:
+    - rules.in: use dh_installtex
+    - tpm2deb.cfg: bump tex-common deps to >> 1.0 for the flavor
+      format:build_all
+    - tpm2deb-bin.pl: rewrite make_maintainer()
+    - remove empty common.functions as all the functionality is taken from
+      dh_installtex
+  * as an interim solution, add format links to the respective binary
+    packages' dh_link files [FK]
+
+
+2007-02-17
+  * add patch 01_tmp_configure_without_installextra which allows to skip
+    running updmap-sys, fmtutil-sys, mktexlsr and most importantly
+    texlinks with a configure option; add that option [FK]
+  * Add explicit real packages to the build-dependencies, in addition to
+    the alternative virtual packages [FK]
+
+2007-02-16
+  * fixes from the first test round
+    - really blacklist ttf2pk, this is a perl regexp, not a shell wildcard,
+      so we have to use .* instead of * (should be done in texlive-old!, too)
+    - missing (upstream) dependency
+      texlive-humanities -> texlive-latex-base
+      texlive-science -> texlive-latex-base
+    - add conflict texlive-common <-> texlive-chemistry as this is gone
+    - mathpazo hack
+      mathpazo was in math-extra <= 2005-2, in latex-recommended << 2007,
+      and now in fonts-recommended, thus:
+      texlive-fonts-recommended replaces texlive-math-extra (<= 2005-2)
+      texlive-fonts-recommended replaces texlive-latex-recommended (<< 2007)
+    - HA-prosper was moved from latex-extra to latex-recommended, thus
+      add a versioned replace
+    - all/debian/preinst.pre code: upgrading to tetex-bin 2007 does not 
+      work as the "upgrade from experimental versions" breakage kicks in.
+      check for upgrade from version 2005 <= version <= 2005-2
+      so that tetex-bin 3.0-something is not hit
+
+2007-02-15
+  * update dvipdfm patch [NP]
+
+2007-02-14
+  * Another mapping directive "copy" which is like config-copy (see
+    below) but does not create any maintainer scripts entries. [NP]
+  * Adapt tpm2deb.cfg that new config files are just "config" [NP]
+  * add preliminary config file handling, no unroll treatment by now [NP]
+  * fix texlive-bin build breakage, we patch the Build script now [NP]
+
+2007-02-13
+  * Expand infrastructure to allow automatic generation of preinst
+    code for config files. Config files are marked in the tpm2deb.cfg
+    via a mapping;origdist;config-{copy,link};dest directive and
+    in the preinst script of the respective package a line
+    	handle_config_file $configfile
+    is added. Currently prefixed with a :, as the function has to be
+    written [NP]
+  * define the files from Frank's list as config files [NP]
+
+2007-02-12
+  * Add Replaces: for file that were in tl-latex-extra in TL 2005 and
+    are now in individual collections [FK, probably earlier unnoted
+    changes by NP]
+  * Use separate configure and build targets in tl-bin's rules and
+    Build.debian, for easier work with the sources [FK]
+  
+2007-02-08
+  * add new remapping type "configfile" which is copied to the last
+    argument as base path and remains where it should be. [NP]
+  * conflict with texlive-pdfetex, and add necessary replaces
+
+2007-02-06
+  * TL2007 work [NP]
+    - collection-chemistry is gone, superseeded by collection-science
+      do not build texlive-chemistry and let tl-science replace tl-chemistry
+    - add replaces: texlive-humanities and tl-science -> tl-latex-extra
+
+2007-01-25
+  * more internal restructuring [NP]
+
+2007-01-22
+  * lots of internal changes to the Perl scripts, mainly cleanup, more
+    descriptive names, and debugging handling [FK]
+  * Add Tpm.pm and FileUtils.pm from TL 2007 [FK]
+  * Switch texlive-base and texlive-bin to quilt 
+  * Do not install rules.in in the binary package, it not used and hence
+    is confusing. 
+  * Switch texlive-lang, texlive-doc to quilt [NP]
+  * include quilt call only for packages with patches [NP]
+  * update tpm.data to the data of TL2007
+
+2007-01-11
+  * all: change the build infrastructure so that short and long
+	description of add-on packages can be specified in the
+	configuration file [FK]
+  * all: add a versioned build-dep on findutils, sarge's doesn't
+	understand the -wholename option.  Should be dropped when etch is
+	released, nobody is going to want to make backports for
+	oldstable. [FK}
+  * no texlive-context anymore, replace it with Debian context package
+	
+2007-01-11
+  * texlive-base: blacklist siam as it is non-free, thus new upstream 
+    (Closes: #406426) [NP]
+
+2007-01-08
+  * texlive-base: create transitional packages tetex-bin and tetex-extra [FK]
+
+release texlive-bin 2005.dfsg.2-10
+
+2007-01-11
+  * build -10 from the old repository layout. The old layout will continue
+    for etch support.
+
+release texlive-bin 2005.dfsg.2-9
+
+2007-01-04
+  * texlive-bin: Apply a patch by "Mark A. Wicks" <mwicks@kettering.edu> to 
+    fix a crash of dvipdfm in half-hour timezones (Closes: #403267)
+
+2007-01-02
+  * texlive-bin: Apply patch by Julian Gilbey <jdg@debian.org> to prevent 
+    mktexlsr from creating ls-R in root's home directory (closes: #402925)
+
+release texlive-bin 2005.dfsg.2-8
+release texlive-base 2005.dfsg.2-5
+release texlive-extra 2005.dfsg.2-4
+
+2006-12-28
+  * move to new repository layout, documentation has to be written for it
+ 
+2006-12-18
+  * texlive-bin: reinclude pslatex script and its manpage into
+    texlive-base-bin. [NP]
+
+2006-12-15
+  * all: move the dpatch stuff to addons-per-source/$package/debian/patches
+
+2006-12-14
+  * texlive-extra: remap infix-RPN.tex and .sty from the doc hieracy to 
+    texmf-texlive (Closes: #402987) (closes Ubuntu bug #69690)
+  * texlive-bin: move bin-ttfutils to tl-font-utils, blacklist everything
+    but ttf2afm, add bin-ttfutils.tpm and ttf2afm.1 to the source
+    package (Closes: #402983) (Closes ubuntu #75545)
+  * all: restructure the layout of addons-per-source, it is now one directory
+    per source plus one for all, which is cp -a to the source package
+    at source package build time. This way we can include files missing
+    in the .orig.tar.gz without making a new .orig.tar.gz. This was necessary
+    to fix the above as bin-ttfutils.tpm was missing.
+    Note that binary files are NOT dealt with ATM, so do NOT install
+    binary files into addons-per-source/ !!
+  * redo a bit of documentation in the README file
+
+release texlive-bin 2005.dfsg.2-7
+
+2006-12-12
+  * texlive-bin: fix the wrong texdoctk patch [NP]
+  * texlive-bin: include xdvi upstream fix for segfault on hitting g with
+    -nogrey (Closes: #369569)
+
+2006-12-09
+  * texlive-extra: downgrade the relation from fonts-extra to cm-super from
+    depends to suggests. Default would be recommends, but a suggests is
+    enough. (Closes: #399064) [NP]
+  * Add the ability to define additional execute statements in the config
+    file [NP]
+  * texlive-extra: add the missing dstroke.map, and add the addMap action
+    to the config file (Closes: #400780) [NP]
+  * tpm2deb.pl/texlive-base: Don't add mktexlsr calls to the postinst/postrm
+    script of texlive package, as it does not contain 'real' files
+    (Closes: #400369) [NP]
+  * texlive-bin: change shebang for getnonfreefonts to /bin/bash
+    (Closes: #398112) [NP]
+  * texlive-base: add an updated dcpic.sty to texlive-pictures (Closes: #388653)
+  * texlive-extra: activate ugq.map (Closes: #374351)
+
+2006-12-08
+  * texlive-bin: Final polish of changelog
+  
+release texlive-bin 2005.dfsg.2-6
+  
+2006-12-06
+  * texlive-bin: Apply patch (from teTeX) to allow texdoctk to work when 
+    both TEXMFDIST directories are populated (#400058) [FK]
+
+2006-12-02
+  * texlive-bin: Apply pdftex patch that allows to use large cjk fonts 
+    (see tetex's bug #399897) [FK]
+
+2006-12-01
+
+release texlive-bin 2005.dfsg.2-5
+  
+  * Add Conflicts of tl-omega on the aleph package (#400930) [FK]
+
+2006-11-28
+  * in addons-per-source/all.watch, change extension of CD image from bz2
+    to zip to match CTAN naming [FK]
+
+release texlive-bin 2005.dfsg.2-4
+    
+2006-11-28
+  * texlive-bin: Blacklist feynmf, the separate package will soon work
+    with texlive; instead let tl-metapost recommend feynmf and tl-full
+    depend on it [FK] (closes: #400657)
+
+release texlive-base 2005.dfsg.2-4
+release texlive-bin 2005.dfsg.2-3
+release texlive-extra 2005.dfsg.2-3
+release texlive-lang 2005.dfsg.2-2
+
+2006-11-09
+  * texlive-bin: don't provide dvipdfm, it messes up sbuild
+
+2006-11-08
+  * all: fix inclusion of packages descriptions when they are actually
+    blacklisted (thanks Frank) (Closes: #397589)
+
+2006-11-07
+  * all: fix a stupid error in the is_blacklist logic, which blacklisted
+    packages which aren't blacklisted at all (Closes: #397324)
+
+2006-11-04
+  * texlive-base: add the forgotten ltxtable.sty to texlive-latex-base 
+    (Closes: #396965) [NP]
+  * texlive-bin: extend texconfig man page and include some fixes from 
+    teTeX (Closes: #396904) [NP,FK]
+
+2006-10-30
+  * texlive-bin: include fixes for superficially linked in libs [NP]
+
+release texlive-base 2005.dfsg.2-3
+
+2006-10-26
+  * alternative dependencies for teTeX changed to tetex-bin to get
+    mktexlsr (Closes: #395270)
+  * texlive-base: upgrade prosper relation back to recommends in
+    tl-latex-recommended as we have an updated package now.
+  * adjust version numbers in the relation to jadetex, xmltex, passivetex
+
+2006-10-20
+  * Add a default for $opt_master in tpm2deb.pl setting it to ./LocalTPM,
+    this way we don't need a TeX Live 2005 Master when rebuilding only
+    a new Debian revision.
+  * Add a default for $oldsrcdir in tpm2deb.pl setting it to ./src, search
+    first for the .orig.tar.gz in ., then in $oldsrcdir.
+
+release texlive-base 2005.dfsg.2-2
+release texlive-bin 2005.dfsg.2-2
+release texlive-extra 2005.dfsg.2-2
+
+2006-10-19
+  * texlive-bin: include patch for pdfetex to support newer TTF fonts
+    (Closes: #394028) [NP]
+
+2006-10-18
+  * texlive-bin: adjust built-in search paths of libkpathsea to the 
+    Debian defaults (Closes: #392641) [NP]
+
+2006-10-16
+  * Fix the description of MetaFont, this should be done upstream, too -
+    but where is it taken from? [FK]
+  * texlive now only suggests texlive-doc-en, not depends (Closes: #392517)
+ 
+2006-10-14 NP
+  * texlive-base: add versioned dependencies on all texlive packages
+    for texlive-full. Latest version must be configure in tpm2deb.cfg.
+
+2006-10-13 NP
+  * texlive-bin: update the debian patch for updmap(.1) (Closes: #393189)
+
+2006-10-12 NP
+  * texlive-lang: Add a depends from tl-lang-spanish on tl-latex-base as
+    eshyph.tex loads cathyph.tex, which is not present in tetex packages.
+    (Closes: #392474)
+  * texlive-base: texlive-full now recommends 
+    latex-cjk-all >= 4.6.0+cvs20060714-2
+  * texlive-base: blacklist beamer, xcolor, pgf and depend on the 
+    respective Debian packages (Closes: #382870, #389467)
+
+2006-10-11 NP
+  * texlive-base: move the conflict texlive-latex-extra<->latex-beamer
+    to texlive-latex-recommended<->latex-beamer as the packages has
+    been moved.
+  * texlive-base: add a suggests texlive-latex-recommended -> tl-pictures
+    to get pgf for beamer (Closes: #382870)
+  * provide pgf, latex-beamer, latex-xcolor in the respective packages
+  * reorganize the tpm2deb.cfg file to make it easier to find something
+
+release texlive-base 2005.dfsg.2-1
+release texlive-bin 2005.dfsg.2-1
+release texlive-extra 2005.dfsg.2-1
+release texlive-lang 2005.dfsg.2-1
+release texlive-doc 2005.dfsg.2-1
+
+2006-10-09 NP
+  * texlive-bin: depend on tex-common >= 0.33 to get working debianize-updmap
+  * texlive-base: blacklist several non-free beamer exampler files
+    (Closes: #391946)
+
+2006-10-08 NP
+  * texlive-bin: Include the changes by Frank to debianize-updmap
+  * texlive-bin: move bin-texdoc to tl-base-bin (Closes: #391640)
+  * texlive-bin: include the already unpacked sources instead of the
+    source.tar.bz2. Changes to the clean target:
+    - don't remove unpack-stamp
+    - don't remove the whole build dir, only build/inst and build/Work
+    (Closes: #380227) (Thanks Frank for insisting!)
+  * texlive-bin: Use tex-common's (>= 0.32) debianize-updmap (Closes: #391348)
+  * texlive-base: call tetex-bin-upgrade from tex-common (>= 0.32) to allow
+    upgrades from sarge's tetex2 (Closes: #382861) (at least we hope)
+
+2006-10-07 FK
+  * Add a Depends on ed for texlive-base-bin, updmap uses it
+  
+2006-10-06 NP
+  * texlive-bin: use xdvi.bin in the xdvi shell script, and use alternatives
+    system to set xdvi.bin to xdvi-xaw.bin (Closes: #391437)
+  * extend the README in the svn repository to explain the inner workings
+    in more details
+  * all: extend the copyright file with statements for the copyright of
+    the Debian adaptions, uses GPLv2 (no higher).
+
+2006-10-05 NP
+  * texlive-lang: provide/replace/conflict texlive-lang-african - ethiop
+  * texlive-extra: add recommend texlive-latex-extra -> texlive-generic-extra
+    (Closes: #390896)
+  * all: move the definition of maintainers, section, uploaders, priority,
+    standards to the config file. Move some provides which were hard coded
+    in the perl file into the config file.
+  * all: create the rules file via an eperl script, add build-dep on eperl
+
+2006-10-03 NP
+  * texlive-lang: remove the conflict with octave-forge as they don't have
+    /usr/bin/mex anymore.
+
+2006-09-29 NP
+  * remove unnecessary conflicts (with blacklisting)
+    - texlive-bin: tl-extra-utils <-> dviutils
+      . blacklist dviconcat(.1) and dviselect(.1)
+      . recommend dviutils
+    - texlive-bin: tl-extra-utils <-> lacheck
+      . blacklist bin-lacheck.tpm
+      . recommend lacheck
+  * drop unnecessary conflicts (without blacklisting)
+    - texlive-extra: tl-latex-extra <-> lhs2tex
+      it concerns only two old files
+    - texlive-base: tl-latex-recommended <-> latex-ucs* (Closes: #388311)
+    - texlive-extra: tl-games <-> tex-skak, tex-chess
+  * texlive-base: change relation tl-latex-recommended/prosper from recommends
+    to suggests as we cannot recommend a not available package.
+    (Closes: #389195)
+
+2006-09-28 NP
+  * texlive-extra: blacklist latex/misc209/bar.sty as it has a bad license
+
+2006-09-08 NP
+  * texlive-lang: reinclude cs*, as it will be redistributable, and add
+    a comment.
+
+2006-09-06 NP
+  * Change my email address to preining@debian.org in the Uploaders field
+
+2006-09-05 NP
+  * blacklist various scripts in texmf-texlive/scripts which are unnecessary
+    as they are also in /usr/bin
+  * texlive-lang: blacklist (bin-)cslatex, (bin-)csplain, and 
+    hyphen-czechslovak as they contain undistributable parts (the former 4)
+    or depends on these parts (the last one). Also add a dpatch that
+    removes the lang initialisation from collection-langczechslovak.tpm
+
+2006-09-04 NP
+  * all: report bugs together with tex-common, and report status of the
+    tetex packages. Fix some small things in bug.scripts.
+  * texlive-lang: blacklist ntimes.sty (Closes: #366521)
+  * add SHELL=/bin/bash to debian/rules
+  * update tpm2licenses.txt
+
+2006-08-31 NP
+  * texlive-bin: remove magic header of a2ping, thumbpdf, and pdfcrop
+  * allow for comments in the source of the lintian.override file, and 
+    comment the override lines for a2ping, thumbpdf, and pdfcrop
+  * texlive-base: texlive-latex-extra recommend texlive-latex-recommended
+    (Closes: #385213)
+
+2006-08-10 NP
+  * add comment to the rules file that bins for all archs can be found in
+    bin/i386-linux as the tpm arch is set to i386-linux
+  * fix the title and description of texlive package
+
+version 2005.dfsg.1-1 unstable Wed, 09 Aug 2006 09:57:05 +0200
+	for texlive-bin, texlive-base, texlive-extra
+
+2006-08-04 NP
+  * texlive-bin: fix a typo in tpm2deb.cfg (font-util instead of font-utils)
+  * texlive-base: remap esbst.tex and romanidx.tex to really fix bug #365235
+  * texlive-extra: close the eulervm bug #361941 in the changelog file
+
+2006-08-03 NP
+  * texlive-bin: blacklist mktex.cnf as it conflicts with tex-common's.
+  * infra: change test scripts to work with cowbuilder
+  * infra: change test script to call aptitude upgrade instead of
+    install $package
+  * texlive-bin: rm -f the mktex.cnf file, it could already be gone.
+
+2006-08-01 NP
+  * texlive-bin: undo the undo from 22.07 to get back to 08.07.
+
+2006-07-22 NP
+  * texlive-bin: reinstall mktex.cnf conffile link, see bug #379089
+  * texlive-base: add dependency tl-context -> perl-tk, libxml-parser-perl 
+    for texshow to run (Closes: #378829)
+  * texlive-bin: Remove the dep from texlive-base-bin on tex-common >= 0.26.
+
+2006-07-15 NP
+  * all: move several tpm packages around, as done upstream
+  * all: get rid of update-link-files, it was unnecessary, dh_compress
+    is intelligent enough to adjust links
+  * all: get rid of some dpatches for moving tpm packages, as the move
+    directive in tpm2deb.cfg is enough.
+  * all: create links with script create-doc-links instead of using tpm2deb.pl
+    internal add_symlink function
+  * texlive-extra: add eulervm 4.0 to texlive-fonts-extra, replacing the old
+    version 3.0a with missing manifest (Closes: #361941)
+
+2006-07-13 NP
+  * all: change maintainer to debian-tex-maint@lists.debian.org
+  * all: first merge the dist-trees, than call the license stuff
+
+2006-07-08 NP
+  * texlive-base: move passivetex, jadetex, xmltex, latex-cjk from 
+    recommends to suggests of texlive-full (Closes: #377106)
+  * texlive-bin: remove fmtutil.cnf link (useless) and mktex.cnf 
+    (taken from tex-common). Add a dep from texlive-base-bin on
+    tex-common >= 0.26. (Closes: #376524)
+  * all: use tex-commons Tpm.pm and tpm2licenses, add build-dep on 
+    tex-common >= 0.23
+  * all: add lintian override for wrong-name-for-upstream-changelog
+
+2006-06-15 NP
+  * separate changelog files for all source packages in addons-per-source
+
+2006-06-13 NP
+  * include fixed supp-*.tex files into texlive-context
+  * include input focus fix for xdvi (upstream, tetex)
+  * include a patch for dvipdfm's config file that allows proper 
+    inclusion of really large Postscript files, as reported by Thomas 
+    Esser and Laurent Siebenmann  on the TeXLive list.
+
+2006-05-28 NP
+  * after discussion with Ralf Stubner move fpl and mathpazo from 
+    fonts-extra/math-extra to fonts-recommended (psnfss calls for), 
+    and move charter from fonts-extra to fonts-recommended.
+    Move some files in fpl.tpm from DocFiles to SourceFiles,
+    thanks Ralf and Frank for tracking this (Closes: #366035)
+    
+2006-05-27 NP
+  * reinstantiate texlive-lang-ukenglish, the un-freeness is not clear.
+  * add a patch by Ralf Stubner to mktexnam (accepted by TE and included
+    upstream) to create TEXMFVAR in mktexnam. First step to do another
+    /var/cache/fonts retry.
+  * fix texlive-bin build logic: patch-stamp: unpack-stamp
+  * allow for additional license entries at the beginning $Pkg.Licenses.add
+  * add the license statement from Donald Arseneau to relicense underscore.sty
+    under LPPL license (Closes: #368902)
+  * move the whole license generation stuff into the generate-license-file,
+    thus uncluttering the rules file
+  * make blacklist also work on the orig.tar.gz
+  * move esbst.tex and romanidx.tex in the babel.tpm file into the 
+    RunFiles section (Closes: #365235)
+  * move fpl into texlive-latex-base as it is required by PSNFSS, also
+    move some files which are actually SourceFiles into the respective
+    section, thanks Ralf and Frank (see 28.05.2006)
+    (also adapt the lintian.override file for new fpl overrides!)
+  * move lmodern from Depends to Recommends in texlive-base
+  * replace the relation directive with single directives for conflicts,
+    depends, recommends, suggests, and add the replaces directive.
+
+2006-05-24 NP
+  * don't build texlive-lang-ukenglish as it is non-free
+    we still have to build dfsg .orig.tar.gz files once!
+
+2006-05-23 NP
+  * texlive-extra-utils recommends perl-tk for texdoctk (Closes: #368659)
+
+version 2005-2 unstable Thu, 11 May 2006 00:12:10 +0200
+
+2006-05-11 NP
+  * another fix for tpm2licenses to not break if there is an empty
+    directory (or one only containing links!)
+  * Upload to unstable sponsored by Neil McGovern <maulkin@halon.org.uk>
+
+2006-05-10 NP
+  * Build-Dep on tex-common not necessary as we include tpm2licenses
+    and fixed Tpm.pm (can go away with next version when the fixes
+    are in tex-common)
+  * The build-dep day, finding what all is necessary for a clean build
+    with tpm2licenses: libappconfig-perl, libxml-dom-perl
+  * Really fix the ibycus4.map problem (Closes: #354652)
+  * adjust dvipdfmx recommend version to 1:20050831-1
+  * Install this file as CHANGES.packaging into texlive-common, and
+    create a streamlined and terse changelog.
+
+2006-05-09 NP
+  * create new package texlive-common:
+    - move the symlink /u/s/texmf-texlive/doc -> ../texlive-doc from
+      texlive-base-bin to texlive-common, and the installation of it
+      from tpm2deb.pl to texlive-common.links.dist (Closes: #364776)
+    - same as above for the /u/s/texmf-texlive/ls-R link
+    - let *all* packages depend on texlive-common (which allows the above
+      two changes!)
+    - add a all.preinst.pre snippet that ensures that all texlive
+      packages are *first* purged before the -2 version is installed.
+      We don't support upgrade path from experimental. Also add the
+      preinst handling which was missing.
+    - texlive-common depends on tex-common, the other packages do only
+      depend on texlive-common
+  * allow all.{post,pre}{inst,rm}.{post,pre} to be merged into all
+    maintainer scripts
+  * do not install SourceFiles into the binary package.
+  * install the README.?? files only into texlive-common
+  * update the tl4deb-dep diagram
+  * move endfloat.dvi from texlive-latex-recommended to texlive-latex-extra
+    (upstream fix necessary)
+
+2006-05-08 NP
+  * move the installation of debianize-updmap form tpm2deb.pl to the
+    texlive-base-bin.root 
+  * update tpm2liclines from catalogue
+  * allow installation of uuencoded files via the .root method, and move
+    tl4deb-deptree.pdf.uu into texlive-common.root, remove all references
+    to tl4deb-deptree in tpm2deb.pl (especially the rules files)
+  * remove all .svn directories at source package build time from debian
+  * bump standards version to 3.7.2, no changes necessary
+  * install mime entry for dvi in texlive-base-bin (thanks Jörg Sommer)
+  * move declaration of build-dependencies into the config file,
+    move dpatch into Build-Depends: as it is necessary for clean target.
+  * before writing out relation fields, uniq the entries.
+
+2006-05-06 NP
+  * blacklist musixtex, musixps, musixlyr, and let texlive-music depend
+    on the updated packages.
+  * add mllatex.ini to texlive-formats-extra and blacklist it in
+    texlive-latex-base
+
+2006-05-04 NP
+  * add man pages for pkfix, texconfig-dialog, aleph, lambda, otangle
+    (thus all binaries have man pages now, yippie)
+
+2006-05-03 NP
+  * add man page for pdfcrop (written by Frank, thanks)
+
+2006-05-02 NP
+  * texlive-lang-polish conflicts with octave-forge as both provide
+    /usr/bin/mex, this is preliminary, a better solution must be
+    sought (Closes: #364059)
+
+2006-05-01 NP
+  * add man pages for bibtex8, devnag, ps4pdf, musixflx (from Andreas Tille)
+    getnonfreefonts-sys (link to getnonfreefonts), perltex (pod2man)
+
+2006-04-30 NP
+  * add man page for simpdftex
+
+2006-04-29 NP
+  * add man page for pdfopen and pdfclose (thanks Frank)
+  * add man page for deprecated altpdf* scripts
+
+2006-04-25 NP
+  * extend license with a coverage check
+  * blacklist trig.dtx and xdoc from fontinst sources (thanks to Frank
+    for spotting this)
+  * extend the svn README (not installed) for config file syntax and
+    first write up on the build procedure
+
+2006-04-23 NP
+  * add support for arbitrary bin-package specific subtrees in addons-per-bin,
+    and install omfonts.1 into texlive-omega man directory.
+  * License support rehauled: We now give for (nearly) every file a license
+    statement generated from the TeX Catalogue. 
+
+2006-04-10 NP
+  * fix build_format_if_format_exists check, it was completely hosed
+  * let texlive-lang-cyrillic conflict with tetex due to /usr/bin/ru*
+
+2006-04-06 NP
+  * blacklist sanskrit.tpm, and recommend latex-sanskrit from
+    texlive-lang-indic.
+
+2006-04-03 NP
+  * Remove build-deps on | libxaw8-dev as it goes away with X7.
+
+2006-04-01 NP
+  * Remove non-free documentation and create a specific package
+    texlive-doc-nonfree. Currently only three context documents.
+  * change pdftex's version string to indicate that it uses libpoppler,
+    taken from the teTeX patch (thanks to Frank and Julian).
+
+2006-03-23 NP
+  * include the texdoc patch from tetex, which allows following of
+    symlinks for doc files, and fixes security concerns (Closes: #356390)
+  * As a consequence of the above patch let tl-extra-utils depend on 
+    mime-support.
+  * remove tetex-missing-magic-header workaround in test script.
+
+2006-03-20 NP
+  * add conflict ptex-bin vs texlive-lang-polish as both provide platex.
+  * add a fix to the tmpfile race in the example feynmf.pl script (thanks
+    to Kevin B. McCarty).
+
+2006-03-14 NP
+  * change shell for the reportbug script to bash (Closes: #356391)
+
+2006-03-12 NP
+  * Add lintian override for pdfcrop and thumbpdf executable-not-elf-or-script
+    because it is one of the magic header which can be called with sh or perl.
+
+2006-03-11 NP
+  * Blacklist /usr/bin/thumbpdf and /usr/bin/pdfcrop as it is a link to 
+    texexec, which is in texlive-context, while thumbpdf/pdfcrop is in 
+    texlive-pdfetex. Remap the thumbpdf and pdfcrop perl files from scripts to
+    /usr/bin. (Closes: #352092)
+
+2006-03-06 NP
+  * allow overriding of tpm and package titles and descriptions, improve
+    various descriptions (Closes: #354964)
+
+2006-03-04 NP
+  * add all update-* calls to the postinst scripts so that the config file do
+    not contain left-overs from tetex at switch time (Closes: #355266)
+
+2006-03-02 NP
+  * Add the temporary directory to TEXFORMATS in fmtutil, to allow
+    building formats based on latex.fmt without cluttering stdout
+    (patch taken from tetex by Frank Küster, see bug #354604)
+
+2006-03-01 NP
+  * make all texlive-lang-* packages working with tetex3, but add a
+    README file explaining the situation for duplicate languages.
+  * only recommend dvipdfmx, so we can go for the upload
+  * make most depends on other Debian packages a recommends (tipa, texpower,
+    etc)
+
+2006-02-28 NP
+  * remap the ibycus4.map TeX/MF input file from the fonts/map location
+    to the fonts/source location (upstream cleanup necessary) (Closes: #354652)
+  * add packages specific README.Debian files
+  * allow various texlive-lang-* packages to work with tetex3
+
+2006-02-26 NP
+  * Fix dependency of texlive onto texlive-latex-base
+
+2006-02-25 NP
+  * Let texlive-base depend on the new NMU of dvipdfmx and blacklist it.
+  * Try to stop the build system to build dvipdfmx.
+  * Add Provides for virtual packages: dvipdfm, cweb, ctie, texdoctk
+
+2006-02-20 NP
+  * move all files to texmf-texlive, only a few essential stay in TEXMFMAIN
+  * add a new package texlive-full which takes the role of the previous
+    texlive package in pulling in all necessary components, while the
+    texlive package itself now consists of a selection of packages
+    (the -recommended ones, plus doc-en, but no -lang-*)
+
+2006-02-19 NP
+  * conflict: texlive-extra-utils with dviutils (superseeded, more utils)
+  * blacklist bin-dvi2tty, but let tl-extra-utils depend on dvi2tty
+  * fix problems when switching from teTeX (missing update-language call)
+    (all three thanks to Atsuhito Kohda)
+
+2006-02-18 NP
+  * The svn repository has moved to the debian-tex project at alioth,
+    thus the revisions now are shifted by ~500.
+
+2006-02-13 NP
+  * remove /var/lib/texmf/web2c/{latex,pdflatex}.{fmt,log} before
+    calling fmtutil-sys --all as jadetex (and other formats) with 
+    a fmtutil config line based on the latex format might use the
+    old latex format. (Closes: #351707)
+
+2006-02-12 NP
+  * blacklist /usr/bin/uniqleaf which is a link to texexec but no
+    corresponding perl file exists (but it is in tetex).
+  * Fix the Build-Depends-Indep vs Build-Depends stuff
+  * tipa NMU is in Debian, so depend on it
+  * fix for the link files fix
+  * cleanup of common.functions (backticks, printf instead of echo -n)
+
+2006-02-11 NP
+  * blacklist lm(odern), and depend on lmodern >= 0.99.3-1, this makes the
+    lmodern fonts again available for X (Closes: #351727)
+  * included fixes for errors in the depot:
+    - remove ltxdoc.cfg from tex/latex/subfig
+    - move pst-3d.tex from the doc directory to the proper place
+
+2006-02-06 NP
+  * add a special clause to bug script to see the texmf-texlive/ls-R file
+  * import debianize-updmap and other fixes for fmtutil from tetex 
+
+2006-01-31 NP
+  * fix installation of files from addons-per-bin
+  * link fixing: remove double call to dh_link, install pre-distributed
+    links files as package.links.dist, fix update-link-files to copy the
+    package.links.dist to package.links, and only append the links from
+    package.links.generated
+  * add some more man pages (links to pdfetex.1)
+
+2006-01-24 NP
+  * add a watch file to the sources
+  * add poppler/Link.h for building with poppler >= 0.5.0. Thanks to Martin
+    Pitt.
+  * texpower is updated, let texlive depend on it
+
+2006-01-15 NP
+  * expand reportbug script to include an ls -l of texmf.cnf, fmtutil.cnf
+    updmap.cfg, and language.dat
+
+version 2005-1 experimental Thu, 12 Jan 2006 17:30:22 +0100
+
+2006-01-12 NP
+  * switch to debhelper compat version 5, no changes necessary
+  * upload to experimental, based on scripts revision 293.
+  * Upload sponsored by Neil McGovern <maulkin@halon.org.uk>
+  * fix tetex-dependency/conflict check
+  * fix bug report script, install it into all packages
+
+2006-01-11 NP
+  * support for reportbug control and script, all packages but the
+    doc packages report together with texlive-base-bin, and texlive-base-bin
+    reports via the same script as does tetex-base.
+  * remove config.status file in pdcmac
+  * texlive-formats-extra conflicts with tetex-bin <= 3.0-13
+  * add missing build dependency texlive-bin -> ed
+  * test builds are done in a minimal pbuilder with only build-essential stuff
+
+2006-01-09 NP
+  * clean up poppler patch
+  * separate the writing of debian/rules into its own function
+  * clean up the whole direcory (shouldn't I do it for my life, too ;-)
+  * add a README file in the repository how everything is structured
+  * restructuring stuff:
+    - merge scripts/snippets/addons etc into two directories
+      addons-per-source and addons-per-bin
+    - simplify the make_deb_source functions as nearly all files
+      are now installed automatic via the addons-per-* stuff.
+
+2006-01-04 NP
+  * fix read_changelog program
+  * build sources only based on the configuration in tpm2deb.cfg, not
+    necessary to be specified in the Makefile
+  * test script cats all the error files /tmp/texlive.* to stdout if
+    one of the commands goes wrong
+  * fix check_consistency by blacklisting collection-binaries, actually
+    break out if there is an error raised in check_consistency
+
+2005-12-29 NP
+  * remove conflicts on thailatex, although it doesn't work with texlive
+    (and probably not with thailatex). Updates are necessary to thailatex.
+  * change dep on tex-common to >= 0.12
+
+2005-12-28 NP
+  * kill texlive-lang-cjk package:
+    - move yi4latex to texlive-latex-extra
+    - recommend latex-cjk-all (>= 4.6.0+cvs20051031-4)
+  * remove 40_hbf2gf.dpatch as it is not included into the package
+    anymore
+  * add libpoppler-dev to Build-Deps for texlive-bin
+
+2005-12-27 NP
+  * move unified doc dir to /usr/share/doc/texlive-doc as there is a 
+    package texlive, install all the README.?? etc also there
+  * include fixes from Werner Lemberg for hbf2gf and mktexmf
+       dpatch/texlive-bin/40_hbf2gf.dpatch and 41_maketexmf.dpatch
+       dpatch/texlive-base/30_depot_fixes.dpatch
+  * switch pdfetex from libxpdf to libpoppler, patch taken from tetex
+
+2005-12-26 NP
+  * add missing dependency of texlive-omega onto texlive-latex-base for
+    latex.ltx in lambda.ini (todo for depot)
+  * move mltex and bin-mltex to texlive-formats-extra (todo for depot)
+  * add missing dependency of texlive-formats-extra onto texlive-latex-base
+    for bplain.tex and mllatex (todo for depot)
+  * include diagram into texlive-doc-base package
+  * fix --noremove option to tpm2deb.pl
+  * add sharutils to build-deps of texlive-doc
+
+2005-12-23 NP
+  * created a diagram of dependencies
+  * implement automatic test system, testing all packages with install-
+    remove-install-purge cycle
+  * fix installation of eplain format, it has been moved to tl-plain-extra
+    instead of tl-formats-extra (todo for depot)
+  * for the texlive-doc-* packages call mktexlsr only if it is available
+    (these packages do not depend on texlive-base-bin)
+
+2005-12-21 NP
+  * call fmtutil-sys --all in tl-base and tl-base-bin postinst script
+  * move tex4ht from recommends to depends for the texlive package, as
+    it is already fixed in unstable to work with texlive and tetex.
+  * Include relation to teTeX in README.Debian
+
+2005-12-15 NP
+  * make texlive-math-extra and texlive-plain-extra conflict with tetex
+  * version dependency of cm-super >= 0.3.3-3 due to the name change
+  * include pdftex update to 1.30.5, bugfix release
+  * texlive-font-utils conflicts with tetex
+
+2005-12-14 NP
+  * tl-htmlxml completely replaced, removed conflict of tl-context vs tex4ht
+  * let texlive recommend tex4ht in locally updpkg version
+
+2005-12-13 NP
+  * make packages which are not texlive specific depend on either texlive
+    or tetex, and remove unnecessary conflicts with tetex, so that tetex
+    users can use the texlive packages, too.
+
+2005-12-12 NP
+  * Rename dependency from lcdftypetools to lcdf-typetools
+  * don't build texlive-htmlxml but recommend the respective debian pkgs
+  * move xmlplay from texlive-htmlxml (not build) to tl-latex-extra
+
+2005-12-11 NP
+  * remove texlive from the dependencies of the texlive packages
+  * include security fix xpdf-3.01pl1.patch (CAN-2005-3193)
+  * add bzip2 to build-dep
+  * fix installation of getnonfreefonts(-sys)
+
+2005-12-10 NP
+  * fix rules generation to first unpack and then patch
+  * add texdoctk patch warning if perl-tk is not installed (stolen from tetex)
+    and remap-link texdotk.{defaults,dat} to /etc/texmf/texlive/texdoctk
+  * add a texlive meta package that pulls in all sub packages and other
+    Debian packages resulting in a more or less complete TeX Live system.
+  * change orig.tar.gz layout to look exactely like the DVD (so we can
+    once put the debian dir into the DVD)
+
+2005-12-09 NP
+  * use source.tar.bz2 from Master/source (i.e. from the DVD)
+
+2005-12-03 NP
+  * blacklist euclide.tpm, as it is superseeded by pst-eucl (todo for depot)
+  * "give Debian what Debian is":
+    - do not build texlive-lang-arab as it is arabtex which is in Debian
+    - blacklist prosper and depend on prosper (fix for prosper needed)
+      recommend prosper
+    - blacklist texpower and tpslifonts as they are superseeded by the
+      Debian texpower package (fix for texpower needed), recommend texpower
+    - blacklist tipa as it is in Debian (fix for tipa send to maintainers)
+      recommend tipa
+  * switch field separator in cfg file to ; so that epoch specifications work
+
+2005-12-02 NP
+  * blacklisting xymtex as it is not distributable.
+  * blacklist (bin-)ppower4 as it depends on java and no sources
+    are provided within texlive (but you can get it from the author)
+  * save ChangeLog in utf8
+
+2005-12-01 NP
+  * add dependency tl-context -> tl-metapost (thanks Arne Jørgensen)
+    (todo for depot)
+
+2005-11-30 NP
+  * add symlink from texmf-texlive/ls-R to /var/lib/texmf/ls-R-TEXLIVE
+  * kill packages ttf-utils, ps-utils, graphics-tools, they should become
+    proper Debian packages
+
+2005-11-29 NP
+  * another round of package renaming, adaptions to the perl script
+  * move only the files from texmf-dist and texmf-doc to texmf-texlive, 
+    leave others in place (more work for teTeX cooperation has to be done)
+  * fix lintian generation for source packages
+
+2005-11-28 NP
+  * reduce number of source packages
+  * rename various packages
+
+2005-11-27 NP
+  * properly clean up debian subdir with target clean, ie remove the
+    generated maintainer scripts and the generated .link files.
+  * upgrade pgf in texlive-pictures to 1.01 for compatibility fixes
+
+2005-11-24 NP
+  * Close the ITP (Closes: #312897)
+  * add a dependency tl-htmlxml -> tl-latexrecommended because jadetex
+    needs the ecrm fonts.
+  * switch to texmf-texlive tree, which also makes a dependency on
+    tex-common >= 0.12 necessary.
+
+version 2005-0.2 UNRELEASED Tue, 22 Nov 2005 23:49:00 +0100
+
+2005-11-22 NP
+  * this release was uploaded as -1 to experimental but rejected. Thus
+    the release was renamed as -0.2 and a new -1 will be generated.
+  * re-add updmap-sys call to the postrm scripts
+  * make updmap-sys silent in postinst script
+  * make fmtutil-sys silent in postinst script
+  * make mktexlsr silent in postinst script
+  * change depend on tex-common to >= 0.11 for TEXMFSYSCONFIG change
+
+2005-11-21 NP
+  * fix lintian source override installation
+  * fix etex/pdfetex format generation problem
+  * remove the 04TeXlive hack as the change will go into tex-common 0.11
+    rather soon
+  * remap only a few config files (those for programs) to /etc/texmf/texlive
+  * try to fix the conundrum with format generation. This is a complete
+    upstream chaos (ok, also upstream I created the chaos ;-). Should be fixed
+    rather soon.
+
+2005-11-20 NP
+  * fix invocation of grep in common.functions to add || true, since grep
+    returns if no match found
+  * fix installation of TeXlive.cnf as 04TeXlive.cnf into /e/t/texmf.d
+  * add a overriding TEXMF variable to 04TeXlive.cnf which includes
+    TEXMFCONFIG without !! (Should actually be fixed in tex-common!)
+  * remove the long invocation of language.dat
+  * fix merging of common.functions into postrm and prerm
+  * fix regexp for installing lintian.override files
+
+2005-11-19 NP
+  * add common.functions and merge it into the maintainer scripts
+  * change check for the existence of a format from kpsewhich fmt.ini
+    to a fmtutil-sys --listcfg check (in common.functions)
+  * Leave the map files in TEXMFMAIN and do not remap them to /etc/texmf
+  * New configuration file handling, all the files are left in their
+    normal place and config files to shadow these files should be put 
+    into /etc/texmf
+  * Add override for TEXMFSYSCONFIG to /etc/texmf
+  * give the updmap.d, fmt.d, and language.d config snippets priority 10
+    and only the us language snippet the 09 priority.
+  * create a README.Debian
+  * lintian override for a2perl header problem
+
+2005-11-16 NP
+  * add a distribution entry to the ChangeLog file and make tpm2deb.pl
+    aware of it
+  * fix all remaining man page warnings of lintian
+  * load tpm data from a dump of the %TpmData using perl::Storable,
+    significantly speeding up the initialization time at source-deb
+    building time.
+  * add additional override for texlive-langgerman that german is correct
+
+2005-11-15 NP
+  * fix the man page errors (wrong char and ttf2pt1)
+
+version 2005-0.1 UNRELEASED Mon, 14 Nov 2005 20:11:34 +0100
+
+2005-11-14 NP
+  * remove build-dep on tex-common
+  * Rework maintainer script handling, separate out the creation of
+    maintainer scripts into a function, allow only to create the
+    maintainer scripts for checking.
+  * move the extra format configuration from the snippets/post scripts
+    to tpm2deb.cfg.
+  * Building a first prerelease version. The scripts used are from
+    svn revision 134.
+
+2005-11-11 NP
+  * Fix a failure in setting the executes, thus there were some map files
+    missing.
+
+2005-11-09 NP
+  * Don't forget dh_strip
+
+2005-11-08 NP
+  * Fixes for big cleanup part I.
+  * Create all rules file from tpm2deb.pl, make the rules subdir
+    unnecessary.
+
+2005-11-07 NP
+  * Big cleanup in the script, part I.
+    - make config file syntax more readable
+    - create infrastructure for all kind of tests by reading in all tpm
+      data and store it in a hash
+    - separation of functions handling with tpm data, config file reading
+      and hash creation from the debian functions
+    - work on more packages in one go is now possible, thus the tedious
+      reading of all the tpm files is not necessary anymore
+
+2005-11-05 NP
+  * TeX live 2005 is done. It includes everything up to perforce change #8640.
+  * Make a new set of tpm/licence files
+  * allow independent building of orig.tar.gz files
+  * do not create empty control files
+  * remove old fmt/log files in the postinst script prior to creating
+    them new to get rid of leftovers.
+  * include a lot of checks that dependencies are going right
+
+version 2004.05.10.13-1 UNRELEASED Thu, 13 Oct 2005 22:44:33 +0200
+
+2005-10-13 NP
+  * Include the list of all licenses of all packages into the package
+  * Rebuild packages from current depot including perforce change #8432
+  * move the format generation of etex and pdfetex from -basic to -pdfetex
+  * Install lintian overrides for zero-byte-file-in-doc-directory,
+    extra-license-file, and script-not-executable.
+  * add support for dh_link and create links for some man pages
+
+2005-10-11 NP
+  * Make blacklists collection specific. 
+  * Implement consistency checks:
+    - packages which are included in two collections
+    - packages which are not included at all
+      (missing for bin-* packages)
+  * Include antt and iwona only in texlive-fontsextra and not in 
+    texlive-langpolish.
+
+2005-10-06 NP
+  * change cm-super from Suggest to Depend, as it is now in Debian/sid
+
+2005-10-04 NP
+  * remove last traces of texlive-trees and replace it by Master
+  * Fix postrm scripts to take actions only on remove action, not
+    on purge
+
+2005-09-29 NP
+  * Move to svn://svn.debian.org/pkg-texlive/texlive/trunk/
+  * split tpm2deb from Master, include the Tools perl modules in orig.tar.gz
+
+2005-09-27 NP
+  * Add mktexlsr patch to generate ls-R via a /tmp file and cat into
+    the original one. This way permissions can be set for the ls-R files.
+    Taken from tetex-bin.
+
+2005-09-26 NP
+  * Changed cmd test to which from test -e, so that no actual paths
+    are used in the control scripts (Debian Policy)
+
+version 2004.05.09.25-1 UNRELEASED Sun, 25 Sep 2005 12:03:18 +0200
+
+2005-09-25 NP
+  * Change the test for fmtutil-sys --byhyphen to fmtutil-sys --listcfg
+    and grep for ^latex.
+  * Remove the chmod -x stuff, it breaks execution of various web2c/*
+    scripts (mktexupd, tcfmgr, ...)
+  * Switch to new numbering scheme (tlversion.yy.mm.dd) where tlversion
+    is the last *released* TeX live version and yy.mm.dd is the current
+    date. This way we can have regular releases 200N-debrelease and 
+    additional releases between official TeX live releases.
+  * Fix the order of ifs in postrm scripts so that first the existence of
+    fmtutil-sys is checked, and then wether the latex fmt is installed.
+  * Add myself to the Uploaders field.
+  * New source version, including up to perforce change #8177
+
+2005-09-24 NP
+  * Forget to remove the "all" from the generated rules file. It does
+    not hurt at build time, but I don't like it.
+  * add the fmtutil-sys --byhyphen calling check also to the postrm scripts
+  * remove x bit from all files under texlive-trees at source packages
+    built time
+
+2005-09-23 NP
+  * Fix the lang postinst scripts so that fmtutil-sys --byhyphen is only
+    called if language.dat is found. This is not the optimal method, but
+    the best I can think of ATM.
+  * Actually copy source and not source.development from the depot
+  * make the architecture parameter to tpm2deb unnecessary and put config
+    for this into the tpm2deb.cfg file. Update all the debian/rules files.
+  * Change Maintainer to: 
+    Debian TeX live Maintainers <pkg-texlive-maint@lists.alioth.debian.org>
+  * Added some documentation to tpm2deb.pl, and cleaned up the script
+
+version 2005.09.15-2 UNRELEASED Wed, 21 Sep 2005 16:59:23 +0200
+
+2005-09-20 NP
+  * Move the link /usr/share/texmf/fonts/map -> /etc/texmf/map from
+    texlive-basic to texlive-basicbin as in the later there are several
+    map files and updmap is also in basicbin
+  * Temporary fixes to the tpm files to make texlive-lang* with hyphen files
+    depend on texlive-latex and not only on texlive-basic.
+  * Add (unused) feature to build debian packages for single CTAN packages
+    as well
+
+version 2005.09.15-1 UNRELEASED Thu, 15 Sep 2005 16:14:10 +0200
+
+2005-09-15 NP
+  * New source version, including up to perforce change #8062
+  * fixed format generation problem
+  * make descriptions lines not longer than 80 chars
+
+2005-09-14 NP
+  * add -e to the /bin/sh shebang for error checking in the control scripts
+  * test for existence of various programs before trying to execute them
+    this is for the case when a package is removed but not purged, but
+    the tex-common package is removed, too.
+
+version 2005.08.27-1 UNRELEASED Sat, 27 Aug 2005 16:03:44 +0200
+
+2005-08-27 NP
+  * New source version, including up to perforce change #7870
+  * fix build dependency on libXaw7-dev | libXaw8-dev
+  * Fix generation of formats of texlive-basic. The actual fmt.d files
+    are in texlive-basicbin, but the .ini files are in texlive-basic,
+    so actually the call to fmtutil should be in the postinst of
+    texlive-basic. (Thanks to LUK ShunTim)
+
+2005-08-26 NP
+  * Do not include cm-super.tpm, but suggest the debian package cm-super,
+    which contains the full set of cm-super fonts. For now locally
+    available on tug.
+
+2005-08-25 NP
+  * Fix installation of README.Debian-source into all binary packages
+
+version 2005.08.24-1 UNRELEASED Wed, 24 Aug 2005 18:10:02 +0200
+
+2005-08-24 NP
+  * Everything is build with depot at change #7842
+  * Really fix the info problem: Now all the info files are converted at
+    install time to unix line endings. Thus also the strange ^M in the
+    postinst script install-info commands should be fixed.
+
+2005-08-23 NP
+  * New source version, including up to perforce change #7836
+    This includes fixed versions of pdftex, mpost, dvipdfmx, and as usual
+    several updates to  (La)TeX packages.
+  * fixes the dvips.info install problem
+  * lm is now included in texlive-basic, so changed conflicts in tpm2deb.cfg
+  * generation of /var/cache/font/* and various ls-R files has moved to
+    tex-common (>= 0.7), thus also the changed Depends
+  * Dependency on tex-common (>= 0.7) also fixes the lambda with all
+    languages problem in dumping the format file
+
+2005-08-22 NP
+  * Include the included packages and their title in the long description
+    of the control files, and generate the control files automatically.
+
+version 2005.08.21-1 UNRELEASED Sun, 21 Aug 2005 16:20:00 +0200
+
+2005-08-21 NP
+  * New source version, including up to perforce change #7781
+  * Fix missing dependencies in Depot, should make install/deinstall more
+    clean, and give a full install.
+  * Building the source packages does not need the file revision anymore,
+    all information are deduced from this ChangeLog file
+
+version 2005.08.18-2 UNRELEASED Sat, 20 Aug 2005 22:35:00 +0200
+
+2005-08-20 NP
+  * Fix installation of /var/cache/font etc
+  * Link verious config files into /etc/texmf
+  * remove generated formats in the postrm script
+  * dynamically generate ChangeLog file from the ChangeLog of tpm2deb
+
+version 2005.08.18-1 UNRELEASED Thu, 18 Aug 2005 22:00:00 +0200
+
+2005-08-18 NP
+  * Split out texinfo building into its own (source)package.
+  * More work on the doc disaster.
+
+2005-08-16 NP
+  * Fix info installation again. blacklist now really disables *all*
+    actions, also specials, while empty mappings allow special actions.
+    So the info files from info are blacklisted, all the others are
+    remapped to void and dh_installinfo-ed.
+
+2005-08-12 NP
+  * Fix syntax error in postrm when no actions are defined
+
+2005-08-11 NP
+  * Fix install-info installation
+  * Fix dh_installinfo/dh_compress order in rules, update rules files for
+    arch=all
+  * do not call updmap-sys, fmtutil-sys, update-XXXX in postrm upgrade
+    . /usr/share/doc/pkgname/...
+        contains the actual files
+    . /usr/share/doc/texmf/
+        contains some directories and some symlinks to directories in
+        /usr/share/doc/pkgname (as I said, hope this works, will
+        implement it now and see ;-)
+    . /usr/share/texmf/doc -> ../doc/texmf
+
+2005-08-10 NP
+  * Add support of info files with dh_installinfo
+  * do not install tpm files and fmtutil/* files into /usr/share/texmf
+  * put DocFiles back into /usr/share/texmf/doc, but make links of
+    every file to /usr/share/doc/debname/...
+    Hopefully texdoc is working now.
+
+version 2005.08.02-1 UNRELEASED Tue, 02 Aug 2005 20:00:00 +0200
+
+2005-08-02 NP
+  * Start of ChangeLog and first version
+
+EndOfChangeLog
+
+# vim:set fileencoding=utf-8: #
+# Local Variables:
+# coding: utf-8
+# mode: debian-changelog
+# End:
--- texlive-base-2009.orig/debian/bug.script
+++ texlive-base-2009/debian/bug.script
@@ -0,0 +1,96 @@
+#!/bin/bash
+# $Id: bug.script 4642 2010-06-24 04:25:31Z preining $
+set -e
+
+cat <<EOF
+
+Please read and follow the instructions in the first lines below
+the text: "-- Package-specific info:".
+Thank you.
+
+Press ENTER to continue
+EOF
+
+getkey
+
+cat >&3 <<EOF
+If you report an error when running one of the TeX-related binaries 
+(latex, pdftex, metafont,...), or if the bug is related to bad or wrong
+output, please include a MINIMAL example input file that produces the
+error in your report. 
+
+Please run your example with
+	(pdf)latex -recorder ...
+(or any other program that supports -recorder) and send us the generated
+file with the extension .fls, it lists all the files loaded during
+the run and can easily explain problems induced by outdated files in
+your home directory.
+
+Don't forget to also include minimal examples of other files that are 
+needed, e.g. bibtex databases. Often it also helps
+to include the logfile. Please, never send included pictures!
+
+If your example file isn't short or produces more than one page of
+output (except when multiple pages are needed to show the problem),
+you can probably minimize it further. Instructions on how to do that
+can be found at
+
+http://www.latex-einfuehrung.de/mini-en.html (english)
+
+or 
+
+http://www.latex-einfuehrung.de/mini.html (german)
+
+##################################
+minimal input file
+
+
+##################################
+other files
+
+EOF
+
+# unset error exit since those files might not be present...
+set +e
+for dir in $(kpsexpand '$TEXMF' | sed -e 's/,/ /g;s/[!{}]//g;'); do
+  ls_R_files="$ls_R_files $(ls $dir/ls-R 2>/dev/null)";
+done
+ls_R_files="$ls_R_files $(ls /usr/share/texmf-texlive/ls-R 2>/dev/null)"
+
+echo "######################################" >&3
+echo " List of ls-R files" >&3
+echo >&3
+for file in $ls_R_files; do
+  ls -l $file >&3
+#  echo >&3
+#  cat $file >&3
+#  echo "######################################" >&3
+done
+
+echo "######################################" >&3
+echo " Config files" >&3
+for i in texmf.cnf fmtutil.cnf updmap.cfg ; do
+  f=$(kpsewhich --format='web2c files' $i)
+  if [ -z "$f" ] ; then
+    echo "Warning: $i cannot be found with kpsewhich!" >&3
+  else
+    ls -l $f >&3
+  fi
+done
+for i in language.dat ; do
+  f=$(kpsewhich -progname=latex $i)
+  if [ -z "$f" ] ; then
+    echo "Warning: $i cannot be found with kpsewhich!" >&3
+  else
+    ls -l $f >&3
+  fi
+done
+
+echo "######################################" >&3
+echo " Files in /etc/texmf/web2c/" >&3
+ls -l /etc/texmf/web2c/ >&3
+
+echo "######################################" >&3
+echo " md5sums of texmf.d" >&3
+md5sum /etc/texmf/texmf.d/* >&3
+
--- texlive-base-2009.orig/debian/texlive-xetex.override
+++ texlive-base-2009/debian/texlive-xetex.override
@@ -0,0 +1,4 @@
+texlive-xetex: zero-byte-file-in-doc-directory
+texlive-xetex: extra-license-file
+texlive-xetex: script-not-executable
+texlive-xetex: wrong-name-for-upstream-changelog
--- texlive-base-2009.orig/debian/texlive-base.preinst.post
+++ texlive-base-2009/debian/texlive-base.preinst.post
@@ -0,0 +1,43 @@
+# texlive-base preinst.post begin
+
+# make sure that no strange old duplicate lines are hanging around in
+# 10texlive-base.cnf
+# but do the sed command only if the key line below actually occurs, so
+# that we do not create spurious empty conffiles in /etc/texmf/fmt.d
+cnffile=/etc/texmf/fmt.d/10texlive-base.cnf
+if [ -r $cnffile ] && [ -n "$(sed -n '/^# The following added lines have been transferred from/ {p;q}' $cnffile)" ]; then
+  sed --in-place=pre-edit '
+    /^# The following added lines have been transferred from/ {
+                  # the next four N command merge the following lines into
+                  # the current one (which is the one above "# The following.."
+                  # and does not output anything.
+	    N
+	    N
+	    N
+	    N
+                  # now match for the full 5 lines bunch, but replaces 
+                  # matches spaces between the different entries in the 
+                  # format definitions with at least one whitespace
+	    /^# The following added lines have been transferred from\W*\n# \/etc\/texmf\/fmt.d\/10texlive-base-bin.cnf\W*\n#They take precedence over earlier entries\W*\netex\W\+pdftex\W\+language.def\W\+-translate-file=cp227.tcx\W\+\*etex.ini\W*\npdfetex\W\+pdftex\W\+language.def\W\+-translate-file=cp227.tcx\W\+\*pdfetex.ini\W*$/ {
+                  # replace all beginning of lines with ###
+		    s/\n/\n###/g
+                  # do the same for the first line where there is no newline
+                  # and add a comment there, too
+		    s/^/# The following lines are disabled to protect loops\n# Please see Debian bug #557091 for details\n###/
+	    }
+    }
+  ' /etc/texmf/fmt.d/10texlive-base.cnf
+fi
+
+
+# Cleanup after Bug #420390 for sid users
+resurrect_conffile_sid /etc/texmf/metafont/misc/modes.mf texlive-base "$1" "$2"
+#resurrect_conffile_sid /etc/texmf/tex/generic/config/pdftexconfig.tex texlive-base "$1" "$2"
+# we do not ship config.ps currently, do we need to resurrect that one, too?
+#resurrect_conffile_sid /etc/texmf/dvips/config/config.ps texlive-bin "$1" "$2"
+
+
+# texlive-base preinst.post end
+
+# Let vim know that we don't want tabs
+# vim:set tabstop=2 expandtab: #
--- texlive-base-2009.orig/debian/update-link-files.sh
+++ texlive-base-2009/debian/update-link-files.sh
@@ -0,0 +1,43 @@
+#!/bin/bash
+#
+# update-link-files.sh
+# $Id: update-link-files.sh 2583 2007-03-15 20:12:56Z frank $
+#
+# This script serves two purposes:
+# 1) it copies the content of $package.links.dist to $package.links
+# 2) it adjusts the links in $package.links.generated to files which
+#    have been compressed by dh_compress
+#
+# Norbert Preining, 2005-2006
+# GPL
+set -e
+shopt -s nullglob
+
+#
+# first copy the dist link files to the normal
+for i in debian/*.links.dist ; do
+    cp $i debian/`basename $i .dist`
+done
+
+for i in debian/*.links.generated ; do
+    bn=`basename $i .links.generated`
+    while read a b ; do 
+        case "$a" in
+	    usr/share/doc/$bn/* )
+		if [ -r debian/$bn/$a ] ; then 
+	    	    echo "$a $b"
+		else 
+	    	    if [ -r debian/$bn/$a.gz ] ; then #
+	                echo "$a.gz $b.gz"
+	    	    else 
+		        echo "Missing $a" >&2
+	    	    fi
+        	fi
+		;;
+	     * )
+	        echo "$a $b"
+		;;
+	esac
+    done < $i >> debian/$bn.links
+done
+
--- texlive-base-2009.orig/debian/texlive-omega.override
+++ texlive-base-2009/debian/texlive-omega.override
@@ -0,0 +1,4 @@
+texlive-omega: zero-byte-file-in-doc-directory
+texlive-omega: extra-license-file
+texlive-omega: script-not-executable
+texlive-omega: wrong-name-for-upstream-changelog
--- texlive-base-2009.orig/debian/lintian.override
+++ texlive-base-2009/debian/lintian.override
@@ -0,0 +1,26 @@
+zero-byte-file-in-doc-directory
+extra-license-file
+script-not-executable
+wrong-name-for-upstream-changelog
+texlive-lang-german: spelling-error-in-description german German
+texlive-fonts-recommended: unusual-interpreter ./usr/share/texmf-texlive/source/fonts/fpl/fpl/TeXPalladioL-BoldItalicOsF.pe #!fontforge
+texlive-fonts-recommended: unusual-interpreter ./usr/share/texmf-texlive/source/fonts/fpl/fpl/TeXPalladioL-BoldOsF.pe #!fontforge
+texlive-fonts-recommended: unusual-interpreter ./usr/share/texmf-texlive/source/fonts/fpl/fpl/TeXPalladioL-ItalicOsF.pe #!fontforge
+texlive-fonts-recommended: unusual-interpreter ./usr/share/texmf-texlive/source/fonts/fpl/fpl/TeXPalladioL-SC.pe #!fontforge
+texlive-fonts-recommended: unusual-interpreter ./usr/share/texmf-texlive/source/fonts/hfbright/simplify-rename.pe #!pfaedit
+texlive-base source: maintainer-script-lacks-debhelper-token debian/common.functions.preinst
+texlive-base source: maintainer-script-lacks-debhelper-token debian/common.functions.postinst
+texlive-base source: maintainer-script-lacks-debhelper-token debian/common.functions.postrm
+texlive-bin source: maintainer-script-lacks-debhelper-token debian/common.functions.preinst
+texlive-bin source: maintainer-script-lacks-debhelper-token debian/common.functions.postinst
+texlive-bin source: maintainer-script-lacks-debhelper-token debian/common.functions.postrm
+texlive-lang source: maintainer-script-lacks-debhelper-token debian/common.functions.preinst
+texlive-lang source: maintainer-script-lacks-debhelper-token debian/common.functions.postinst
+texlive-lang source: maintainer-script-lacks-debhelper-token debian/common.functions.postrm
+texlive-extra source: maintainer-script-lacks-debhelper-token debian/common.functions.preinst
+texlive-extra source: maintainer-script-lacks-debhelper-token debian/common.functions.postinst
+texlive-extra source: maintainer-script-lacks-debhelper-token debian/common.functions.postrm
+texlive-doc source: maintainer-script-lacks-debhelper-token debian/common.functions.preinst
+texlive-doc source: maintainer-script-lacks-debhelper-token debian/common.functions.postinst
+texlive-doc source: maintainer-script-lacks-debhelper-token debian/common.functions.postrm
+tetex-base: maintainer-script-needs-depends-on-ucf postinst
--- texlive-base-2009.orig/debian/preinst.pre
+++ texlive-base-2009/debian/preinst.pre
@@ -0,0 +1,18 @@
+# preinst.pre
+# $Id: preinst.pre 2583 2007-03-15 20:12:56Z frank $
+# we want to be sure that experimental versions are purged before
+# the first unstable is installed
+# furthermore check that we are at least at version 2005 for the 
+# temporary tetex packages upgrades
+case "$1" in
+  upgrade|install)
+    old_version=$2
+    if [ -n "$old_version" ] && dpkg --compare-versions "$old_version" lt 2005-2 && dpkg --compare-versions "$old_version" gt 2005 ; then
+      echo "Upgrade from experimental versions are not supported!" >&2
+      echo "Please purge all texlive packages before installation." >&2
+      exit 1
+    fi
+    ;;
+esac
+
+# end preinst.pre
--- texlive-base-2009.orig/debian/texlive-latex-base-doc.override
+++ texlive-base-2009/debian/texlive-latex-base-doc.override
@@ -0,0 +1,4 @@
+texlive-latex-base-doc: zero-byte-file-in-doc-directory
+texlive-latex-base-doc: extra-license-file
+texlive-latex-base-doc: script-not-executable
+texlive-latex-base-doc: wrong-name-for-upstream-changelog
--- texlive-base-2009.orig/debian/texlive-pictures.links.dist
+++ texlive-base-2009/debian/texlive-pictures.links.dist
@@ -0,0 +1,4 @@
+usr/share/texmf-texlive/scripts/epspdf/epspdf usr/bin/epspdf
+usr/share/texmf-texlive/scripts/epspdf/epspdftk usr/bin/epspdftk
+usr/share/texmf-texlive/scripts/cachepic/cachepic.tlu usr/bin/cachepic
+usr/share/texmf-texlive/scripts/fig4latex/fig4latex usr/bin/fig4latex
--- texlive-base-2009.orig/debian/source.lintian-overrides
+++ texlive-base-2009/debian/source.lintian-overrides
@@ -0,0 +1,3 @@
+texlive-base source: maintainer-script-lacks-debhelper-token debian/common.functions.preinst
+texlive-base source: maintainer-script-lacks-debhelper-token debian/common.functions.postinst
+texlive-base source: maintainer-script-lacks-debhelper-token debian/common.functions.postrm
--- texlive-base-2009.orig/debian/texlive-latex-base.override
+++ texlive-base-2009/debian/texlive-latex-base.override
@@ -0,0 +1,4 @@
+texlive-latex-base: zero-byte-file-in-doc-directory
+texlive-latex-base: extra-license-file
+texlive-latex-base: script-not-executable
+texlive-latex-base: wrong-name-for-upstream-changelog
--- texlive-base-2009.orig/debian/README.source
+++ texlive-base-2009/debian/README.source
@@ -0,0 +1,18 @@
+
+README.source
+
+Packaging TeX Live for Debian is a huge task. Development is done in
+a very specific layout and source packages are generated from that.
+
+If you want to know how the *orig.tar.gz* and the *source* packages are 
+generated, please check out the Debian TeX Live packaging infrastructure at
+	http://svn.debian.org/wsvn/debian-tex/texlive2009/trunk/
+where you will find a README file explaining everything in detail. Or get it
+at
+	http://svn.debian.org/wsvn/debian-tex/texlive2009/trunk/README
+
+The source packages itself use a mixture of quilt and .diff.gz for the 
+modifications of the upstream source. If you want to change something it is
+best to use the quilt approach as documented in 
+	/usr/share/doc/quilt/README.source
+
--- texlive-base-2009.orig/debian/patches/update-booktabs
+++ texlive-base-2009/debian/patches/update-booktabs
@@ -0,0 +1,37 @@
+Update booktabs.sty to the version in CTAN 1.61803
+quasi trivial change
+---
+ texmf-dist/tex/latex/booktabs/booktabs.sty |    6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+Index: texlive-base-2007/texmf-dist/tex/latex/booktabs/booktabs.sty
+===================================================================
+--- texlive-base-2007.orig/texmf-dist/tex/latex/booktabs/booktabs.sty	2008-01-16 08:07:53.000000000 +0100
++++ texlive-base-2007/texmf-dist/tex/latex/booktabs/booktabs.sty	2008-01-16 08:08:20.000000000 +0100
+@@ -8,7 +8,7 @@
+ %% 
+ %% -----------------------------------------------------------------
+ %% Author:     Simon Fear
+-%% Maintainer:
++%% Maintainer: Danie Els (dnjels@sun.ac.za)
+ %% 
+ %% This file is part of the booktabs package for publication
+ %% quality tables for LaTeX
+@@ -32,7 +32,7 @@
+ %% -----------------------------------------------------------------
+ \NeedsTeXFormat{LaTeX2e}[1999/12/01]
+ \ProvidesPackage{booktabs}
+-    [2005/03/16 v1.6180 publication quality tables]
++    [2005/04/14 v1.61803 publication quality tables]
+ \newdimen\heavyrulewidth
+ \newdimen\lightrulewidth
+ \newdimen\cmidrulewidth
+@@ -69,7 +69,7 @@
+ \def\@BTfnslthree{\afterassignment\@BTfnslone\let\next= }
+ \def\toprule{\noalign{\ifnum0=`}\fi
+   \@aboverulesep=\abovetopsep
+-  \global\@belowrulesep=\aboverulesep %global cos for use in the next noalign
++  \global\@belowrulesep=\belowrulesep %global cos for use in the next noalign
+   \global\@thisruleclass=\@ne
+   \@ifnextchar[{\@BTrule}{\@BTrule[\heavyrulewidth]}}
+ \def\midrule{\noalign{\ifnum0=`}\fi
--- texlive-base-2009.orig/debian/patches/dek-comments
+++ texlive-base-2009/debian/patches/dek-comments
@@ -0,0 +1,41 @@
+Improve the comments in language.dat about english/language0 from DEK
+(DEK on tex-k)
+---
+ texmf/tex/generic/config/language.dat |    6 +++---
+ texmf/tex/generic/config/language.us  |    6 +++---
+ 2 files changed, 6 insertions(+), 6 deletions(-)
+
+Index: texlive-base-2007/texmf/tex/generic/config/language.dat
+===================================================================
+--- texlive-base-2007.orig/texmf/tex/generic/config/language.dat	2007-11-28 09:58:12.000000000 +0100
++++ texlive-base-2007/texmf/tex/generic/config/language.dat	2007-11-28 09:59:19.000000000 +0100
+@@ -20,9 +20,9 @@
+ % *PLEASE*, keep english as the default (first) here, and let it refer
+ % to hyphen.tex (not, e.g., ushyph.tex), and do not change the
+ % hyphen.tex file, or name some other file hyphen.tex.  hyphen.tex must
+-% remain the original file from Knuth, and it must be \language0.
+-% Otherwise DEK will not be happy when he retypesets the Art of Computer
+-% Programming and gets new hyphenation.
++% remain the original file from Knuth, and it must be \language0.  This
++% is one important aspect of ensuring that the original, frozen TeX
++% always produces the same line and page breaks.
+ % 
+ % The babel system allows you to easily change the active language for
+ % LaTeX. For more information, see the documentation in
+Index: texlive-base-2007/texmf/tex/generic/config/language.us
+===================================================================
+--- texlive-base-2007.orig/texmf/tex/generic/config/language.us	2007-11-28 09:58:12.000000000 +0100
++++ texlive-base-2007/texmf/tex/generic/config/language.us	2007-11-28 09:58:48.000000000 +0100
+@@ -20,9 +20,9 @@
+ % *PLEASE*, keep english as the default (first) here, and let it refer
+ % to hyphen.tex (not, e.g., ushyph.tex), and do not change the
+ % hyphen.tex file, or name some other file hyphen.tex.  hyphen.tex must
+-% remain the original file from Knuth, and it must be \language0.
+-% Otherwise DEK will not be happy when he retypesets the Art of Computer
+-% Programming and gets new hyphenation.
++% remain the original file from Knuth, and it must be \language0.  This
++% is one important aspect of ensuring that the original, frozen TeX
++% always produces the same line and page breaks.
+ % 
+ % The babel system allows you to easily change the active language for
+ % LaTeX. For more information, see the documentation in
--- texlive-base-2009.orig/debian/patches/fix-xyframe.tex.patch
+++ texlive-base-2009/debian/patches/fix-xyframe.tex.patch
@@ -0,0 +1,18 @@
+Fix typo in xyframe.tex, patch by Andrey Paramonov, see Debian #561784
+---
+ texmf-dist/tex/generic/xypic/xyframe.tex |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+Index: texlive-base-2009/texmf-dist/tex/generic/xypic/xyframe.tex
+===================================================================
+--- texlive-base-2009.orig/texmf-dist/tex/generic/xypic/xyframe.tex	2009-12-21 07:24:21.000000000 +0900
++++ texlive-base-2009/texmf-dist/tex/generic/xypic/xyframe.tex	2009-12-21 07:24:37.000000000 +0900
+@@ -518,7 +518,7 @@
+ \xydef@\UseCurveFrames@{%
+  \let\circled@x@@=\xycircleframe@x@
+  \let\ellipsed@x@@=\xyellipseframe@x@ }
+-\def\UseCurveFrames{\xywithoption{curve}{\UseCurveframes@}}%
++\def\UseCurveFrames{\xywithoption{curve}{\UseCurveFrames@}}%
+ \xydef@\UseFontFrames@{%
+  \let\circled@x@@=\circled@x@
+  \let\ellipsed@x@@=\ellipsed@x@ }
--- texlive-base-2009.orig/debian/patches/texdoc-viewer-use-see
+++ texlive-base-2009/debian/patches/texdoc-viewer-use-see
@@ -0,0 +1,21 @@
+---
+ texmf/texdoc/texdoc.cnf |    6 ++++++
+ 1 file changed, 6 insertions(+)
+
+Index: texlive-base-2009/texmf/texdoc/texdoc.cnf
+===================================================================
+--- texlive-base-2009.orig/texmf/texdoc/texdoc.cnf	2010-01-05 12:02:47.000000000 +0900
++++ texlive-base-2009/texmf/texdoc/texdoc.cnf	2010-01-05 12:03:00.000000000 +0900
+@@ -31,6 +31,12 @@
+ # viewer_pdf = xpdf		# works
+ # viewer_pdf = xpdf %s &	# works even better
+ 
++viewer_pdf = (see %s) &
++viewer_ps  = (see %s) &
++viewer_dvi = (see %s) &
++viewer_html = (see %s) &
++viewer_txt = (see %s) &
++
+ # If you want to enable support for zipped documentation (see comments in
+ # texdoc.tlu), you may want to adapt viewer_* so that it starts a subshell:
+ #
--- texlive-base-2009.orig/debian/patches/fix-txfonts-precapprox
+++ texlive-base-2009/debian/patches/fix-txfonts-precapprox
@@ -0,0 +1,24 @@
+fix-txfonts-precapprox
+The txfonts exchange precapprox and succapprox in comparison to the AMS fonts
+and to their own negated variants. This patch fixes that by exchanging the
+definitions for those two.
+Norbert Preining <preining@logic.at>
+---
+ texmf-dist/tex/latex/txfonts/txfonts.sty |    4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+Index: texlive-base-2007/texmf-dist/tex/latex/txfonts/txfonts.sty
+===================================================================
+--- texlive-base-2007.orig/texmf-dist/tex/latex/txfonts/txfonts.sty	2008-01-22 07:47:20.000000000 +0100
++++ texlive-base-2007/texmf-dist/tex/latex/txfonts/txfonts.sty	2008-01-22 07:47:34.000000000 +0100
+@@ -579,8 +579,8 @@
+ \re@DeclareMathSymbol{\thicksim}{\mathrel}{AMSb}{115}
+ \re@DeclareMathSymbol{\thickapprox}{\mathrel}{AMSb}{116}
+ \re@DeclareMathSymbol{\approxeq}{\mathrel}{AMSb}{117}
+-\re@DeclareMathSymbol{\succapprox}{\mathrel}{AMSb}{118}
+-\re@DeclareMathSymbol{\precapprox}{\mathrel}{AMSb}{119}
++\re@DeclareMathSymbol{\succapprox}{\mathrel}{AMSb}{119}
++\re@DeclareMathSymbol{\precapprox}{\mathrel}{AMSb}{118}
+ \re@DeclareMathSymbol{\curvearrowleft}{\mathrel}{AMSb}{120}
+ \re@DeclareMathSymbol{\curvearrowright}{\mathrel}{AMSb}{121}
+ \re@DeclareMathSymbol{\digamma}{\mathord}{AMSb}{122}
--- texlive-base-2009.orig/debian/patches/texdoc-support-zipped
+++ texlive-base-2009/debian/patches/texdoc-support-zipped
@@ -0,0 +1,17 @@
+---
+ texmf/scripts/texdoc/constants.tlu |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+Index: texlive-base-2009/texmf/scripts/texdoc/constants.tlu
+===================================================================
+--- texlive-base-2009.orig/texmf/scripts/texdoc/constants.tlu	2010-01-05 11:20:42.000000000 +0900
++++ texlive-base-2009/texmf/scripts/texdoc/constants.tlu	2010-01-05 11:21:00.000000000 +0900
+@@ -102,7 +102,7 @@
+ -- less testing than the rest of texdoc.
+ --
+ -- See also comments in texdoc.cnf about viewer settings.
+-support_zipped = false
++support_zipped = true
+ 
+ -- make C a proxy to the local environment
+ assert(next(C) == nil,
--- texlive-base-2009.orig/debian/patches/32_fpl_fixes
+++ texlive-base-2009/debian/patches/32_fpl_fixes
@@ -0,0 +1,36 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 32_fpl_fixes.dpatch
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: fix some file section
+
+@DPATCH@
+ texmf-dist/tpm/fpl.tpm |    8 ++++----
+ 1 files changed, 4 insertions(+), 4 deletions(-)
+
+Index: texlive-base-2007.dfsg.1/texmf-dist/tpm/fpl.tpm
+===================================================================
+--- texlive-base-2007.dfsg.1.orig/texmf-dist/tpm/fpl.tpm	2006-12-19 12:12:37.000000000 +0100
++++ texlive-base-2007.dfsg.1/texmf-dist/tpm/fpl.tpm	2007-01-22 14:06:11.000000000 +0100
+@@ -29,10 +29,6 @@
+ texmf-dist/fonts/afm/public/fpl/fplbj8a.afm
+ texmf-dist/fonts/afm/public/fpl/fplrc8a.afm
+ texmf-dist/fonts/afm/public/fpl/fplrij8a.afm
+-texmf-dist/fonts/afm/public/fpl/pplb9d-kern.afm
+-texmf-dist/fonts/afm/public/fpl/pplbi9d-kern.afm
+-texmf-dist/fonts/afm/public/fpl/pplrc9d-kern.afm
+-texmf-dist/fonts/afm/public/fpl/pplri9d-kern.afm
+ texmf-dist/fonts/type1/public/fpl/fplbij8a.pfb
+ texmf-dist/fonts/type1/public/fpl/fplbij8a.pfm
+ texmf-dist/fonts/type1/public/fpl/fplbj8a.pfb
+@@ -44,6 +40,10 @@
+ texmf-dist/tpm/fpl.tpm
+     </TPM:RunFiles>
+     <TPM:SourceFiles size="237722">
++texmf-dist/fonts/afm/public/fpl/pplb9d-kern.afm
++texmf-dist/fonts/afm/public/fpl/pplbi9d-kern.afm
++texmf-dist/fonts/afm/public/fpl/pplrc9d-kern.afm
++texmf-dist/fonts/afm/public/fpl/pplri9d-kern.afm
+ texmf-dist/source/fonts/fpl/Makefile
+ texmf-dist/source/fonts/fpl/fpl/AddException
+ texmf-dist/source/fonts/fpl/fpl/AddGPL
--- texlive-base-2009.orig/debian/patches/10_fmtutil_fixes
+++ texlive-base-2009/debian/patches/10_fmtutil_fixes
@@ -0,0 +1,95 @@
+# 10_fmtutil_fixes
+#
+# in texlive-bin/debian/patches/13_fmtutil_fixes the following calls
+# to BuildFormat have been removed:
+# - BuildFormat/metafont	from bin-metafont.tpm
+# - BuildFormat/tex		from bin-tex.tpm
+# - BuildFormat/etex		from bin-etex.tpm
+# - BuildFormat/pdftex		from bin-pdftex.tpm
+#
+# This patch does:
+# - add the *fixed* versions of these format.XXX.cnf files:
+#   . add latex to format.pdflatex.cnf
+#   . add pdfetex to format.etex.cnf
+#   . remove those two from format.pdftex.cnf
+#   . unchanged format.tex.cnf
+# - add calls to BuildFormat/tex,etex,pdftex to plain.tpm which contains
+#   all the ini files
+# - add format.metafont.cnf and the BuildFormat/metafont to metafont.tpm
+
+ texmf-dist/tpm/metafont.tpm       |    3 +++
+ texmf-dist/tpm/plain.tpm          |    5 +++++
+ texmf/fmtutil/format.etex.cnf     |    2 ++
+ texmf/fmtutil/format.latex.cnf    |    1 +
+ texmf/fmtutil/format.metafont.cnf |    1 +
+ texmf/fmtutil/format.pdftex.cnf   |    1 +
+ texmf/fmtutil/format.tex.cnf      |    6 ++++++
+ 7 files changed, 19 insertions(+)
+
+Index: texlive-base-2007/texmf/fmtutil/format.latex.cnf
+===================================================================
+--- texlive-base-2007.orig/texmf/fmtutil/format.latex.cnf	2007-01-15 17:24:50.000000000 +0100
++++ texlive-base-2007/texmf/fmtutil/format.latex.cnf	2007-05-21 09:46:10.000000000 +0200
+@@ -1 +1,2 @@
+ latex           pdftex         language.dat    -translate-file=cp227.tcx *latex.ini
++pdflatex	pdftex		language.dat	-translate-file=cp227.tcx *pdflatex.ini
+Index: texlive-base-2007/texmf-dist/tpm/metafont.tpm
+===================================================================
+--- texlive-base-2007.orig/texmf-dist/tpm/metafont.tpm	2007-01-23 12:46:07.000000000 +0100
++++ texlive-base-2007/texmf-dist/tpm/metafont.tpm	2007-05-21 09:46:10.000000000 +0200
+@@ -33,6 +33,9 @@
+ texmf-dist/metafont/misc/ztest.mf
+ texmf-dist/tpm/metafont.tpm
+     </TPM:RunFiles>
++    <TPM:Installation>
++      <TPM:Execute function="BuildFormat" parameter="metafont"/>
++    </TPM:Installation>
+     <TPM:Provides>Package/metafont</TPM:Provides>
+   </rdf:Description>
+ </rdf:RDF>
+Index: texlive-base-2007/texmf/fmtutil/format.metafont.cnf
+===================================================================
+--- /dev/null	1970-01-01 00:00:00.000000000 +0000
++++ texlive-base-2007/texmf/fmtutil/format.metafont.cnf	2007-05-21 09:46:10.000000000 +0200
+@@ -0,0 +1 @@
++mf		mf-nowin	-		-translate-file=cp227.tcx mf.ini
+Index: texlive-base-2007/texmf/fmtutil/format.etex.cnf
+===================================================================
+--- /dev/null	1970-01-01 00:00:00.000000000 +0000
++++ texlive-base-2007/texmf/fmtutil/format.etex.cnf	2007-05-21 13:00:03.000000000 +0200
+@@ -0,0 +1,2 @@
++etex            pdftex         language.def    -translate-file=cp227.tcx *etex.ini
++pdfetex         pdftex         language.def    -translate-file=cp227.tcx *pdfetex.ini
+Index: texlive-base-2007/texmf/fmtutil/format.pdftex.cnf
+===================================================================
+--- /dev/null	1970-01-01 00:00:00.000000000 +0000
++++ texlive-base-2007/texmf/fmtutil/format.pdftex.cnf	2007-05-21 13:00:39.000000000 +0200
+@@ -0,0 +1 @@
++pdftex          pdftex         -       -translate-file=cp227.tcx *pdftex.ini
+Index: texlive-base-2007/texmf/fmtutil/format.tex.cnf
+===================================================================
+--- /dev/null	1970-01-01 00:00:00.000000000 +0000
++++ texlive-base-2007/texmf/fmtutil/format.tex.cnf	2007-05-21 09:47:30.000000000 +0200
+@@ -0,0 +1,6 @@
++#
++# Change "tex.ini -> bplain.ini" and "- -> language.dat"
++# if you want babel support in tex. Add -translate-file=cp227.tcx before
++# tex.ini if you want to make all characters directly "printable" for
++# any \write (instead of ^^xy).
++tex             tex             -               tex.ini
+Index: texlive-base-2007/texmf-dist/tpm/plain.tpm
+===================================================================
+--- texlive-base-2007.orig/texmf-dist/tpm/plain.tpm	2007-05-21 09:48:25.000000000 +0200
++++ texlive-base-2007/texmf-dist/tpm/plain.tpm	2007-05-21 09:49:36.000000000 +0200
+@@ -44,6 +44,11 @@
+ texmf-dist/tex/plain/config/xetex.ini
+ texmf-dist/tpm/plain.tpm
+     </TPM:RunFiles>
++    <TPM:Installation>
++      <TPM:Execute function="BuildFormat" parameter="tex"/>
++      <TPM:Execute function="BuildFormat" parameter="etex"/>
++      <TPM:Execute function="BuildFormat" parameter="pdftex"/>
++    </TPM:Installation>
+     <TPM:Provides>Package/plain</TPM:Provides>
+   </rdf:Description>
+ </rdf:RDF>
--- texlive-base-2009.orig/debian/patches/fix-bashism
+++ texlive-base-2009/debian/patches/fix-bashism
@@ -0,0 +1,29 @@
+Description: Remove bashism
+Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=581139
+Forwarded: https://sourceforge.net/tracker/?func=detail&aid=3002854&group_id=224188&atid=1060658
+Author: أحمد المحمودي (Ahmed El-Mahmoudy) <aelmahmoudy@sabily.org>
+--- a/texmf-dist/scripts/pgfplots/matlab2pgfplots.sh
++++ b/texmf-dist/scripts/pgfplots/matlab2pgfplots.sh
+@@ -6,15 +6,14 @@
+ OUTFILE=""
+ MAXPOINTS=100000
+ 
+-function echoHelp()
++echoHelp()
+ {
+-	echo -e \
+-		"matlab2pgfplots.sh [--maxpoints N]  [--styles [0|1] ]   [ --axes [0|1] ]  [ -o OUTFILE ]  INFILE ...\n"\
+-		"converts Matlab figures (.fig-files) to pgfplots-files (.pgf-files).\n"\
+-		"This script is a front-end for matlab2pgfplots.m (which needs to be in matlab's search path)\n"\
+-		"type\n"\
+-		" >> help matlab2pgfplots\n"\
+-		"at your matlab prompt for more information.\n"
++	echo "matlab2pgfplots.sh [--maxpoints N]  [--styles [0|1] ]   [ --axes [0|1] ]  [ -o OUTFILE ]  INFILE ..."
++	echo "converts Matlab figures (.fig-files) to pgfplots-files (.pgf-files)."
++	echo "This script is a front-end for matlab2pgfplots.m (which needs to be in matlab's search path)"
++	echo "type"
++	echo " >> help matlab2pgfplots"
++	echo "at your matlab prompt for more information."
+ 	exit 0
+ }
+ 
--- texlive-base-2009.orig/debian/patches/upstream-pdftex.def-fixes
+++ texlive-base-2009/debian/patches/upstream-pdftex.def-fixes
@@ -0,0 +1,116 @@
+---
+ texmf-dist/tex/latex/pdftex-def/pdftex.def |   37 +++++++++++++++++++++++++++--
+ 1 file changed, 35 insertions(+), 2 deletions(-)
+
+Index: texlive-base-2009/texmf-dist/tex/latex/pdftex-def/pdftex.def
+===================================================================
+--- texlive-base-2009.orig/texmf-dist/tex/latex/pdftex-def/pdftex.def	2009-08-27 08:59:45.000000000 +0900
++++ texlive-base-2009/texmf-dist/tex/latex/pdftex-def/pdftex.def	2010-03-11 23:10:41.000000000 +0900
+@@ -1,4 +1,4 @@
+-\ProvidesFile{pdftex.def}[2009/08/25 v0.04m Graphics/color for pdfTeX]
++\ProvidesFile{pdftex.def}[2010/03/12 v0.04p Graphics/color for pdfTeX]
+ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ %%
+ %% LaTeX Colour and Graphics support for PDFTeX
+@@ -6,7 +6,7 @@
+ %% License
+ %% =======
+ %%
+-%% Copyright (C) 2000-2009 David Carlisle, Sebastian Rahtz, Hans Hagen,
++%% Copyright (C) 2000-2010 David Carlisle, Sebastian Rahtz, Hans Hagen,
+ %% Heiko Oberdiek and Martin Schr\"oder
+ %%
+ %% This work may be distributed and/or modified under the
+@@ -187,6 +187,15 @@
+ %    pdftex.def and ConTeXt's support files.
+ %  * ConTeXt's support files have now the extension `.mkii' instead
+ %    of `.tex'.
++% 2010/02/14 v0.04n (HO)
++%  * \GPT@catcodes extended for xmlTeX (pdftex.def loads
++%    supp-pdf.mkii at begin document where xmlTeX's catcodes
++%    are already active).
++% 2010/03/11 v0.04o (HO)
++%  * Ensure that \undefined is undefined during loading of
++%    ConTeXt files.
++% 2010/03/12 v0.04p (HO)
++%  * \undefined is also undefined during conversion of MPS.
+ %
+ % Prefix of internal commands for this file `pdftex.def':
+ %   \GPT@ (Graphics bundle PdfTex driver)
+@@ -201,6 +210,14 @@
+ \catcode64 11 % @
+ \def\GPT@catcodes#1{%
+   \expandafter\edef\csname GPT@restore@#1\endcsname{%
++    \let\noexpand\undefined
++        \expandafter\noexpand\csname GPTorg@#1@undefined\endcsname
++    \let\expandafter\noexpand\csname GPTorg@#1@undefined\endcsname
++        \noexpand\@undefined
++    \endlinechar \the\endlinechar
++    \catcode9 \the\catcode9 % tab
++    \catcode13 \the\catcode13 % ^^M
++    \catcode32 \the\catcode32 % space
+     \catcode33 \the\catcode33 % !
+     \catcode34 \the\catcode34 % "
+     \catcode35 \the\catcode35 % #
+@@ -224,15 +241,22 @@
+     \catcode63 \the\catcode63 % ?
+     \catcode64 \the\catcode64 % @
+     \catcode91 \the\catcode91 % [
++    \catcode92 \the\catcode92 % \
+     \catcode93 \the\catcode93 % ]
+     \catcode94 \the\catcode94 % ^
+     \catcode95 \the\catcode95 % _
+     \catcode96 \the\catcode96 % `
++    \catcode123 \the\catcode123 % {
+     \catcode124 \the\catcode124 % |
++    \catcode125 \the\catcode125 % }
+     \catcode126 \the\catcode126 % ~
+   }%
++  \endlinechar 13 %
++  \catcode9 10 % tab
++  \catcode13 5 % ^^M (end of line)
+   \catcode64 11 %
+   \catcode61 12 % =
++  \catcode32 10 % space
+   \catcode33 12 % !
+   \catcode34 12 % "
+   \catcode35 6 % #
+@@ -256,12 +280,17 @@
+   \catcode63 12 % ?
+   \catcode64 11 % @
+   \catcode91 12 % [
++  \catcode92 0 % \
+   \catcode93 12 % ]
+   \catcode94 7 % ^
+   \catcode95 8 % _
+   \catcode96 12 % `
++  \catcode123 1 % {
+   \catcode124 12 % |
++  \catcode125 2 % }
+   \catcode126 13 % ~
++  \expandafter\let\csname GPTorg@#1@undefined\endcsname\undefined
++  \let\undefined\@undefined
+ }
+ \GPT@catcodes{}
+ 
+@@ -1125,7 +1154,9 @@
+           \hskip-\Gin@vllx bp\relax
+         \fi
+       \fi
++      \GPT@catcodes{mps}%
+       \convertMPtoPDF{#1}{1}{1}%
++      \GPT@restore@mps
+       \ifGPT@viewport
+         \ifdim\Gin@vlly\p@=\z@
+         \else
+@@ -1167,8 +1198,10 @@
+       \ifx\Gin@scalex\@tempa\let\Gin@scalex\Gin@scaley\fi
+     \fi
+     \hbox{%
++      \GPT@catcodes{pdf}%
+       \convertPDFtoPDF{#1}{\Gin@scalex}{\Gin@scaley} {0bp} {0bp}%
+       {\Gin@req@width}{\Gin@req@height}%
++      \GPT@restore@pdf
+     }%
+   }%
+ \fi
--- texlive-base-2009.orig/debian/patches/upstream-xetex.def-fixes
+++ texlive-base-2009/debian/patches/upstream-xetex.def-fixes
@@ -0,0 +1,75 @@
+---
+ texmf-dist/tex/xelatex/xetex-def/xetex.def |   37 +++++++++++++++++++++++++----
+ 1 file changed, 33 insertions(+), 4 deletions(-)
+
+Index: texlive-base-2009/texmf-dist/tex/xelatex/xetex-def/xetex.def
+===================================================================
+--- texlive-base-2009.orig/texmf-dist/tex/xelatex/xetex-def/xetex.def	2010-01-05 11:32:50.000000000 +0900
++++ texlive-base-2009/texmf-dist/tex/xelatex/xetex-def/xetex.def	2010-01-05 11:32:55.000000000 +0900
+@@ -2,7 +2,7 @@
+ %% This is file `xetex.def',
+ %% based upon other drivers for LaTeX color and graphics support.
+ %%
+-%%  Copyright 2004, 2005, 2006, 2009  Ross Moore <ross@maths.mq.edu.au>
++%%  Copyright 2004, 2005, 2006, 2007, 2009  Ross Moore <ross@maths.mq.edu.au>
+ %%                        modified by Jonathan Kew <jonathan_kew@sil.org>
+ %%
+ %% This file is *not yet* part of the Standard LaTeX `Graphics Bundle'.
+@@ -13,8 +13,13 @@
+ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ %%  Version History
+ %%
++%%  2009/11/21  [KB] Version v0.94  merge the two 0.93's.
++%%
+ %%  2009/10/28  [RRM] Version v0.93  fix big-point incompatibility;
+ %%
++%%  2007/10/25  [JK] Version v0.93  added EPS support from dvipdfmx.def
++%%              (for use with xdvipdfmx, default driver in xetex 0.997)
++%%
+ %%  2006/08/10  [JK] Version v0.92  correct type-check in \G@measure@QTm;
+ %%              remove \G@PDF@ext, apply \lowercase instead;
+ %%              make \XeTeXquote have catcode 12 rather than 11;
+@@ -58,7 +63,7 @@
+ %%
+ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ \ProvidesFile{xetex.def}
+-        [2009/10/28 v0.93 LaTeX color/graphics driver for XeTeX (RRM, mod. JK)]
++        [2009/11/22 v0.94 LaTeX color/graphics driver for XeTeX (RRM/JK)]
+ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ 
+ % make sure we can use " with correct catcode
+@@ -422,8 +427,32 @@
+ % ... though this default rule will try QuickTime anyway ...
+ \@namedef{Gin@rule@*}#1{{QTm}{QTm}{#1}}
+ 
+-% ... and add it's extension here
+-\def\Gin@extensions{.pdf,.png,.jpg,.bmp,.pict,.tif,.psd,.mac,.sga,.tga,.gif}
++% ... and add its extension here
++\def\Gin@extensions{.pdf,.eps,.ps,%
++                    .png,.jpg,.bmp,.pict,.tif,.psd,.mac,.sga,.tga,.gif}
++
++% xdvipdfmx is now the default driver, and can support EPS images,
++% so we borrow code for this from dvipdfmx.def (and add the extensions above)
++\def\Ginclude@eps#1{%
++ \message{<#1>}%
++  \bgroup
++  \def\@tempa{!}%
++  \dimen@\Gin@req@width
++  \dimen@ii.1bp%
++  \divide\dimen@\dimen@ii
++  \@tempdima\Gin@req@height
++  \divide\@tempdima\dimen@ii
++    \special{PSfile="#1"\space
++      llx=\Gin@llx\space
++      lly=\Gin@lly\space
++      urx=\Gin@urx\space
++      ury=\Gin@ury\space
++      \ifx\Gin@scalex\@tempa\else rwi=\number\dimen@\space\fi
++      \ifx\Gin@scaley\@tempa\else rhi=\number\@tempdima\space\fi
++      \ifGin@clip clip\fi}%
++  \egroup}
++\@namedef{Gin@rule@.ps}#1{{eps}{.ps}{#1}}
++\@namedef{Gin@rule@.eps}#1{{eps}{.eps}{#1}}
+ 
+ %
+ % Rotation & Scaling
--- texlive-base-2009.orig/debian/patches/koma-script-usekomafont-fix
+++ texlive-base-2009/debian/patches/koma-script-usekomafont-fix
@@ -0,0 +1,74 @@
+koma-script-usekomafont-fix
+
+Merge upstream change svn r288 to fix the use of \usekomafont
+---
+ texmf-dist/tex/latex/koma-script/scrartcl.cls |    4 +++-
+ texmf-dist/tex/latex/koma-script/scrbook.cls  |    4 +++-
+ texmf-dist/tex/latex/koma-script/scrlttr2.cls |    4 +++-
+ texmf-dist/tex/latex/koma-script/scrreprt.cls |    4 +++-
+ 4 files changed, 12 insertions(+), 4 deletions(-)
+
+Index: texlive-base-2007/texmf-dist/tex/latex/koma-script/scrartcl.cls
+===================================================================
+--- texlive-base-2007.orig/texmf-dist/tex/latex/koma-script/scrartcl.cls	2007-05-03 11:32:42.000000000 +0200
++++ texlive-base-2007/texmf-dist/tex/latex/koma-script/scrartcl.cls	2007-05-03 11:33:21.000000000 +0200
+@@ -718,8 +718,10 @@
+         `#1' that is an alias of element `\csname
+         scr@fnt@instead@#1\endcsname'\MessageBreak
+       }%
++      \expandafter\expandafter\expandafter\usekomafont
++      \expandafter\expandafter\expandafter{%
++        \csname scr@fnt@instead@#1\endcsname}%
+     }%
+-    \@nameuse{scr@fnt@instead@#1}%
+   }{%
+     \@nameuse{scr@fnt@#1}%
+   }%
+Index: texlive-base-2007/texmf-dist/tex/latex/koma-script/scrbook.cls
+===================================================================
+--- texlive-base-2007.orig/texmf-dist/tex/latex/koma-script/scrbook.cls	2007-05-03 11:32:49.000000000 +0200
++++ texlive-base-2007/texmf-dist/tex/latex/koma-script/scrbook.cls	2007-05-03 11:33:21.000000000 +0200
+@@ -761,8 +761,10 @@
+         `#1' that is an alias of element `\csname
+         scr@fnt@instead@#1\endcsname'\MessageBreak
+       }%
++      \expandafter\expandafter\expandafter\usekomafont
++      \expandafter\expandafter\expandafter{%
++        \csname scr@fnt@instead@#1\endcsname}%
+     }%
+-    \@nameuse{scr@fnt@instead@#1}%
+   }{%
+     \@nameuse{scr@fnt@#1}%
+   }%
+Index: texlive-base-2007/texmf-dist/tex/latex/koma-script/scrlttr2.cls
+===================================================================
+--- texlive-base-2007.orig/texmf-dist/tex/latex/koma-script/scrlttr2.cls	2007-05-03 11:32:54.000000000 +0200
++++ texlive-base-2007/texmf-dist/tex/latex/koma-script/scrlttr2.cls	2007-05-03 11:33:21.000000000 +0200
+@@ -692,8 +692,10 @@
+         `#1' that is an alias of element `\csname
+         scr@fnt@instead@#1\endcsname'\MessageBreak
+       }%
++      \expandafter\expandafter\expandafter\usekomafont
++      \expandafter\expandafter\expandafter{%
++        \csname scr@fnt@instead@#1\endcsname}%
+     }%
+-    \@nameuse{scr@fnt@instead@#1}%
+   }{%
+     \@nameuse{scr@fnt@#1}%
+   }%
+Index: texlive-base-2007/texmf-dist/tex/latex/koma-script/scrreprt.cls
+===================================================================
+--- texlive-base-2007.orig/texmf-dist/tex/latex/koma-script/scrreprt.cls	2007-05-03 11:32:58.000000000 +0200
++++ texlive-base-2007/texmf-dist/tex/latex/koma-script/scrreprt.cls	2007-05-03 11:33:21.000000000 +0200
+@@ -755,8 +755,10 @@
+         `#1' that is an alias of element `\csname
+         scr@fnt@instead@#1\endcsname'\MessageBreak
+       }%
++      \expandafter\expandafter\expandafter\usekomafont
++      \expandafter\expandafter\expandafter{%
++        \csname scr@fnt@instead@#1\endcsname}%
+     }%
+-    \@nameuse{scr@fnt@instead@#1}%
+   }{%
+     \@nameuse{scr@fnt@#1}%
+   }%
--- texlive-base-2009.orig/debian/patches/texdoc-update
+++ texlive-base-2009/debian/patches/texdoc-update
@@ -0,0 +1,4345 @@
+---
+ texmf/doc/man/man1/texdoc.1        |   25 
+ texmf/doc/texdoc/News              |  113 +++
+ texmf/doc/texdoc/texdoc.tex        |  756 ++++++++++++-------------
+ texmf/scripts/texdoc/alias.tlu     |   95 +++
+ texmf/scripts/texdoc/config.tlu    |  533 ++++++++++++++++++
+ texmf/scripts/texdoc/constants.tlu |  115 +++
+ texmf/scripts/texdoc/functions.tlu |  102 +++
+ texmf/scripts/texdoc/main.tlu      |   37 +
+ texmf/scripts/texdoc/score.tlu     |  266 ++++++++
+ texmf/scripts/texdoc/search.tlu    |  369 ++++++++++++
+ texmf/scripts/texdoc/texdoc.tlu    | 1094 +------------------------------------
+ texmf/scripts/texdoc/view.tlu      |  176 +++++
+ texmf/texdoc/texdoc.cnf            |  160 ++---
+ tlpkg/texlive.tlpdb                |   11 
+ 14 files changed, 2319 insertions(+), 1533 deletions(-)
+
+Index: texlive-base-2009/texmf/doc/man/man1/texdoc.1
+===================================================================
+--- texlive-base-2009.orig/texmf/doc/man/man1/texdoc.1	2009-10-08 21:57:15.000000000 +0900
++++ texlive-base-2009/texmf/doc/man/man1/texdoc.1	2010-01-03 11:23:46.000000000 +0900
+@@ -1,7 +1,7 @@
+ .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.36.
+-.TH TEXDOC "1" "October 2009" "texdoc 0.47" "User Commands"
++.TH TEXDOC "1" "December 2009" "texdoc 0.61" "User Commands"
+ .SH NAME
+-texdoc \- finding & viewing TeX documentation
++texdoc \- find & view documentation in TeX Live
+ .SH SYNOPSIS
+ .B texdoc
+ [\fIOPTIONS\fR]... [\fINAME\fR]...
+@@ -13,9 +13,6 @@
+ \fB\-f\fR, \fB\-\-files\fR
+ Print the name of the config files being used.
+ .TP
+-\fB\-e\fR, \fB\-\-extensions\fR=\fIL\fR
+-Require file extensions to be in the list L.
+-.TP
+ \fB\-w\fR, \fB\-\-view\fR
+ Use view mode: start a viewer.
+ .TP
+@@ -23,13 +20,16 @@
+ Use mixed mode (view or list).
+ .TP
+ \fB\-l\fR, \fB\-\-list\fR
+-Use list mode: don't start a viewer.
++Use list mode: show a list of results.
+ .TP
+-\fB\-s\fR, \fB\-\-search\fR
+-Search for name as a substring.
++\fB\-s\fR, \fB\-\-showall\fR
++Use showall mode: show also "bad" results.
+ .TP
+ \fB\-r\fR, \fB\-\-regex\fR
+-Search for name as a lua regex.
++Use regex mode. (Deprecated.)
++.TP
++\fB\-e\fR, \fB\-\-extensions\fR=\fIL\fR
++Set ext_list=L. (Deprecated.)
+ .TP
+ \fB\-a\fR, \fB\-\-alias\fR
+ Use the alias table.
+@@ -46,8 +46,11 @@
+ \fB\-v\fR, \fB\-\-verbosity\fR=\fIN\fR
+ Set verbosity level to N.
+ .TP
+-\fB\-d\fR, \fB\-\-debug\fR
+-Set verbosity level to maximum.
++\fB\-d\fR, \fB\-\-debug\fR[=\fIlist\fR]
++Activate debug for selected items (default all).
++.TP
++\fB\-M\fR, \fB\-\-machine\fR
++Use a more machine\-friendly output format.
+ .SS "Environment:"
+ .IP
+ PAGER, BROWSER, PDFVIEWER, PSVIEWER, DVIVIEWER.
+Index: texlive-base-2009/texmf/doc/texdoc/News
+===================================================================
+--- /dev/null	1970-01-01 00:00:00.000000000 +0000
++++ texlive-base-2009/texmf/doc/texdoc/News	2010-01-03 11:23:27.000000000 +0900
+@@ -0,0 +1,113 @@
++Version 0.61
++------------
++
++Detect desktop environments (KDE4, KDE, GNOME, XFCE) for viewer selection.
++
++Version 0.60
++------------
++
++Changed the search/alias/score logic. See section 2 of the manual for details,
++but here is a primer:
++- alias now /adds/ patterns to be search, it is no more a substitution
++- new scoring system, partially confugurable, with improved heuristics
++
++The beginning of the manual has been completely rewritten.
++
++Bug have been fixed as usual, and probably some others introduced...
++
++Version 0.50
++------------
++
++- New option for machine-readable output.
++- Bugfixes (esp. for zipped file support (Unix only)).
++- Hopefully more sensible default viewer selection.
++
++Version 0.49
++------------
++
++Major code rewrite. No big user-visible change, except a few bugs fixed and new
++debugging levels.
++
++Version 0.47 (TeX Live 2009)
++----------------------------
++
++Improve support for zipped documentation and comments about it in the default
++configuration file. (Thank Norbert Preining for his help.)
++
++Version 0.46
++------------
++
++Avoid using lfs.currentdir() and lfs.chdir() which are broken on Solaris 10 
++in LuaTeX 0.40
++
++Version 0.45
++------------
++
++Fix possible line ending problems on windows with certain versions of LuaTeX
++
++Version 0.44
++------------
++
++- fixing viewer problems on Windows
++- expanding the list of default viewers on generic Unix
++
++
++Version 0.43
++------------
++
++Various fixes, aliases updates as usual.
++
++Version 0.42
++------------
++
++Improvements to default txt viewer on Windows (thanks to Phil Taylor).
++
++New debugging levels; new names for debugging options.
++
++New configuration file allowing to run the development version more easily.
++
++Changes to the way files are displayed. Results are numbered even when -I is
++used.
++
++Documentation update.  Alias additions and fixes as usual. Various bugfixes.
++
++License switched to GPL.
++
++Version 0.4 (TeX Live 2008)
++---------------------------
++
++Use our own configuration files, not texmf.cnf. Rework the way viewers are
++handled, and add a few configuration options.
++
++Add an 'alias' feature. Filter results in a more restrictive way. Add new search
++modes 'mixed' and 'regex'. Turn result lists into menus.
++
++Add a user manual in pdf.
++
++Development passed from Frank Küster to Manuel Pégourié-Gonnard.
++
++Version 0.3
++-----------
++
++Various changes including:
++- added changelog
++- better OS detection for default viewer settings
++- removed some debugging code
++- -s now works in dirs without ls-R, too
++
++Version 0.2
++-----------
++
++Various changes including:
++- implemented reading of configuration from texmf.cnf
++- fixed "-s" option
++
++Version 0.1
++-----------
++
++Initial public release of the texlua version by Frank Küster.
++
++Earlier versions
++----------------
++
++Shell script by Thomas Esser maintained as part of teTeX.
+Index: texlive-base-2009/texmf/doc/texdoc/texdoc.tex
+===================================================================
+--- texlive-base-2009.orig/texmf/doc/texdoc/texdoc.tex	2009-10-12 07:55:36.000000000 +0900
++++ texlive-base-2009/texmf/doc/texdoc/texdoc.tex	2010-01-03 11:21:01.000000000 +0900
+@@ -2,20 +2,24 @@
+ % written by Manuel Pégourié-Gonnard in 2008, 2009
+ % distributed under the terms of GPL v3 or later
+ 
++%!TEX encoding=latin1
++%!TEX program=pdflatex
++
++\setlength\overfullrule{5pt}
++
+ \documentclass[a4paper, oneside]{scrartcl}
+ \usepackage[latin1]{inputenc}
+ \usepackage[T1]{fontenc}
+ \usepackage{textcomp}
+ \usepackage{fixltx2e}
+ 
+-\usepackage{lmodern} \edef\ttmodern{\ttdefault}
+-\usepackage[osf]{mathpazo}
+-\renewcommand\sfdefault{uop} % optima
+-\renewcommand\ttdefault{lmvtt} % lm tt proportional
++\usepackage{tgbonum}
++\usepackage{tgheros}
++\usepackage[scaled=1.10]{inconsolata}
+ \renewcommand\familydefault{\sfdefault} \normalfont
+ \newcommand\otherfamily{\rmfamily}
+-\newcommand\mylangle{\textlangle}
+-\newcommand\myrangle{\textrangle}
++\newcommand\mylangle{$\langle$}
++\newcommand\myrangle{$\rangle$}
+ 
+ \usepackage{xargs, xspace, fancyvrb, xcolor, pifont, calc, ifmtarg, mathstyle}
+ 
+@@ -23,7 +27,8 @@
+ \titlelabel{\makebox[0pt][r]{\thetitle\kern1pc}}
+ \titleformat{\subsubsection}[runin]{\otherfamily\itshape}{%
+   \makebox[0pt][r]{\thetitle\kern1pc}}{%
+-  0pt}{}[\maybedot\space --- ]
++  0pt}{}[\maybedot\space --- \kern0pt]
++\titlespacing{\subsubsection}{0pt}{0.5\baselineskip}{0pt}
+ 
+ \usepackage{enumitem}
+ \newlength\lssep \setlength\lssep{\smallskipamount}
+@@ -34,7 +39,7 @@
+ \usepackage[bookmarks=true]{hyperref}
+ \hypersetup{%
+   bookmarksnumbered=true, bookmarksopen=true, bookmarksopenlevel=2,
+-  pdftitle=texdoc: finding and viewing TeX documentation,
++  pdftitle=texdoc: find and view documentation in TeX Live,
+   pdfauthor=Manuel Pégourié-Gonnard,
+   pdfsubject=texdoc's user manual,
+   pdfkeywords={texdoc, TeX Live, manual}}
+@@ -62,8 +67,6 @@
+ \definecolor{input}{rgb}{1.0,0,0}
+ \newcommand\inputcolorname{red}
+ \hypersetup{colorlinks=true, linkcolor=links, urlcolor=links, citecolor=links}
+-\newcommand\textpa[1]{% % noms d'extensions (package)
+-  {\normalfont\color{special}\otherfamily #1}}
+ \newcommand\cofont{% % code
+   \color{code}\normalfont\ttfamily}
+ \newcommand\textco[1]{{\cofont#1}}
+@@ -78,7 +81,7 @@
+ \newcommand\file{\nolinkurl}
+ 
+ % take care of nbsp
+-\catcode`\ 10\relax
++\catcode`\ 10\relax
+ 
+ \newcommand\meta[1]{% % variantes à remplacer
+   {\color{special}\mylangle\textme{#1}\myrangle}}
+@@ -138,296 +141,286 @@
+   }{%
+   \endcommandes}
+ 
++\makeatletter
+ \newenvironment{htcode}{% % code en hors-texte
+   \SaveVerbatim[samepage, gobble=2]{verbmat}%
+   }{%
+   \endSaveVerbatim
+   \par\medskip\noindent\hspace*{\parindent}%
+   \BUseVerbatim{verbmat}%
+-  \par\medskip}
++  \par\medskip\@endpetrue}
++\makeatother
+ \DefineShortVerb{\©}
+ 
+ \setkomafont{title}{}
+ \setkomafont{subtitle}{\Large}
+ \deffootnote[1.5em]{1.5em}{1em}{\textsuperscript{\thefootnotemark}\thinspace}
+ 
+-\newcommand\texdoc{\textpa{texdoc}\xspace}
++\newcommand\texdoc{texdoc\xspace}
++\newcommand\tdml{\href{mailto:texdoc@tug.org}{texdoc mailing list}\xspace}
+ 
+ \title{\texdoc}
+-\subtitle{Finding \& viewing \TeX documentation
+-  }
++\subtitle{Find \& view documentation in \TeX\ Live}
+ \author{\url{http://tug.org/texdoc/}\\
+   Manuel Pégourié-Gonnard}
+-\date{v0.47 2009-10-12}
++\date{v0.60 2009-11-24}
+ 
+ \begin{document}
+ \VerbatimFootnotes
+ 
+ \maketitle
+ 
+-\section{Basic Usage, Modes}\label{s-basics}
++\section{Quick guide}
+ 
+-\begin{cmdsubsec}{Normal (view) mode}{ss-view}
+-  texdoc «name»
+-\end{cmdsubsec}
+-
+-The simplest way to use \texdoc is just to type\footnote{In a command line.  If
+-  you don't know how to open one, look for Start$\to$Execute and type ©cmd© on
+-  Windows, or use the ``terminal'' icon on Mac OS X.  If you are using another
+-  flavour of Unix, you probably know what to do.} ©texdoc© followed by the
+-name of the package whose documentation you want to read.  It usually finds
+-the documentation for you and opens it in the appropriate reader.  That's it:
+-easy and usually fast.  The rest of this manual describes what to do if
+-this doesn't work exactly as you like and you want to customise things, and
+-how to do more extensive searchs.
+-
+-Before the description of \texdoc's different modes, just a word words about
+-the typographic conventions in this manual.  Things like ©«name»© in the above
+-title mean that they should be replaced by what you actually want.  For
+-example, if you want to read \package{hyperref}'s manual, type
+-©texdoc hyperref©.  Sometimes there will be complete examples like this:
+-
+-\begin{htcode}
+-  þ texdoc -s babelbib þ
+-  1 /usr/local/texlive/2008/texmf-dist/doc/latex/babelbib/babelbib.pdf
+-  2 /usr/local/texlive/2008/texmf-dist/doc/latex/babelbib/tugboat-babelbib.pdf
+-  3 /usr/local/texlive/2008/texmf-dist/doc/latex/babelbib/ChangeLog
+-  4 /usr/local/texlive/2008/texmf-dist/doc/latex/babelbib/README
+-  Please enter the number of the file to view, anything else to skip: ¶2¶
+-\end{htcode}
++\subsection{Basics}
+ 
+-In this case, what you actually type is in \textcolor{input}{\inputcolorname},
+-and the funny symbol \textco{\prompt} represents your shell's prompt, which
+-can actually be something like ©C:\>© or ©name@host:~%© or funnier.
++Open a command line\footnote{On windows, use ``Execute'' from the Start menu
++  and type ©cmd©.  On Mac OS X, use the ``terminal'' icon on Mac OS X.  If you
++  are using another flavour of Unix, you probably know what to do.} and type
++©texdoc «name»©: the documentation of the ©«name»© package will pop up. Of
++course, replace ©«name»© with the actual name of the package you want to learn
++about. You can also look for the documentation of more than one package at
++once: just give many names as arguments.
++
++The rest of this section describes the most usual options, like how to
++see all documentation related to a package or use a different viewer.
++
++\subsection{Modes}\label{ss-modes}
++
++\texdoc has different modes that determine how results will be handled. The
++default mode, called ``view'' mode, is to open the first (supposedly the best)
++result in a viewer. It is rather handy when you know what you want to read,
++and want to access it quickly. On the other hand, there may be other relevant
++documents for the given ©«name»©, which are ignored in view mode.
++
++The so-called ``list mode'' makes \texdoc list all relevant documentation and
++ask you which one you want to view. It is useful when there a other
++interesting sources of information besides the package's main documentation.
++
++There is also a ``mixed'' mode, intended to combine the best of view mode and
++list mode: if there is only one relevant result, then \texdoc opens it in a
++viewer, else it offers you a menu.
++
++Usually, \texdoc shows you only results it considers relevant. If there are no
++``good'' results, it falls back to less relevant results. You can force
++\texdoc to show you also ``bad'' results even when there are good ones by
++using the ``showall'' mode. (This implies using a menu rather than starting a
++viewer.)
++
++You can select with command-line options: use ©texdoc «option» «name»© with
++one of the following options: ©-w© or ©--view© for view mode, ©-m© or
++©--mixed© for mixed mode, ©-l© or ©--list© for list mode, ©-s© or ©--showall©
++for showall mode.
++
++If you always (or mostly) use the same mode, it is probably easier to
++select it in a configuration file than to always use the command-line
++option. For this, see the next section.
++
++\subsection{Configuration files}\label{ss-quick-file}
++
++\texdoc use various configuration files, which you can see using the ©-f© or
++©--files© options. The second entry in this list is marked with a star ©(*)©:
++it is the file you should use for your personal preferences as a user; you may
++need to create it (and the parents directories).
++
++In order to select you favorite mode, just insert a line ©mode = «yourmode»©
++in this files, where ©«yourmode»© is one of ©view©, ©mixed©, ©list© or
++©showall©.
++
++The configuration files can be used to tweak \texdoc in many ways, the most
++useful of which is probably the selection of the viewers for various types of
++documents, explained in the next section.
++
++\subsection{Viewers}
++
++\texdoc's mechanism for choosing a viewer varies according to your platform.
++On Windows and MacOS, it uses your file associations like when you
++double-click files in the Explorer or the Finder (except for the text viewer,
++which is always a pager). On Unix, it tries to find a viewer in the path from
++a list of ``known' viewers.
++
++You may want to select a different viewer for some kind of file. This is
++achieved by the various ©viewer_«ext»© configuration options, where ©«ext»© is
++the extension corresponding to the file type. For example, if you want to set
++xpdf as your default PDF viewer, and run it in the background, insert the line
++©viewer_pdf = xpdf %s &© in your configuration file. Here, ©%s© stands for the
++name of the file to view.
++
++\subsection{Conclusion}
++
++We have now covered the most common needs. The next part explains
++how \texdoc proceeds to find the best results.
++The default configuration file tries hard to set appropriate values so that
++you have a good out-of-the-box experience, but you may want to understand the
++underlying mechanisms and adapt them to your needs. The final part is a full
++reference for configuration options, including points omitted in the present
++part.
++
++Your feedback is very welcome of the \tdml. Feel free to post comments, bug
++reports, suggestions for improvements (inc. new aliases), even without
++subscribing.
++
++\clearpage
++
++\section{File search, aliases, score}
++
++\subsection{An overview of how texdoc works}
++
++When you type ©texdoc «keyword»©, texdoc browses the trees containing
++documentation (given by the \href{http://www.tug.org/kpathsea/} {kpathsea}
++variable ©TEXDOCS©), lists all files containing ©«keyword»© in their name
++(including the directory name) and give them a score based on some simple
++heuristics. For example, a file named ©«keyword».pdf©, will get a high score,
++©«keyword»-doc© will be preferred over ©«keyword»whatever©, files in a
++directory named exactly ©«keyword»© get a bonus, etc.
++
++There is also some filtering based on extensions: only files with known
++extensions are listed, and some extensions get a lesser score. Also, there is
++some score adjustments based on keywords; by default, Makefile's get a very
++bad score since they are almost never documentation.\footnote{They often end
++  up in the doc tree, since the source of documentation is often in the same
++  directory as the documentation itself in \TeX\ Live. Other source files are
++  discriminated by extension.}
++
++Then, depending on the mode, the file with the highest score is opened in a
++viewer, or the list of results is shown. Usually, only results with a positive
++score are displayed, except in showall mode. Result with very bad score (-100
++and below) are never displayed.
++
++\medskip
++
++However, this model works only if the documentation for ©«keyword»© has
++©«keyword»© in its name, which is not always true. The documentation of the
++memoir class is in ©memman.pdf©, for example, but it will be found anyway
++since it is in a directory named memoir. But there are more complicated cases:
++the documentation for mathptmx is in ©psnfss2e.pdf©, which is quite more
++complicated to guess.\footnote{But not totally impossible: using the \TeX\
++  Live database, texdoc can know which documentation files are associated with
++  a given ©.sty© file. Here, it could guess that the documentation is either
++  ©psfonts.pdf© of ©psnfss2e.pdf©. This will probably be done in a future
++  version.}
++
++Here comes the notion of \emph{alias}: in the default configuration file,
++mathptmx is aliased to psnfss2e, so that when you type ©texdoc mathptmx©,
++texdoc knows it has to look also for psnfss2e. Note that texdoc will also look
++for the original name, and that a name can be aliased to more than one new
++name (this is new in texdoc 0.60).
+ 
+-\bigskip
++\medskip
+ 
+-\texdoc's normal mode of operation is to find the more appropriate document
+-for your request and open it. But sometimes it has a weird notion of
+-``appropriate'', and you'd better look at the list of all results and choose
+-to see oen or more of them. For this, \texdoc offers various modes, like the
+-``search mode'' illustrated above.
+-
+-\begin{cmdsubsec}{Search mode}{ss-search}
+-  texdoc -s «name» 
+-  texdoc --search «name»
+-\end{cmdsubsec}
+-
+-With the two (equivalent) commands above, \texdoc also looks for documentation
+-for ©«name»©, but using the \emph{search mode}, which differs from the
+-normal mode (called \emph{view mode}) on two points:
+-\begin{itemize}
+-  \item It doesn't start a viewer and offers you a \emph{menu} instead.
+-  \item It always do a \emph{full search}.
+-\end{itemize}
+-The first point is rather straightforward on the example.  The second deserves
+-more explanation. 
++We will soon see how you can configure this, but let's give a few definitions
++about how a file can match keyword first (all matching is case-insensitive):
++\begin{enumerate}
++  \item The keyword is a substring of the file name.
++  \item The keyword is a ``subword'' of the file name; words are defined as a
++    sequence of alphanumeric characters delimited by punctuation characters
++    (there is no space in file names in \TeX\ Live) and a subword is a
++    substring both ends of which are a word boundary.
++  \item The keyword can match ``exactly'' the file name: that is, the file
++    name is the keyword + and extension.
++\end{enumerate}
+ 
+-Usually, \texdoc looks for files named ©«name».pdf© or ©«name».html© etc. (see
+-\ref{cf-ext_list}), where ©«name»© means what you asked for, in \texlive's
+-documentation directories, and if cannot find such a file, it tries a full
+-search: it finds all files which have ©«name»© in their name, or in the
+-directory's name.  In search mode, \texdoc always performs a full search.
+-
+-Now look carefully at the previous example.  The purpose of search mode is to
+-allow you to find related documentation, such as the
+-\href{http://www.tug.org/TUGboat/}{TUGboat} article on \package{babelbib},
+-which you might want to read, whereas in normal mode \texdoc offers you no
+-choice and just displays the user manual ©babelbib.pdf©.  On the other hand,
+-the view mode is much faster when you know exactly what you want to read.
+-
+-To try and make you happy, \texdoc offers two other modes, introduced below.
+-
+-\begin{cmdsubsec}{List mode}{ss-list}
+-  texdoc -l «name»
+-  texdoc --list «name»
+-\end{cmdsubsec}
+-
+-The \emph{list mode} uses a normal search, but forces \texdoc to give you a
+-menu instead of choosing itself the documentation to display.  It is usefull
+-when there are many files with the same name but different contents, or many
+-versions of the same file on your system. 
++\subsection{Alias directives}\label{ss-alias}
+ 
+ \begin{htcode}
+-  þ texdoc -l tex þ
+-  1 /usr/local/texlive/2008/texmf/doc/man/man1/tex.pdf
+-  2 /usr/local/texlive/2008/texmf-doc/doc/english/knuth/tex/tex.pdf
+-  Please enter the number of the file to view, anything else to skip: 
++  alias «original keyword» = «name»
++  alias(«score») «original keyword» = «name»
+ \end{htcode}
+ 
+-Here the first file is the manual page\footnote{converted in pdf.  To allow
+-  texdoc to find and display real man pages in man format,
+-  see~\ref{cf-ext_list}.} of the ©tex© command, while the second is \TeX{}'s
+-documented source code\dots
+-
+-\begin{cmdsubsec}{Mixed mode}{ss-mixed}
+-  texdoc -m «name»
+-  texdoc --mixed «name»
+-\end{cmdsubsec}
+-
+-As the name says, \emph{mixed mode} is an attempt to provide you the best of
+-the normal (view) and list modes, by mixing them in the following way:  If
+-only one file is found, then \texdoc opens it, and if many are found, it
+-displays a menu to let you choose.  You may want to make this mode the
+-default, see~\ref{cf-mode}.
+-
+-\begin{cmdsubsec}{What's a <name>?}{ss-name}
+-  texdoc «name1» «name2» «...»
+-  texdoc «name.ext»
+-\end{cmdsubsec}
+-
+-To conclude this section on basics, let us just mention two points concerning
+-the ©«name»© in all previous sections.  Is is usually a single name without
+-extension, but you can also use many names at once: then, depending on the
+-mode, \texdoc will either open all the corresponding documentation or show you
+-menus for each of the names you mentioned.  For each name, you can also
+-specifiy the file exention\footnote{It should be an allowed extension,
+-  see~\ref{cf-ext_list}, and preferably have a associated viewer defined,
+-  see~\ref{cf-viewer_*}.} if you want, eg ©texdoc texlive-en.html© lets you
+-read the \texlive manual in html rather than in pdf format.
+-
+-\bigskip
+-
+-You can now stop reading this manual unless you have special needs.  If you
+-want to understand the curious ©aliased too© messages that you will sometimes
+-see, and control them, read section~\ref{s-alias}.  If you have problems
+-viewing certain type of files or want to choose you preferred reader, look at
+-section~\ref{s-viewer}.  Finally, section~\ref{s-ref} is the full
+-reference concerning \texdoc configuration: while you probably don't want to
+-read it all at once, you can consult~\ref{cf-mode} if you want to select your
+-preferred mode and make it the default.
+-
+-Finally, be aware of the ©-h© or ©--help© option which provides you a quick
+-reminder of all available command-line options.
+-
+-\section{Aliases, or name substitution}\label{s-alias}
+-
+-\subsection{Basic concept}\label{ss-alias-basics}
+-
+-The usual search modes of \texdoc assume that the name of the documentation
+-file is the name of the package, or contains it (at least in the directory
+-name).  However, this is not always true, due either to the author choosing a
+-fancy name, or packaging peculiarities.  To try helping the user to find the
+-doc even in these cases, \texdoc provides an alias mechanism and comes with a
+-list of circa 200 pre-defined aliases.
+-
++You can define your own aliases in \texdoc's configuration files
++(see~\ref{ss-quick-file} or \ref{ss-prec}). For example,
++insert\footnote{Actually, you don't need to do this, the default configuration
++  file already includes this directive.}
+ \begin{htcode}
+-  þ texdoc -l geometry þ
+-  texdoc info: geometry aliased to geometry/manual.pdf
+-  1 /usr/local/texlive/2008/texmf-dist/doc/latex/geometry/manual.pdf
+-  Please enter the number of the file to view, anything else to skip: ¶0¶
++  alias mathptmx = psnfss2e
+ \end{htcode}
++in order to alias mathptmx to psnfss2e. Precisely, it means that files
++matching exactly psnfss2e will be added to the result list when you look for
++mathptmx, and get a score of 10 (default score for alias results). This is
++greater than the results of heuristic scoring: it means that results found via
++aliases will always rank before results associated to the original keyword.
++
++If you want the results associated to a particular alias to have a custom
++score instead of the default 10, you can use the optional argument to the
++alias directive. This can be usefull if you associate many aliases to
++a keyword and want one of them to show up first.
++
++You can have a look at the configuration file provided (the last shown by
++©texdoc -f©) for examples.  If you feel one of the aliases you defined locally
++should be added to the default configuration, please share it on the \tdml.
++
++Please note than aliasing is case-insensitive, and the aliases don't cascade:
++only aliases associated to the original keyword are used.
++Aliases are additive: if you define your own aliases for a keyword in your
++configuration file, and there are also aliases for the same keyword in the
++default configuration, they will add up. You can prevent the default aliases
++from begin applied for a particular keyword by saying ©stopalias «keyword»© in
++your personal configuration file. It will keep the aliases defined before
++this directive (if any) and prevent all further aliasing on this keyword.
++
++If, for some reason, you want to prevent any alias from begin used for one
++particular session of texdoc, you can use the ©-A© or ©--noalias© command-line
++option (see~\ref{cl-a}).
+ 
+-The concept of alias is very\footnote{See~\ref{ss-alias-rem} for why it is
+-  actually \emph{too} simple.} simple: as you can see of the above example,
+-when you type and ©geometry© is aliased to ©geometry/manual.pdf©, then
+-everything happens as if you actually typed ©texdoc geometry/manual.pdf©
+-(without any further alias substitution), and \texdoc informs you that
+-something happened so you can understand the results
+-(see~\ref{cf-verbosity_level} to get rid of this message):
+-
+-\begin{cmdsubsec}{Command line options}{ss-alias-cl}
+-  texdoc -a «options» «name»
+-  texdoc --alias «options» «name»
+-  texdoc -A «options» «name»
+-  texdoc --noalias «options» «name»
+-\end{cmdsubsec}
+-
+-By default, aliased are used in view, list and mixed modes, and disabled in
+-search mode. But you may want to disable it, because the default alias doesn't
+-do what you want\footnote{In this case, please report it to
+-  \mailto{texdoc@tug.org}, so that the faulty alias can be updated.} or for
+-another reason.  In this case, you just have to add ©-A© or ©--noalias© to the
+-options, like:
++\subsection{Score directives}\label{ss-score}
+ 
+ \begin{htcode}
+-  þ texdoc -A -l geometry þ
+-  1 /usr/local/texlive/2008/texmf-doc/doc/polish/tex-virtual-academy-pl/
+-  latex2e/macro/geometry.html
+-  Please enter the number of the file to view, anything else to skip: ¶0¶
++  adjscore «pattern» = «score adjustment»
++  adjscore(«keyword») «pattern» = «score adjustment»
+ \end{htcode}
+ 
+-On the contrary, you can force aliasing in search mode by using the ©-a© or
+-©--alias© option, though it may not prove very useful.
+-
+-\subsection{Your own aliases}\label{ss-alias-own}
+-
+-You can define your own aliases, or override the default ones, in \texdoc's
+-configuration files. You can get a list of those files by typing ©texdoc -f©.
+-For personal aliases, it is recommended that you use the second file, marked
+-by a star (see~\ref{ss-prec} for details). You'll probably need to
+-create in and one or two of the directories containing it.
++It is possible to adjust the score of results containing some pattern as a
++subword, either globally (for the result of all searches) or only 
++when searching with a particular keyword. This is done in the
++configuration file (\ref{ss-quick-file} or \ref{ss-prec}) using the 
++©adjustscore© directive. Here are a few examples from the default
++configuration file.
+ 
+-Creating an alias is easy: you just insert a line like 
+ \begin{htcode}
+-  alias geometry = geometry/manual.pdf
++  adjscore /Makefile = -1000
++  adjscore /tex-virtual-academy-pl/ = -50
++  adjscore(tex) texdoc = -10
+ \end{htcode}
+-in your configuration file, and it's all.  You can have a look at the
+-configuration file provided (the last one showed by ©texdoc -f©) for examples.
+-If you want to permanently unalias something, just insert a line
+-©«name»=«name»©: it will overwrite the previous alias.
+-
+-\subsection{Remarks on aliases}\label{ss-alias-rem}
+-
+-Please be aware that this alias feature, or at least its intensive use to try
+-to find the ``right'' documentation for a given package, should be temporary.
+-Indeed, one problem is that currently aliases do \emph{hide} other files, while
+-it is desirable that they just \emph{add} results in some case. However,
+-defining a coherent behaviour (and how to maintain the needed database)
+-requires work and time, and is therefore reported to future versions.
+-
+-In this vein, it would be desirable to have a notion of ``category'', like
+-user documentation of a package, or man page of a program, or reference manual
+-of a program, or documented source code of a package or program, or\dots If
+-you have ideas about desirable categories and ways they should be handled,
+-feel free to share them at the usual address.
+-
+-\section{Viewer selection}\label{s-viewer}
+-
+-A list of default viewers is defined in \texdoc, depending on your platform
+-(Windows, MacOS X, other Unix). On Windows and MacOS, it uses your file
+-associations like when you double-click files in the Explorer or the Finder.
+-On Unix, it tries to find a viewer in the path from a list of ``known'
+-viewers.
+-
+-If you want to use another viewer, you have two ways of telling this to
+-\texdoc: in your configuration file or using environment variables.  If you
+-hesitate, the configuration file is the recommended way.
+-
+-To find your configuration file, type ©texdoc -f© and pick the file marked
+-with a star (unless you are a system administrator or your home is shared
+-between many machines whith different architectures, see~\ref{ss-prec}); you
+-may need to create the file and a few directories. Then you can add lines
+-like:
+ 
+-\begin{htcode}
+-  viewer_pdf = (xpdf %s) &
+-  viewer_txt = less
+-\end{htcode}
++All files named ©Makefile© (and also files names ©Makefile-foo© if there are
++any): are ``killed'' : by adjusting their score with such a large negative
++value, their final score will most probably be less than -100, so they will
++never be displayed. Files from the ©tex-virtual-academy-pl© directory, on the
++other hand, are not killed but just get a malus, since they are a common
++source of ``fake'' matches which hide better results (even for the lucky ones
++who can read polish).
++
++The third directive gives a malus for results containing ©texdoc© only if the
++search keyword is ©tex©. Otherwise, such results would get a high score
++because the heuristic scoring would think ©texdoc© is the name of \TeX's
++documentation. The value -10 is enough to ensure that those results will have
++a negative score, so wil not be displayed unless ``showall'' mode is active.
++
++\textbf{Warning}: Values of scores (like the default score for aliases, the
++range of heuristic scoring, etc.) may change in a future version of texdoc.
++Scoring is quite new and may need some adjustments. So, don't be surprised if
++you need to adapt your scoring directives after a future update of texdoc.
++This warning will disappear at some point.
++
++\subsection{File extensions}
++
++The allowed file extensions are defined by the configuration item ©ext_list©
++(default: pdf, html, txt, ps, dvi, no extension). You can configure it with
++a line ©ext_list = «your, list»© in a configuration file. Be aware
++that it will completely override the default list, not add to it. An empty
++string in the list means files without extension (no dot in the name), while a
++star means any extension.
++
++For scoring purposes, there is also a ©badext_list© parameter: files whose
++extension is ``bad'' according to this list will get a lesser score (currently
++0). This only affect heuristic scoring (results found from the original
++keyword, not from aliases).
++
++\clearpage
+ 
+-Here the ©%s© stands for the name of the file to view. The first line sets
+-©xpdf© as the pdf viewer, and use a bit of shell syntax to force it to run in
+-the background (the ©()© are here for compatibility with zip support,
+-see~\ref{s-bugs}). The second line sets ©less© as the text viewer: it doesn't
+-use ©%s©, which means the filename will be placed at the end of the command.
+-
+-The default extensions allowed are ©pdf©, ©html©, ©txt©, ©dvi©, ©ps©, and no
+-extension.  The ©txt© viewer is used for files without extension.
+-See~\ref{cf-ext_list} for how to allow for more extensions.
+-
+-The corresponding environment variables are ©PDFVIEWER©, ©BROWSER©, ©PAGER©,
+-©DVIVIEWER©, ©PSVIEWER©. They follow the same convention as values from the
+-configuration files, and override them if they are set. Since some of those
+-variable are shared by other programs, you can override them just for \texdoc
+-by adding ©_texdoc© at the end, like in ©BROWSER_texdoc©.
+-
+-\section{Full reference}\label{s-ref}
+-
+-The most useful command-line options, configuration values and all
+-environment variables have been presented.  Here we complete our presentation
+-and review all in a systematic way.
++\section{Full reference}
+ 
+-\subsection{Precedence}\label{ss-prec}
++\subsection{Precedence of configuration sources}\label{ss-prec}
+ 
+ Values for a particular setting can come from several sources. They are treated
+ in the following order, where first value found is always used:
+@@ -460,9 +453,10 @@
+ 
+ \subsection{Command-line options}\label{ss-cl}
+ 
+-Most of the command-line options correspond to an option that can be set from
+-the config files. For them, we refer the reader to the description of the
+-corresponding configuration option. 
++All command-line options (except the first three below) correspond to
++configuration item that can be set in the configuration files: we refer
++the reader to the corresponding section for the meaning of this configuration
++item.
+ 
+ \begin{cmdsubsub}{-h, --help}{cl-h}
+   -h, --help
+@@ -471,7 +465,7 @@
+ Shows a quick help message (namely a list of command-line options) and exits
+ successfully.
+ 
+-\begin{cmdsubsub}{-V, --version}{cl-v}
++\begin{cmdsubsub}{-V, --version}{cl-V}
+   -V, --version
+ \end{cmdsubsub}
+ 
+@@ -482,56 +476,67 @@
+ \end{cmdsubsub}
+ 
+ Shows the list of the configuration files for the current installation and
+-platform, with their status (active or not found) and a star marking the
+-recommended file for user settings.
++platform, with their status (active, not found, or disabled
++(see~\ref{cf-lastfile_switch})) and exits successfully.
+ 
+-\begin{cmdsubsub}{-w, -l, -m, -s, -r, --view, --list, --mixed, --search,
++\begin{cmdsubsub}{-w, -l, -m, -s, -r, --view, --list, --mixed, --showall,
+     --regex}{cl-mode}
+-  -w, --view, -l, --list, -m, --mixed, -s, --search, -r, --regex
++  -w, --view, -l, --list, -m, --mixed, -s, --showall, -r, --regex
+ \end{cmdsubsub}
+ 
+-See~\ref{cf-mode}.
++\hfill Set ©mode© to the given value, see~\ref{cf-mode}.
+ 
+ \begin{cmdsubsub}{-a, -A, --alias, --noalias}{cl-a}
+   -a, --alias, -A, --noalias
+ \end{cmdsubsub}
+ 
+-See~\ref{s-alias}.
++Set ©alias_switch© true (resp. false), see~\ref{cf-alias_switch}
+ 
+ \begin{cmdsubsub}{-i, -I, --interact, --nointeract}{cl-i}
+   -i, --interact, -I, --nointeract
+ \end{cmdsubsub}
+ 
+-See~\ref{cf-interact}.
++Set ©interact_switch© to true (resp. false), see~\ref{cf-interact_switch}.
+ 
+ \begin{cmdsubsub}{-e, --extensions}{cl-e}
+   -e=«l», --extensions=«l»
+ \end{cmdsubsub}
+ 
+-See~\ref{cf-ext_list}.  \emph{But} be aware that on the command line there
+-should be no space at all, neither in the list (unless quoted according to you
+-shell's convention) not between the ©-e© or ©--extension© option, the equal
+-sign, and the list.  Also take care to quote the special value ©*© if
+-necessary.  The equal sign is optional.
+-
+-\begin{cmdsubsub}{-v, --verbosity, -d, --debug}{cl-n}
+-  -v=«n», --verbosity=«n», -d, --debug
++Set ©ext_list©, see~\ref{cf-ext_list}. \textbf{Warning}: this command-line
++option is deprecated and will likely be removed soon. It is recommended to set
++©ext_list© in a configuration file instead. Please protest on the \tdml if you
++want to keep this command-line option.
++
++\begin{cmdsubsub}{-v, --verbosity}{cl-v}
++  -v=«n», --verbosity=«n»
++\end{cmdsubsub}
++
++Set ©verbosity_level© to ©«n»©, see~\ref{cf-verbosity_level}. Be aware that you
++must avoid spaces on the command line, and the ©=© sign is optional.
++
++\begin{cmdsubsub}{-d, --debug}{cl-d}
++  -d, -d=«list», --debug, --debug=«list»
+ \end{cmdsubsub}
+ 
+-See~\ref{cf-verbosity_level} and be aware that you must avoid spaces on the
+-command line, and the ©=© sign is optional. The ©--debug© option sets
+-verbosity at the maximum level.
++Set ©debug_list©, see~\ref{cf-debug_list}. If not list is given, activates all
++available debug items.
++
++\begin{cmdsubsub}{-M, --machine}{cl-M}
++  -M, --machine
++\end{cmdsubsub}
++
++Set ©machine_switch© to true, see~\ref{cf-machine_switch}.
+ 
+ \subsection{Environment variables}\label{ss-envvar}
+ 
+ They all correspond to some ©viewer_«ext»© setting, and the reader is referred
+-to~\ref{s-viewer} and~\ref{cf-viewer_*} for details. Also, environment
+-variables used by older versions of \texdoc are accepted. You can append
+-©_texdoc© to every name in the first column: this wins over every other name.
++to~\ref{cf-viewer_*} for details. Also, environment variables used by older
++versions of \texdoc are accepted. You can append ©_texdoc© to every name in
++the first column: this wins over every other name.
+ 
+ \begin{center}
+-  \begin{tabular}{@{}l*3{@{ }l}@{}}
+-    New name    & Old name 1        & Old name 2           & Config. param.\\
++  \begin{tabular}{*4l}
++    New name    & Old name 1        & Old name 2           & Config. item\\
+     ©PAGER©     & ©TEXDOCVIEW_txt©  & ©TEXDOC_VIEWER_TXT©  & ©viewer_txt©  \\
+     ©BROWSER©   & ©TEXDOCVIEW_html© & ©TEXDOC_VIEWER_HTML© & ©viewer_html© \\
+     ©DVIVIEWER© & ©TEXDOCVIEW_dvi©  & ©TEXDOC_VIEWER_DVI©  & ©viewer_dvi©  \\
+@@ -540,69 +545,69 @@
+   \end{tabular}
+ \end{center}
+ 
+-\subsection{Configuration files}\label{ss-conf}
++\subsection{Configuration items}\label{ss-conf}
+ 
+-\subsubsection{General structure}\label{sss-sonf-struct}
++\subsubsection{Structure of configuration files}\label{sss-sonf-struct}
+ 
+ Configuration files are line-oriented text files. Comments begin with a ©#©
+ and run to the end of line. Lines containing only space are ignored. Space at
+ the beginning or end of a line, as well as around an ©=© sign, is ignored.
+ Apart from comments and empty lines, each line must be of one of the following
+-forms:
++forms.
+ 
+ \begin{htcode}
+-  «config_param» = «value»
+-  alias «name» = «target»
++  «configuration item» = «value»
++  alias «original keyword» = «name»
++  alias(«score») «original keyword» = «name»
++  stopalias «original keyword»
++  adjscore «pattern» = «score adjustment»
++  adjscore(«keyword») «pattern» = «score adjustment»
+ \end{htcode}
+ 
+-where ©«config_parameter»© consists of only letters, digits or ©-© signs,
+-©«name»© of letters, digits, ©-© and ©_© signs. ©«value»© and ©«target»© are
+-free strings (except that not every ©«value»© is valid for every
+-©«config_param»©, see below) and nothing in it need not be quoted (actually,
+-quotes will be interpreted as part of the value, not as quotation marks).
+-
+-Lines which do not obey these rules raise a warning. However, unrecognised
+-values of ©«config_param»© raise no warning at the moment.
++We will concentrate on the ©«configuration item»© part here, since other
++directives have already been presented (\ref{ss-alias} and \ref{ss-score}).
+ 
+-The ©«value»© is usually interpreted as a string, except when ©«config_param»©
+-ends with:
++In the above, ©«value»©  never needs to be quoted: quotes would be interpreted
++as part of the value, not as quotation marks (this also holds for the other
++directives).
++
++Lines which do not obey these rules raise a warning, as well as unrecognised
++values of ©«configuration item»©. The ©«value»© can be an arbitrary string,
++except when the name of the ©«configuration item»© ends with:
+ \begin{enumerate}
+   \item ©_list©, then ©«value»© is a coma-separated list of strings. Space
+     around commas is ignored. Two consecutive comas or a coma at the beginning
+     or end of the list means the empty string at the corresponding place.
+   \item ©_switch©, then ©«value»© must be either ©true© or ©false©
+-    (case-sensitive).
+-  \item ©_level©, then ©«value»© is a non-negative integer.
++    (lowercase).
++  \item ©_level©, then ©«value»© is an integer.
+ \end{enumerate}
++In these cases, an improper ©«value»© will raise a warning too.
+ 
+ \begin{cmdsubsub}{mode}{cf-mode}
+-  mode = «view, list, mixed, search, regex»
++  mode = «view, list, mixed, showall, regex»
+ \end{cmdsubsub}
+-Set the  mode to the given value.  Default is ©view©.  The first three values
+-©view©, ©list©, ©mixed© use the same searching method: first search a file
+-whose name is the ©«name»© on the command line and whose extension is in
+-©ext_list© (see~\ref{cf-ext_list}), and if nothing is found, then do a full
+-search.  This means that a file matches if ©«name»© is a substring of its
+-path+name (and its extension is in the list). Here path does not mean the full
+-path, but only the part below ©TEXMF/doc©. The ©search© mode forces a full
+-search.
+-
+-The last mode, ©regex©, looks for ©«name»© in the path+filename as a Lua
+-regex.  If you don't know Lua regexes you should be aware that the escape
+-character is ©%© and the ©-© sign is a special character (which means the same
+-as ©*?© in Perl regexes).  For more details, see the Lua
+-\href{http://www.lua.org/manual/}{reference manual} or the book
+-\href{http://www.lua.org/pil/}{\emph{programming in Lua}}.  You might want to
+-use\footnote{The quotes in the example are just to make the shell happy.}
+-©-e='*'© if your regex uses the ©$© anchor.%stopzone
++Set the  mode to the given value.  Default is ©view©. All mode except regex
++have been presented in~\ref{ss-modes}.
+ 
+-\begin{cmdsubsub}{interact}{cf-interact}
++In regex mode, the given name is interpreted as a Lua regex, and only files
++whose full name (including path) matches it are found. Alias and score
++mechanisms are disabled.  \textbf{Warning}: this mode is deprecated and will
++likely be removed soon.  Please protest on the \tdml if you want it to stay.
++
++\begin{cmdsubsub}{interact}{cf-interact_switch}
+   interact_switch = «true, false»
+ \end{cmdsubsub}
+ 
+ Turn on or off interaction.  Default is on.  Turning interaction off prevents
+ \texdoc to ask you to choose a file to view when there are multiple choices,
+-and merely just print the list of files found.
++so it just prints the list of files found.
++
++\begin{cmdsubsub}{alias}{cf-alias_switch}
++  alias_switch = «true, false»
++\end{cmdsubsub}
++
++Turn on or off aliasing.  Default is on.
+ 
+ \begin{cmdsubsub}{ext_list}{cf-ext_list}
+   ext_list = «list»
+@@ -612,8 +617,9 @@
+ \begin{htcode}
+   pdf, html, txt, dvi, ps,
+ \end{htcode}
+-This list is used to filter and  sort the results (with the default value: pdf
+-first, etc).  Two special values are recognised:
++This list is used to filter and  sort the results that have the same
++score(with the default value: pdf first, etc).  Two special values are
++recognised:
+ \begin{itemize}
+   \item \emph{The empty element}. This means files without extensions, or more
+     precisely without a dot in their name.  This is meant for files like
+@@ -624,7 +630,7 @@
+ 
+ There is a very special case: if the searched ©«name»© has ©.sty© extension,
+ \texdoc enters a special search mode for ©.sty© files (not located in the same
+-place as real documentation files) for this ©«name»©, independantly of the
++place as real documentation files) for this ©«name»©, indepandantly of the
+ current value of ©ext_list© and ©mode© (unless it is the ©regex© mode). In an
+ ideal world, this wouldn't be necessary since every sty file would have a
+ proper documentation in pdf, html or plain text, but\dots
+@@ -635,93 +641,81 @@
+ \texdoc to be able to find man pages and display them with the ©man© command,
+ you can use
+ \begin{htcode}
+-  ext_list = 1, 5, pdf, html, txt, dvi, ps,
++  ext_list = pdf, html, 1, 5, txt, dvi, ps,
+   viewer_1 = man
+   viewer_5 = man
+ \end{htcode}
+-(This also makes man pages in man format take precedence over their pdf
+-versions.)
++
++\begin{cmdsubsub}{badext_list}{cf-badext_list}
++  badext_list = «list»
++\end{cmdsubsub}
++
++Set the list of ``bad'' extensions to ©«list»©.  Default is ``©txt,©''. Files
++with those extensions get a heuristic score of 0.
+ 
+ \begin{cmdsubsub}{viewer_*}{cf-viewer_*}
+   viewer_«ext» = «cmd»
+ \end{cmdsubsub}
+ 
+ Set the viewer command for files with extension ©«ext»© to ©«cmd»©. For files
+-without extension, ©viewer_txt© is used, and there's not ©viewer_© variable.
++without extension, ©viewer_txt© is used, and there's no ©viewer_© variable.
+ In ©«cmd»©, ©%s© can be used as a placeholder for the file name, which is
+ otherwise inserted at the end of the command.  The command can be a arbitrary
+ shell construct. 
+ 
+-\begin{cmdsubsub}{alias}{cf-alias}
+-  alias «name» = «othername»
++\begin{cmdsubsub}{verbosity_level}{cf-verbosity_level}
++  verbosity_level = «n»
+ \end{cmdsubsub}
+ 
+-Everything has already been said in section~\ref{s-alias}.
++Set the verbosity level to ©«n»©. 3 means errors, warnings and informational
++message will be printed (on stdout); 2 means only errors and warnings, 1 only
++errors and 0 nothing (not recommended).
+ 
+-\begin{cmdsubsub}{verbosity_level}{cf-verbosity_level}
+-  verbosity_level = «n»
++\begin{cmdsubsub}{debug_list}{cf-debug_list}
++  debug_list = «list»
+ \end{cmdsubsub}
+ 
+-Set the verbosity level to ©«n»©.  This determines whether \texdoc will print
+-or not errors or debug information (to stderr). Default level is 3. The
+-numeric codes are as follow:
+-\begin{enumerate}[start=0]
+-  \item Print nothing (not recommended).
+-  \item Print only error messages.
+-  \item Also print warnings.
+-  \item Also print information messages.
+-  \item[n] Also print debug(n-3) information messages.
+-\end{enumerate}
++Set the list of activated debug items (default: none). For a list of available
++items, see the source code, file ©constants.tlu©, variable ©known_debugs©.
++Debug information is printed on standard error.
+ 
+-Currently, debug goes from 1 to 3 : ©debug1© prints the command used to view a
+-file just before executing it, ©debug2© prints information about setting
+-configuration paramters, and ©debug3© about the search paths used.
++\begin{cmdsubsub}{machine_switch}{cf-machine_switch}
++  machine_switch = «true, false»
++\end{cmdsubsub}
++
++Turn on or off machine-readable output (default: off).  With this option
++active, the value of ©interact_switch© is forced to ©false©, and each line of
++output is
++\begin{htcode}
++  «argument»\t«score»\t«filename»
++\end{htcode}
++where ©«argument»© is the name of the argument to which the results correspond
++(mainly useful if there were many arguments), ©\t© is the tab (ascii 9)
++character, and the other entries are pretty self-explanatory. Nothing else is
++printed on stdout, except if a internal error occurs (in which case exit code
++will be 1). In the future, more tab-separated fields may be added at the end
++of the line, but the first 3 fields will remain unchanged.
+ 
+ \begin{cmdsubsub}{lastfile_switch}{cf-lastfile_switch}
+   lastfile_switch = «true, false»
+ \end{cmdsubsub}
+ 
+-Prevents \texdoc from reading any other configuration file after this one.
+-Mainly useful for installing a newer version of \texdoc in your home (see the
++If set to true, prevents \texdoc from reading any other configuration file
++after this one (they will be reported as ``disabled'' by ©texdoc -f©).  Mainly
++useful for installing a newer version of \texdoc in your home and preventing
++the default configuration file from older versions to be used(see the
+ \href{http://tug.org/texdoc/}{web site} for instructions on how to do so).
+ 
+ \subsection{Exit codes}\label{ss-exit}
+ 
+-The current exit code are as follow:
++The current exit codes are:
+ \begin{enumerate}[start=0]
+   \item Success.
+-  \item Syntax error.
+-  \item Documentation not found for at least one argument.
++  \item Internal error.
++  \item Usage error.
+ \end{enumerate}
+ 
+-\section{Bugs, warnings}\label{s-bugs}
+-
+-There is currently no known bug (fingers crossed).  But a few things you should
+-be warned about.
+-
+-First of all, \texdoc doesn't always succeed in finding documentation (or
+-finds so many results that it is not useful).  Moreover, it cannot handle very
+-correctly packages with many relevant documentation files at the moment
+-(see~\ref{ss-alias-rem}).  Ideas about how to improve this are most welcome at
+-the usual address.
+-
+-Second, support for zipped documentation, which have been ``available'' in
+-previous versions of \texdoc, is now disabled by default. The reasons are that
+-this support wasn't portable (didn't work on windows for example), and
+-moreover we won't ship compressed documentation in \texlive.  However, the
+-code has not been totally removed and should be easy to activate again. If you
+-want to use this feature, please:
+-\begin{enumerate}
+-  \item Look in \texdoc's code for instructions (look for the ©support_zipped©
+-    variable and change it to true).
+-  \item Check that the zip commands in texdoc's default match whatever command
+-    is available on your system.
+-\end{enumerate}
+-
+-Finally, \texdoc is also missing a GUI version (texdoctk has never been the
+-GUI version of \texdoc, and is unmaintained and probably unmaintainable
+-anyway).  This is on the list, but the time line is rather unclear at the
+-moment.
++\clearpage
+ 
+ \section{Licence}\label{s-licence}
+ 
+@@ -752,10 +746,8 @@
+ \end{itemize}
+ 
+ \bigskip
+-\begin{center}\Large\rmfamily
++\begin{center}\Large\rmfamily\bfseries
+   Happy \TeX{}ing!
+ \end{center}
+ 
+ \end{document}
+-
+-
+Index: texlive-base-2009/texmf/scripts/texdoc/alias.tlu
+===================================================================
+--- /dev/null	1970-01-01 00:00:00.000000000 +0000
++++ texlive-base-2009/texmf/scripts/texdoc/alias.tlu	2010-01-03 11:23:04.000000000 +0900
+@@ -0,0 +1,95 @@
++-- configuration handling for texdoc
++--[[ 
++Copyright 2008, 2009 Manuel Pégourié-Gonnard
++Distributed under the terms of the GNU GPL version 3 or later.
++See texdoc.tlu for details.
++--]]
++
++local L = {}
++load_env(L, {
++    'export_symbols',
++    'string', 'table', 'os', 'kpse', 'lfs', 'io',
++    'deb_print', 'tostring', 'tonumber',
++    'C',
++    'config',
++})
++
++-- structure of an alias entry
++-- 
++-- aliasentry = {
++--   name   = <string> pattern to be matched,
++--   score  = <number> associated score (may be nil),
++--   original = <boolean> is this the original keyword?,
++-- }
++
++-- alias is local to this file
++local alias = {}
++
++-- turn a name into a suitable alias entry
++-- if score is 'false', this is the original name
++function make_alias(pat, score)
++    local al = {}
++    al.name = pat
++    if score == false then
++        al.original = true
++    else
++        al.score = score -- may be nil
++    end
++    return al
++end
++
++-- add an alias value for a key
++function add_alias(key, value, score)
++    local k = string.lower(key)
++    alias[k] = alias[k] or { make_alias(key, false) }
++    if alias[k].stop then return end
++    table.insert(alias[k], make_alias(value, score))
++end
++
++-- prevent a key from begin further aliased
++function stop_alias(key)
++    local k = string.lower(key)
++    alias[k] = alias[k] or {}
++    alias[k].stop = true
++end
++
++-- get patterns for a name
++function get_patterns(name)
++    local n = string.lower(name)
++    if config.mode ~= 'regex' and config.alias_switch and alias[n] then
++        return alias[n]
++    else
++        return { make_alias(name, false) }
++    end
++end
++
++-- interpret a confline as an alias setting or return false
++function confline_to_alias(line, file, pos)
++    -- alias directive without score
++    local key, val = string.match(line, '^alias%s+([%w%p]+)%s*=%s*(.+)')
++    if key and val then
++        add_alias(key, val)
++        return true
++    end
++    -- alias directive with score
++    local score, key, val = string.match(line,
++        '^alias%(([%d+-.]+)%)%s+([%w%p]+)%s*=%s*(.+)')
++    if score then score = tonumber(score) end
++    if key and val and score then
++        add_alias(key, val, score)
++        return true
++    end
++    -- stopalias directive
++    local key = string.match(line, '^stopalias%s+(.+)')
++    if key then 
++        stop_alias(key)
++        return true
++    end
++    return false
++end
++
++-- finally export a few symbols
++export_symbols(L, {
++    'confline_to_alias',
++    'get_patterns',
++})
+Index: texlive-base-2009/texmf/scripts/texdoc/config.tlu
+===================================================================
+--- /dev/null	1970-01-01 00:00:00.000000000 +0000
++++ texlive-base-2009/texmf/scripts/texdoc/config.tlu	2010-01-03 11:23:04.000000000 +0900
+@@ -0,0 +1,533 @@
++-- configuration handling for texdoc
++--[[ 
++Copyright 2008, 2009 Manuel Pégourié-Gonnard
++Distributed under the terms of the GNU GPL version 3 or later.
++See texdoc.tlu for details.
++--]]
++
++local L = {}
++load_env(L, {
++    'export_symbols',
++    'string', 'table', 'os', 'kpse', 'lfs', 'io',
++    'ipairs', 'pairs', 'tonumber', 'tostring', 'setmetatable', 'next', 'print',
++    'assert', 'error',
++    'err_print', 'win32_hook', 'deb_print',
++    'confline_to_alias', 'confline_to_score',
++    'C',
++    'config',
++})
++
++--------------------------   hide the config table   ---------------------------
++
++-- config is read-only
++function set_read_only(table, name)
++    assert(next(table) == nil,
++        'Internal error: '..name..' should be empty at this point.')
++    local ro = 'Internal error: attempt to update read-only table '
++    local real = {}
++    setmetatable(table, {
++        __index = real,
++        __newindex = function () error(ro..name..'.') end,
++    })
++    return function(k, v) real[k] = v end
++end
++
++real_set_config = set_read_only(config, 'config')
++
++
++-------------------------   general config functions   -------------------------
++
++-- set a config parameter, but don't overwrite it if already set
++-- three special types: *_list (list), *_switch (boolean), *_level (number)
++function set_config_element (key, value, context)
++    local is_known = false -- is key a valid option?
++    local option
++    for _, option in ipairs(C.known_options) do
++        if string.match(key, '^'..option..'$') then is_known = true break end
++    end
++    -- warn and exit if key is not a known option
++    if not is_known then config_warn(key, nil, context, true) return end
++    -- exit if key is already set (/!\ must test for nil, not false)
++    if not (config[key] == nil) then return nil end
++    -- detect the type of the key
++    if string.match(key, '_list$') then
++        -- coma-separated list
++        local values = string.explode(value, ',')
++        local inverse = {}
++        for i, j in ipairs(values) do -- sanitize values...
++            j = string.gsub(j, '%s*$', '')
++            j = string.gsub(j, '^%s*', '')
++            values[i] = j
++            inverse[j] = i -- ... and build inverse mapping on the way
++        end
++        real_set_config(key, values)
++        real_set_config(key..'_inv', inverse)
++        real_set_config(key..'_max', #values)
++    elseif string.find (key, '_switch$') then
++        -- boolean
++        if value == 'true' then
++            real_set_config(key, true)
++        elseif value == 'false' then
++            real_set_config(key, false)
++        else
++            config_warn (key, value, context)
++        end
++    elseif string.find (key, '_level$') then
++        -- integer
++        local val = tonumber (value)
++        if val then
++            real_set_config(key, val)
++        else
++            config_warn (key, value, context)
++        end
++    else -- string
++        real_set_config(key, value)
++    end
++    -- special case: if we just set debug_list, print version info now
++    if key == 'debug_list' then
++        deb_print('version', C.fullname..' version '..C.version)
++    end
++    -- now tell what we have just done, for debugging
++    deb_print('config',
++        "Setting '"..key.."="..value.."' "..context_to_string(context)..'.')
++end
++
++-- a helper function for warning messages in the above
++function config_warn (key, value, context, unknown)
++    local begin = unknown
++        and 'Unknown option "'..key..'"'
++        or 'Illegal value "'..tostring(value)..'" for option "'..key..'"'
++    local ending = '.  Skipping.'
++    err_print('warning', begin..' '..context_to_string(context)..ending)
++end
++
++-- interpreting 'context' for the previous functions
++function context_to_string(context)
++    if not context then return '(no context)' end
++    if      context.src == 'cl' then
++        return 'from command line option "'..context.name..'"'
++    elseif  context.src == 'env' then
++        return 'from environment variable "'..context.name..'"'
++    elseif  context.src == 'file' then
++        return 'in file "'..context.file..'" on line '..context.line
++    elseif  context.src == 'def' then
++        return 'from built-in defaults'
++    else
++        return 'from unkown source (should not happen, please report)'
++    end
++end
++
++-- set a whole list, also whithout overwriting
++function set_config_list (conf, context)
++    for key, value in pairs(conf) do
++        set_config_element (key, value, context)
++    end
++end
++
++------------------------   options from command line   -------------------------
++
++-- set config from the command line
++-- Please make sure to update C.usage_msg accordingly
++-- and set a default value in setup_config_from_defaults() if relevant.
++function setup_config_from_cl(arg)
++    local curr_arg
++    local function set_config_elt(key, val)
++        set_config_element(key, val, {src='cl', name=curr_arg})
++    end
++    while arg[1] and string.match(arg[1],'^%-') do
++        curr_arg = table.remove(arg,1)
++        -- special options
++        if (curr_arg == '-h') or (curr_arg == '--help') then
++            print (C.usage_msg)
++            os.exit(0)
++        elseif (curr_arg == '-V') or (curr_arg == '--version') then
++            print (C.progname .. ' ' .. C.version )
++            os.exit(0)
++        elseif (curr_arg == '-f') or (curr_arg == '--files') then
++            print (C.progname .. ' ' .. C.version )
++            setup_config_from_files ()
++            show_config_files (print, true)
++            os.exit(0)
++        -- options related to mode
++        elseif (curr_arg == '-w') or (curr_arg == '--view') then
++            set_config_elt('mode', 'view')
++        elseif (curr_arg == '-m') or (curr_arg == '--mixed') then
++            set_config_elt('mode', 'mixed')
++        elseif (curr_arg == '-l') or (curr_arg == '--list') then
++            set_config_elt('mode', 'list')
++        elseif (curr_arg == '-s') or (curr_arg == '--showall') then
++            set_config_elt ('mode', 'showall')
++        elseif (curr_arg == '--search') then
++            set_config_elt ('mode', 'showall')
++            err_print('warning', '--search has been renamed to --showall')
++            err_print('warning', 'Please use the new name.')
++        elseif (curr_arg == '-r') or (curr_arg == '--regex') then
++            set_config_elt ('mode', 'regex')
++        -- interaction
++        elseif (curr_arg == '-I') or (curr_arg == '--nointeract') then
++            set_config_elt('interact_switch', 'false')
++        elseif (curr_arg == '-i') or (curr_arg == '--interact') then
++            set_config_elt('interact_switch', 'true')
++        -- output format
++        elseif (curr_arg == '-M') or (curr_arg == '--machine') then
++            set_config_elt('machine_switch', 'true')
++        -- alias
++        elseif (curr_arg == '-A') or (curr_arg == '--noalias') then
++            set_config_elt('alias_switch', 'false')
++        elseif (curr_arg == '-a') or (curr_arg == '--alias') then
++            set_config_elt('alias_switch', 'true')
++        -- debug
++        elseif (curr_arg == '-d') or (curr_arg == '--debug') then
++            set_config_elt('debug_list', 'all')
++        elseif string.match(curr_arg, '^%-d=') then
++            local value = string.gsub(curr_arg, '^%-d=', '')
++            set_config_elt('debug_list', value)
++        elseif string.match(curr_arg, '^%-%-debug=') then
++            local value = string.gsub(curr_arg, '^%-%-debug=', '')
++            set_config_elt('debug_list', value)
++        -- verbosity
++        elseif string.match(curr_arg, '^%-v') then
++            local value = string.gsub(curr_arg, '^%-v=?', '')
++            set_config_elt('verbosity_level', value)
++        elseif string.match(curr_arg, '^%-%-verbosity') then
++            local value = string.gsub(curr_arg, '^%-%-verbosity=?', '')
++            set_config_elt('verbosity_level', value)
++        -- extensions list (deprecated)
++        elseif string.match(curr_arg, '^%-e') then
++            local value = string.gsub(curr_arg, '^%-e=?', '')
++            set_config_elt('ext_list', value)
++            err_print('warning',
++            '-e is deprecated and will likely be removed soon.')
++            err_print('warning',
++            'ext_list should be set in a configuration file instead.')
++            err_print('warning',
++            'Please protest on the texdoc mailing list if you need this.')
++        elseif string.match(curr_arg, '^%-%-extensions') then
++            local value = string.gsub(curr_arg, '^%-%-extensions=?', '')
++            set_config_elt('ext_list', value)
++            err_print('warning',
++            '--extensions is deprecated and will likely be removed soon.')
++            err_print('warning',
++            'ext_list should be set in a configuration file instead.')
++            err_print('warning',
++            'Please protest on the texdoc mailing list if you need this.')
++        -- problem
++        else
++            err_print('error', "unknown option: "..curr_arg)
++            print (C.error_msg)
++            os.exit(2)
++        end
++    end
++end
++
++-------------------------   config from environment   --------------------------
++
++-- set config from environment if available
++function setup_config_from_env ()
++    local function set_config_elt_from_vars(key, vars)
++        for _, var in ipairs(vars) do
++            local value = os.getenv(var)
++            if value then
++                set_config_element(key, value, {src='env', name=var})
++            end
++        end
++    end
++    set_config_elt_from_vars('viewer_pdf',
++    {"PDFVIEWER_texdoc", "TEXDOCVIEW_pdf", "TEXDOC_VIEWER_PDF", "PDFVIEWER"})
++    set_config_elt_from_vars('viewer_ps',
++    {"PSVIEWER_texdoc", "TEXDOCVIEW_ps", "TEXDOC_VIEWER_PS", "PSVIEWER"})
++    set_config_elt_from_vars('viewer_dvi',
++    {"DVIVIEWER_texdoc", "TEXDOCVIEW_dvi", "TEXDOC_VIEWER_DVI", "DVIVIEWER"})
++    set_config_elt_from_vars('viewer_html',
++    {"BROWSER_texdoc", "TEXDOCVIEW_html", "TEXDOC_VIEWER_HTML", "BROWSER"})
++    set_config_elt_from_vars('viewer_txt',
++    {"PAGER_texdoc", "TEXDOCVIEW_txt", "TEXDOC_VIEWER_TXT", "PAGER"})
++end
++
++----------------------   options and aliases from files   ----------------------
++
++-- set config+aliases from a particular config file assumed to exist
++function read_config_file(configfile)
++    local cnf = assert(io.open(configfile, 'r'))
++    local lineno = 0
++    while true do
++        local line=cnf:read('*line')
++        lineno = lineno + 1
++        if line == nil then break end  -- EOF
++        line = string.gsub(line, '%s*#.*$', '') -- comments begin with #
++        line = string.gsub(line, '%s*$', '')    -- remove trailing spaces
++        line = string.gsub(line, '^%s*', '')    -- remove leading spaces
++        -- try to interpret the line
++        local ok = string.match(line, '^%s*$') 
++        or confline_to_alias(line, configfile, lineno)
++        or confline_to_score(line, configfile, lineno)
++        or confline_to_config(line, configfile, lineno)
++        -- complain if it failed
++        if not ok then
++            err_print('warning',
++            'syntax error in '..configfile..' at line '..lineno..'.')
++        end
++    end
++    cnf:close()
++end
++
++-- interpret a confline as a config setting or return false
++function confline_to_config(line, file, pos)
++    local key, val = string.match(line, '^([%a%d_]+)%s*=%s*(.+)')
++    if key and val then
++        set_config_element(key, val, {src='file', file=file, line=pos})
++        return true
++    end
++    return false
++end
++
++
++-- return a table with config file and if they exist
++function get_config_files ()
++    local platform = string.match (kpse.var_value ('SELFAUTOLOC'), '.*/(.*)$')
++    local TEXMFHOME  = kpse.var_value ('TEXMFHOME')
++    local TEXMFLOCAL = kpse.var_value ('TEXMFLOCAL')
++    local TEXMFMAIN  = kpse.var_value ('TEXMFMAIN')
++    return {
++        TEXMFHOME  .. '/texdoc/texdoc-'..platform..'.cnf',
++        TEXMFHOME  .. '/texdoc/texdoc.cnf',
++        TEXMFHOME  .. '/texdoc/texdoc-dist.cnf',
++        TEXMFLOCAL .. '/texdoc/texdoc-'..platform..'.cnf',
++        TEXMFLOCAL .. '/texdoc/texdoc.cnf',
++        TEXMFMAIN  .. '/texdoc/texdoc.cnf'
++    }
++end
++
++-- the config_files table is shared by the next two functions
++do
++local config_files = {}
++
++-- set config/aliases from all config files
++function setup_config_from_files ()
++    for i, file in ipairs (get_config_files ()) do
++        local found = lfs.isfile(file)
++        config_files[i] = {
++            path = file,
++            status = found and (config.lastfile_switch
++            and 'disabled' or 'active') or 'absent',
++        }
++        if config_files[i].status == 'active' then
++            read_config_file (file)
++        end
++    end
++end
++
++-- now a special information function (see -f,--file option)
++function show_config_files (print_fun, prefix)
++    print_fun("Configuration files are:")
++    for i, file in ipairs (config_files) do
++        local home = prefix and
++        ((i==2) and "(*) " or "    ") -- home conffile is the 2nd
++        or ''
++        print_fun (home..file.status..'\t'..win32_hook(file.path))
++    end
++    if prefix then
++        print("(*) This is the recommended configuration file "
++        .. "for your personal preferences.")
++    end
++end
++
++end -- scope of config_files
++
++----------------------   options from built-in defaults   ----------------------
++
++-- for default viewer on general Unix, we have a list; the following two
++-- functions are used to check in the path which program is available
++
++-- check if "name" is the name of a file in the path
++-- Warning: to be used only on Unix! (separators, and PATH irrelevant on win32)
++-- the value of PATH is cached
++do local path_list = string.explode(os.getenv("PATH"), ':')
++function is_in_path(name)
++    for _, path in ipairs(path_list) do
++        if lfs.isfile(path..'/'..name) then return true end
++    end
++    return false
++end
++end
++
++-- guess a viewer from a list: 
++-- - try detecting desktop environments
++-- - or return the first element of "list" whose name is found in path
++-- - or nil
++-- caches results of desktop environment detection
++do local de_viewer
++function guess_viewer(cmds)
++    -- try desktop environment
++    if not de_viewer then de_viewer = desktop_environment_viewer() end
++    if de_viewer then return de_viewer end
++    -- or look along path
++    for _, cmd in ipairs(cmds) do
++        if is_in_path(cmd[1]) then return cmd[2] end
++    end
++end
++end
++
++-- returns a viewer specific to a desktop environement if relevant
++-- doesn't work on windows (uses io.popen)
++-- logic stolen from xdg-open (http://www.freedesktop.org/) and adapted
++function desktop_environment_viewer()
++    if os.getenv('KDE_SESSION_VERSION') and is_in_path('kde-open') then
++        return '(kde-open %s) &'                     -- kde 4 (or greater)
++    end
++    if os.getenv('KDE_FULL_SESSION') and is_in_path('kfmclient') then
++        return '(kfmclient exec %s) &'              -- kde < 4
++    end
++    if os.getenv('GNOME_DESKTOP_SESSION_ID') then   -- gnome
++        return '(gnome-open %s) &'
++    end
++    if not is_in_path('xprop') then return end
++    local xprop_fh = io.popen('xprop -root _DT_SAVE_MODE')
++    local xprop_out = xprop_fh:read('*line')
++    xprop_fh:close()
++    if string.find(xprop_out, '= "xfce4"$') then     -- xfce
++        return '(exo-open %s) &'
++    end
++end
++
++-- set some fall-back default values if no previous value is set
++function setup_config_from_defaults()
++    local function set_config_ls(ls) set_config_list(ls, {src='def'}) end
++    local function set_config_elt(key, val)
++        set_config_element(key, val, {src='def'})
++    end
++    if (os.type == "windows") then
++        set_config_ls {
++            -- Use 'start' to get file associations.
++            -- We need to quote the filenames, but the first quoted argument
++            -- is considered as the title by start, so we provide a dummy title.
++            -- Also, since the command line parser removes quotes if there
++            -- is no space inside, the dummy title must contain spaces.
++            viewer_dvi    = 'start "texdoc dvi viewer"',
++            viewer_html   = 'start "texdoc html viewer"',
++            viewer_pdf    = 'start "texdoc pdf viewer"',
++            viewer_ps     = 'start "texdoc ps viewer"',
++            -- 'more' is always available.
++            -- However, we can't assume texdoc is called from a cmd.exe window
++            -- (it can be run from the start->run menu), hence we make sure
++            -- to open a new window if needed.
++            viewer_txt    = 'start cmd /k more',
++        }
++    elseif (os.name == 'macosx') then
++        set_config_ls {
++            viewer_dvi    = 'open',
++            viewer_html   = 'open',
++            viewer_pdf    = 'open',
++            viewer_ps     = 'open',
++            viewer_txt    = 'less',
++        }
++    else -- generic Unix
++        set_config_ls {
++            viewer_dvi      = guess_viewer {
++                {'evince',      '(evince %s) &'},
++                {'okular',      '(okular %s) &'},
++                {'kdvi',        '(kdvi %s) &'},
++                {'xgdvi',       '(xgdvi %s) &'},
++                {'spawg',       '(spawg %s) &'},
++                {'spawx11',     '(spawx11 %s) &'},
++                {'tkdvi',       '(tkdvi %s) &'},
++                {'dvilx',       '(dvilx %s) &'},
++                {'advi',        '(advi %s) &'},
++                {'xdvik-ja',    '(xdvik-ja %s) &'},
++                {'xdvi',        '(xdvi %s) &'},
++                {'see',         '(see %s) &'}
++            },
++            viewer_html     = guess_viewer {
++                {'firefox',     '(firefox %s) &'},
++                {'seamonkey',   '(seamonkey %s) &'},
++                {'mozilla',     '(mozilla %s) &'},
++                {'konqueror',   '(konqueror %s) &'},
++                {'epiphany',    '(epiphany %s) &'},
++                {'opera',       '(opera %s) &'},
++                {'w3m',         'w3m'},
++                {'links',       'links'},
++                {'lynx',        'lynx'},
++                {'see',         'see'}
++            },
++            viewer_pdf      = guess_viewer {
++                {'evince',      '(evince %s) &'},
++                {'okular',      '(okular %s) &'},
++                {'kpdf',        '(kpdf %s) &'},
++                {'xpdf',        '(xpdf %s) &'},
++                {'acroread',    '(xpdf %s) &'},
++                {'see',         '(see %s) &'}
++            },
++            viewer_ps       = guess_viewer {
++                {'evince',      '(evince %s) &'},
++                {'okular',      '(okular %s) &'},
++                {'kghostview',  '(kghostview %s) &'},
++                {'gv',          '(gv %s) &'},
++                {'see',         '(see %s) &'}
++            },
++            viewer_txt      = guess_viewer {
++                {'most',        'most'},
++                {'less',        'less'},
++                {'more',        'more'}
++            }
++        }
++    end
++    -- then various, platform independant, stuff
++    set_config_ls {
++        mode                = 'view',
++        interact_switch     = 'true',
++        machine_switch      = 'false',
++        verbosity_level     = '2',
++        ext_list            = 'pdf, html, txt, ps, dvi, ',
++        badext_list         = 'txt, ',
++    }
++    -- must be set after mode!
++    set_config_elt ('alias_switch', alias_from_mode(config.mode))
++    -- zip-related options
++    if C.support_zipped then
++        set_config_ls {
++            zipext_list = 'gz, bz2',
++            unzip_gz    = 'gzip -d -c',
++            unzip_bz2   = 'bzip -d -c',
++            rm_file     = 'rm -f',
++            rm_dir      = 'rmdir'
++        }
++    end
++end
++
++-- the default value of config.alias_switch depends on the mode as follows
++function alias_from_mode (mode) -- /!\ returns a string!
++    if (mode == 'view') or (mode == 'mixed') or (mode == 'list') then
++        return 'true'
++    else
++        return 'false'
++    end
++end
++
++--------------------------   set all configuration   ---------------------------
++
++-- populate the config and alias arrays
++function setup_config_and_alias(arg)
++    -- setup config from all sources
++    setup_config_from_cl(arg)
++    setup_config_from_env()
++    setup_config_from_files()
++    setup_config_from_defaults()
++    -- regex mode is deprecated
++    if config.mode == 'regex' then 
++        err_print('warning', 
++        'Regex mode is deprecated and will likely be removed soon.')
++        err_print('warning', 
++        'Please protest on the texdoc mailing list if you need this.')
++    end
++    -- machine mode implies no interaction
++    if config.machine_switch == true then
++        real_set_config('interact_switch', false)
++    end
++    -- we were waiting for config.debug_list to be know to do this
++    show_config_files(function(s) deb_print('files', s) end)
++end
++
++-- finally export a few symbols
++export_symbols(L, {
++    'setup_config_and_alias',
++})
+Index: texlive-base-2009/texmf/scripts/texdoc/constants.tlu
+===================================================================
+--- /dev/null	1970-01-01 00:00:00.000000000 +0000
++++ texlive-base-2009/texmf/scripts/texdoc/constants.tlu	2010-01-03 11:23:04.000000000 +0900
+@@ -0,0 +1,115 @@
++-- Global "constants" for texdoc.
++--[[ 
++Copyright 2008, 2009 Manuel Pégourié-Gonnard
++Distributed under the terms of the GNU GPL version 3 or later.
++See texdoc.tlu for details.
++--]]
++
++local L = {}
++load_env(L, {
++    'setmetatable', 'next', 'assert', 'error',
++    'arg',
++    'C',
++})
++
++-- progname and version
++fullname    = arg[0]
++progname    = 'texdoc'
++version = '0.61'
++
++-- make sure to update setup_config_from_cl() accordingly
++-- and set a default value in setup_config_from_defaults() if relevant
++usage_msg = [[
++texdoc tries to find appropriate TeX documentation for the specified NAME(s).
++With no NAME, it can print configuration information (-f, --files);
++the usual --help and --version options are also accepted.
++Usage: texdoc [OPTIONS]... [NAME]...
++  -f, --files           Print the name of the config files being used.
++  -w, --view            Use view mode: start a viewer.
++  -m, --mixed           Use mixed mode (view or list).
++  -l, --list            Use list mode: show a list of results.
++  -s, --showall         Use showall mode: show also "bad" results.
++  -r, --regex           Use regex mode. (Deprecated.)
++  -e, --extensions=L    Set ext_list=L. (Deprecated.)
++  -a, --alias           Use the alias table.
++  -A, --noalias         Don't use the alias table.
++  -i, --interact        Use interactive menus.
++  -I, --nointeract      Use plain lists, no interaction required.
++  -v, --verbosity=N     Set verbosity level to N.
++  -d, --debug[=list]    Activate debug for selected items (default all).
++  -M, --machine         Use a more machine-friendly output format.
++Environment: PAGER, BROWSER, PDFVIEWER, PSVIEWER, DVIVIEWER.
++Files: <texmf>/texdoc/texdoc.cnf files, see the -f option.
++Homepage: http://tug.org/texdoc/
++Manual: displayed by `texdoc texdoc'.]]
++
++error_msg = [[
++Try `texdoc --help' for a short help, `texdoc texdoc' for the user manual.]]
++notfound_msg = [[
++Sorry, no documentation found for PKGNAME.
++If you are unsure about the name, try searching CTAN's TeX catalogue at
++http://ctan.org/search.html#byDescription.]]
++notfound_msg_ph = 'PKGNAME'
++
++known_options = {
++    'viewer_.*',
++    'mode',
++    'interact_switch',
++    'machine_switch',
++    'alias_switch',
++    'ext_list',
++    'badext_list',
++    'verbosity_level',
++    'debug_list',
++    'lastfile_switch',
++    'rm_dir',
++    'rm_file',
++    'unzip_.*',
++    'zipext_list',
++}
++
++err_priority = {
++    error   = 1,
++    warning = 2,
++    info    = 3,
++}
++
++known_debugs = {
++    version = {},
++    files   = {},
++    config  = {'files'},
++    view    = {},
++    texdocs = {},
++    filesea = {},
++    lsrsea  = {},
++    kpse    = {'texdocs', 'filesea', 'lsrsea'},
++    score   = {},
++}
++
++place_holder = '%%s' -- used for viewer commands
++
++-- zip/gz support
++--
++-- optionally, texdoc can support compressed documentation, but this is
++-- system-dependant (commands for unzipping, temporary files, etc).
++-- Since TeX Live doesn't ship compressed documentation, and I'm too lazy to
++-- make zip support work reliably on all platforms, I don't turn into an
++-- official option. However, it should work on Unix platforms.
++--
++-- If you enable zip support here, please check the configuration in config.tlu
++-- (look for support_zipped). The zip command should write the unzipped file to
++-- STDOUT. Check carefully that everything works as expected, since it got far
++-- less testing than the rest of texdoc.
++--
++-- See also comments in texdoc.cnf about viewer settings.
++support_zipped = false
++
++-- make C a proxy to the local environment
++assert(next(C) == nil,
++    'Internal error: table of constants should be empty at this point')
++setmetatable(C, {
++    __index = L,
++    __newindew = function ()
++        error('Internal error: attempt to modify a constant.')
++    end
++})
+Index: texlive-base-2009/texmf/scripts/texdoc/functions.tlu
+===================================================================
+--- /dev/null	1970-01-01 00:00:00.000000000 +0000
++++ texlive-base-2009/texmf/scripts/texdoc/functions.tlu	2010-01-03 11:23:04.000000000 +0900
+@@ -0,0 +1,102 @@
++-- General use functions for texdoc
++--[[ 
++Copyright 2008, 2009 Manuel Pégourié-Gonnard
++Distributed under the terms of the GNU GPL version 3 or later.
++See texdoc.tlu for details.
++--]]
++
++local L = {}
++load_env(L, {
++    'export_symbols',
++    'string', 'io', 'os',
++    'pairs', 'ipairs',
++    'C',
++    'config',
++})
++
++-- change '/' to '\' on windows
++if os.type == "windows" then
++    function win32_hook (path)
++        local res = string.gsub (path, '/', '\\')
++        return res -- get rid of gsub's 2nd return value
++    end
++else
++    function win32_hook (path)
++        return path
++    end
++end
++
++-- generic error display function (see the error_priority constant)
++function err_print (lvl, msg)
++    -- be careful: maybe config.verbosity_level is not set yet
++    local verbosity_level = config.verbosity_level or 2
++    if C.err_priority[lvl] <= verbosity_level then
++        io.stderr:write ("texdoc "..lvl..": "..msg.."\n")
++    end
++end
++
++do --scope of active_debugs
++local active_debugs
++
++-- generic debug function
++function deb_print(cat, msg)
++    -- make sure active_debugs is set
++    if not active_debugs then set_active_debugs() end
++    -- print message it belongs to an active category
++    if active_debugs and active_debugs[cat] or cat == 'XXX' then
++        io.stderr:write ("texdoc debug-"..cat..": "..msg.."\n")
++    end
++end
++
++-- set active_debugs
++function set_active_debugs()
++    if not config.debug_list then return end
++    active_debugs = {}
++    -- all debug options imply version info
++    if config.debug_list[1] then
++        active_debugs.version = true
++    else
++        return
++    end
++    -- if 'all' is the first keyword, just activate all categories
++    if config.debug_list[1] == 'all' then
++        for deb in pairs(C.known_debugs) do
++            active_debugs[deb] = true end
++        return
++    end
++    -- activate options from the list
++    for _, deb in ipairs(config.debug_list) do
++        local deps = C.known_debugs[deb]
++        if deps then
++            active_debugs[deb] = true
++            for _, d in ipairs(deps) do active_debugs[d] = true end
++        else
++            err_print('warning', "Unknown debug category '"..deb.."'.")
++        end
++    end
++end
++
++end -- scope of active_debugs
++
++-- if zip is support and file is base..'.'..zip with zip in zipext_list, 
++-- return base, zip -- otherwise, returns file, nil
++function parse_zip(file) 
++    if C.support_zipped then
++        local zip
++        for _, zip in ipairs(config.zipext_list) do
++            local l = #zip + 1
++            if string.sub(file, -l, -1) == '.'..zip then
++                return string.sub(file, 1, -l - 1), zip
++            end
++        end
++    end
++    return file, nil
++end
++
++-- finally export a few symbols
++export_symbols(L, {
++    'err_print',
++    'deb_print',
++    'win32_hook',
++    'parse_zip',
++})
+Index: texlive-base-2009/texmf/scripts/texdoc/main.tlu
+===================================================================
+--- /dev/null	1970-01-01 00:00:00.000000000 +0000
++++ texlive-base-2009/texmf/scripts/texdoc/main.tlu	2010-01-03 11:23:04.000000000 +0900
+@@ -0,0 +1,37 @@
++-- texdoc's main()
++--[[ 
++Copyright 2008, 2009 Manuel Pégourié-Gonnard
++Distributed under the terms of the GNU GPL version 3 or later.
++See texdoc.tlu for details.
++--]]
++
++local L = {}
++load_env(L, {
++    'os',
++    'print', 'ipairs',
++    'arg',
++    'C',
++    'setup_config_and_alias',
++    'get_doclist',
++    'deliver_results',
++})
++
++-- setup config options and aliases from various places
++setup_config_and_alias(arg)
++
++-- make sure we actually have argument(s)
++if not arg[1] then
++    print(C.usage_msg)
++    os.exit(2)
++end
++
++-- main loop
++local docname
++for _, docname in ipairs(arg) do
++    -- do we have more then one argument?
++    local multiarg = not not arg[2]
++    -- get results
++    local doclist = get_doclist(docname)
++    -- deliver results to the user
++    deliver_results(docname, doclist, multiarg)
++end
+Index: texlive-base-2009/texmf/scripts/texdoc/score.tlu
+===================================================================
+--- /dev/null	1970-01-01 00:00:00.000000000 +0000
++++ texlive-base-2009/texmf/scripts/texdoc/score.tlu	2010-01-03 11:23:04.000000000 +0900
+@@ -0,0 +1,266 @@
++-- scoring functions for texdoc
++--[[ 
++Copyright 2008, 2009 Manuel Pégourié-Gonnard
++Distributed under the terms of the GNU GPL version 3 or later.
++See texdoc.tlu for details.
++--]]
++
++local L = {}
++load_env(L, {
++    'export_symbols',
++    'string', 'table',
++    'pairs', 'ipairs', 'tostring', 'tonumber', 'assert',
++    'config', 'parse_zip', 'err_print', 'deb_print',
++})
++
++-- shared variables
++local global_adjscore, spec_adjscore = {}, {}
++
++-------------------------   configuration directives   -------------------------
++
++-- interpret a confline as a score directive or return false
++function confline_to_score(line, file, pos)
++    local keyw, pat, val
++    -- try global adjscore
++    pat, val = string.match(line, '^adjscore%s+([%w%p]+)%s*=%s*([%d+-.]+)')
++    if pat and val then 
++        return set_score_table(global_adjscore, pat, val)
++    end
++    -- try keyword specific adjscore
++    keyw, pat, val = string.match(line,
++    '^adjscore%(([%w%p]+)%)%s+([%w%p]+)%s*=%s*([%d+-.]+)')
++    if keyw and pat and val then 
++        keyw = string.lower(keyw)
++        spec_adjscore[keyw] = spec_adjscore[keyw] or {}
++        return set_score_table(spec_adjscore[keyw], pat, val)
++    end
++    return false
++end
++
++-- set key in score table to val, without overriding
++function set_score_table(tab, key, val)
++    local k = string.lower(key)
++    local v = tonumber(val)
++    if v then
++        if tab[k] == nil then tab[k] = v end
++        return true
++    end
++    return false
++end
++
++----------------------------   score computation   -----------------------------
++
++-- set the scores for a doclist
++function set_list_scores(list, original_kw)
++    for _, df in ipairs(list) do
++        set_score(df, original_kw)
++    end
++end
++
++-- set the score of a docfile
++function set_score(df, original_kw)
++    -- scoring is irrelevant in regex mode
++    if config.mode == 'regex' then df.score = 0 return end
++    deb_print('score', 'Start scoring '..df.realpath)
++    deb_print('score', 'Name used: '..df.name)
++    -- scoring is case-insenstitive (patterns are already lowercased)
++    local name = string.lower(df.name)
++    -- get score from patterns
++    local score = 0
++    for _, pat in ipairs(df.matches) do
++        local s = 0
++        local p = string.lower(pat.name)
++        if pat.original then
++            s = df.tree > -1 and heuristic_score(name, p) or 1
++        elseif is_exact(name, p) then
++            s = pat.score or 10 -- default alias score
++            deb_print('score', string.format(
++                "Matching alias '%s', score: %d", pat.name, s))
++        end
++        if s > score then score = s end
++    end
++    deb_print('score', 'Max pattern score: '..tostring(score))
++    -- adjust from keyword-specific tables
++    if df.tree > -1 and spec_adjscore[original_kw] then
++        for pat, val in pairs(spec_adjscore[original_kw]) do
++            if val and is_subword(name, pat) then
++                if score > 0 or val < 0 then score = score + val end
++                deb_print('score', string.format(
++                    "Adjust by '%d' from specific pattern '%s'", val, pat))
++            end
++        end
++    end
++    -- adjust from global tables
++    if df.tree > -1 then
++        for pat, val in pairs(global_adjscore) do
++            if val and is_subword(name, pat) then
++                if score > 0 or val < 0 then score = score + val end
++                deb_print('score', string.format(
++                    "Adjust by '%d' from global pattern '%s'", val, pat))
++            end
++        end
++    end
++    deb_print('score', 'Final score: '..tostring(score))
++    df.score = score
++end
++
++-- suffixes for heuristic match
++local suffixes = {
++    'doc', '-doc', '_doc', '.doc', '/doc',
++    'manual', '/manual', '-manual',
++    'userguide',
++    '-guide',
++    '-user',
++    '-man',
++}
++
++-- compute a heuristic score 0 <= s < 10 
++function heuristic_score(file, pat)
++    deb_print('score', 'Start heuristic scoring with pattern: '..pat)
++    -- if extension is bad, score is 0
++    local ext = config.ext_list[ext_pos(file)]
++    if ext and config.badext_list_inv[ext] then
++        deb_print('score', 'Bad extension, heuristic score 0')
++        return 0
++    end
++    -- score management
++    local score = 0
++    local function upscore(s, reason)
++        if s > score then
++            score = s
++            deb_print('score', 'New heuristic score: '..tostring(s)
++                ..'. Reason: '..reason)
++        end
++    end
++    local slash = not not string.find(pat, '/', 1, true)
++    -- look for exact or subword match
++    if is_exact(file, pat) then
++        upscore(4, 'exact match')
++    elseif is_subword(file, pat) then
++        upscore(1, 'subword match')
++    end
++    -- try derivatives unless pat contains a slash
++    if not slash then
++        for _, suffix in ipairs(suffixes) do
++            local deriv = pat..suffix
++            if is_exact(file, deriv) then
++                upscore(3, 'exact match for derived pattern: '..deriv)
++            elseif is_subword(file, deriv) then
++                upscore(2, 'subword match for derived pattern: '..deriv)
++            end
++        end
++    end
++    -- bonus for being in the right directory
++    if score > 0 and not slash
++        and string.find('/'..file, '/'..pat..'/', 1, true) then
++        upscore(score + 0.5, 'directory bonus')
++    end
++    -- done
++    deb_print('score', 'Final heuristic score: '..tostring(score))
++    return score
++end
++
++-- says if file is an exact match for pat
++function is_exact(file, pat)
++    file = parse_zip(file)
++    local slashes = string.gsub(pat, '[^/]+', '[^/]+')
++    basename = string.match(file, slashes..'$')
++    if not basename then return nil end
++    if basename == pat then return true end
++    for _, ext in ipairs(config.ext_list) do
++        if ext ~= '' and ext ~= '*' and basename == pat..'.'..ext then
++            return true
++        end
++    end
++    return false
++end
++
++-- say if pat is a "subword" of str
++function is_subword(str, pat)
++    local i, j = string.find(str, pat, 1, true)
++    return not not (i and j
++        and (i == 1 or is_delim(str, i) or is_delim(str, i-1))
++        and (j == #str or is_delim(str, j) or is_delim(str, j+1)))
++end
++
++-- say if character i of str is a delimiter (ponctuation)
++function is_delim(str, i)
++    return not not string.find(string.sub(str, i, i), '%p')
++end
++
++-- compare two docfile's: (see search.tlu for structure)
++-- 1. by score
++-- 2. then by extensions (ordered as in ext_list),
++-- 3. then by tree,
++-- 4. then lexicographically by filename.
++-- return true if a is better than b
++function docfile_order (a, b)
++    if a.score > b.score then
++        return true
++    elseif a.score < b.score then
++        return false
++    else
++        a.ext_pos = a.ext_pos or ext_pos(a.name)
++        b.ext_pos = b.ext_pos or ext_pos(b.name)
++        if a.ext_pos < b.ext_pos then
++            return true
++        elseif a.ext_pos > b.ext_pos then
++            return false
++        elseif a.tree > b.tree then
++            return true
++        elseif a.tree < b.tree then
++            return false
++        else
++            return (a.name < b.name)
++        end
++    end
++end
++
++-- returns the index of the most specific extension of file in ext_list,
++-- or config.ext_list_max + 1
++function ext_pos(file)
++    -- remove zipext if applicable
++    file = parse_zip(file)
++    -- now find the extension
++    local p, e, pos, ext
++    for p, e in ipairs(config.ext_list) do
++        if (e == '*') and (ext == nil) then
++            pos, ext = p, e
++        elseif (e == '') and not string.find(file, '.', 1, true) then
++            pos, ext = p, e
++        elseif string.sub(file, -string.len(e)-1) == '.'..e then
++            if (ext == nil) or (ext == '*')
++                or (string.len(e) > string.len(ext)) then
++                pos, ext = p, e
++            end
++        end
++    end
++    return pos or (config.ext_list_max + 1)
++end
++
++-----------------------------   public functions   -----------------------------
++
++-- return the "quality" of docfile
++function docfile_quality(df)
++    if df.score > 0 then
++        return 'good'
++    elseif df.score > -100 then
++        return 'bad'
++    else
++        return 'killed'
++    end
++end
++
++-- sort a doclist
++function sort_doclist(dl, original_kw)
++    dl:stop()
++    set_list_scores(dl, original_kw)
++    table.sort(dl, docfile_order)
++end
++
++-- export a few symbols
++export_symbols(L, {
++    'sort_doclist',
++    'docfile_quality',
++    'confline_to_score',
++})
+Index: texlive-base-2009/texmf/scripts/texdoc/search.tlu
+===================================================================
+--- /dev/null	1970-01-01 00:00:00.000000000 +0000
++++ texlive-base-2009/texmf/scripts/texdoc/search.tlu	2010-01-03 11:23:04.000000000 +0900
+@@ -0,0 +1,369 @@
++-- File searching functions for texdoc.
++--[[ 
++Copyright 2008, 2009 Manuel Pégourié-Gonnard
++Distributed under the terms of the GNU GPL version 3 or later.
++See texdoc.tlu for details.
++--]]
++
++local L = {}
++load_env(L, {
++    'export_symbols',
++    'os', 'string', 'table', 'lfs', 'kpse', 'io', 
++    'ipairs', 'assert', 'error', 'tostring', 'setmetatable',
++    'deb_print', 'err_print', 'win32_hook', 'parse_zip',
++    'get_patterns', 'sort_doclist', 'docfile_quality',
++    'config', 'C',
++})
++
++-- shared by all functions in this file
++local s_doclist
++
++-----------------------   docfile and doclist objects   ------------------------
++
++-- doclist = {
++--     [1] = docfile1, [2] = docfiles2, ...,
++--     inv = { realpath1 = index1, ... }
++-- }
++--
++-- The inv subtable is such that for all i
++-- doclist.inv(doclist[i].realpath) == i
++
++local Doclist = {}
++Doclist.__index = Doclist
++
++-- create a new list of docfiles
++function Doclist:new()
++    local dl = { inv = {} }
++    setmetatable(dl, self)
++    return dl
++end
++
++-- add a docfile to a list
++function Doclist:add(df)
++    local index = self.inv[df.realpath]
++    if index then
++        self[index]:mergein(df)
++    else
++        local newindex = #self + 1
++        self[newindex] = df
++        self.inv[df.realpath] = newindex
++    end
++end
++
++-- stops a doclist
++function Doclist:stop()
++    self.inv = nil
++end
++
++-- docfile = {
++--     name     = filename (used for scoring only)
++--     tree     = code of the tree, see below
++--     matches  = {pattern1, pattern2, ...}
++-- }
++-- if tree > 1, this is the index of the tree in TEXDOCS
++-- if tree = 0, then name is relative to TLROOT (file found from tlpdb only)
++-- tree = - 1 if and only if file is a sty file. Here name is absolute.
++
++local Docfile = {}
++Docfile.__index = Docfile
++
++-- create a new docfile objet using initilisation info
++-- fields : name (relative to tree), tree, pattern
++function Docfile:new(info)
++    df = {}
++    setmetatable(df, self)
++    -- get realpath, tree and prepare name
++    df.tree = info.tree
++    if info.tree > 0 then
++        df.realpath = texdocs_tree_to_path(info.tree, info.name)
++    elseif info.tree == 0 then
++        error('Unimplemented')
++        df.realpath = get_tlroot()..'/'..info.name
++        info.name = string.gsub(info.name, '^texmf(-dist)?/doc/', '', 1)
++    elseif info.tree == -1 then
++        df.realpath = info.name
++    else
++        error('Internal error: bad tree number')
++    end
++    -- remove first component of name if at least two directory levels
++    if info.tree > -1 then
++        local name = string.match(info.name, '^..-/(.+/.+)$')
++        if name then
++            df.name = '/'..name
++        else
++            df.name = info.name
++        end
++    else
++        df.name = info.name
++    end
++    -- initialise the list of matches
++    if info.pattern then
++        df.matches = { info.pattern }
++    else
++        df.matches = {}
++    end
++    return df
++end
++
++-- merge a second docfile objet into self
++function Docfile:mergein(df)
++    if df.tree > self.tree then
++        self.name = df.name
++        self.tree = df.tree
++    end
++    for _, m in ipairs(df.matches) do
++        table.insert(self.matches, m)
++    end
++end
++
++-- from score.tlu
++Docfile.quality = docfile_quality
++
++------------------   get results from TEXDOCS (à la kpse)   -------------------
++
++do -- scope of doc_roots
++local doc_roots
++
++-- doc_roots is a Lua version of kpse's TEXDOCS
++-- structure of the doc_roots variable:
++-- doc_roots[i] = {
++--     path                 = <path>,
++--     index_mandatory      = <does path begin with !! in TEXDOCS?>
++--     recursion_allowed    = <does path ends with // in TEXDOCS?>,
++-- }
++
++-- set the doc_roots list from kpse's $TEXDOCS
++function get_texdocs ()
++    doc_roots = {}
++    local sep = (os.type == 'windows') and ';' or ':'
++    local kpse_texdocs = kpse.expand_var("$TEXDOCS")
++    -- expand the path and turn it into a lua list
++    local raw_doc_roots = string.explode(kpse.expand_braces(kpse_texdocs), sep)
++    local max = #raw_doc_roots + 1
++    for j, dir in ipairs(raw_doc_roots) do
++        local i = max - j
++        local dr = {}
++        local n
++        -- get path, !! and // values
++        dir, n = string.gsub (dir, '//$', '')
++        dr.recursion_allowed = (n == 1)
++        dr.path, n = string.gsub (dir, '^!!', '')
++        dr.index_mandatory = (n == 1)
++        deb_print('texdocs', string.format(
++            'texdocs[%d] = %s (index_mandatory=%s, recursion_allowed=%s)',
++            i, dr.path,
++            tostring(dr.index_mandatory),
++            tostring(dr.recursion_allowed)))
++        -- decide if we should use a ls-R index, the filesystem, or do nothing
++        local root, shift = lsr_root(dr.path)
++        if root and shift and dr.recursion_allowed then
++            dr.lsr = root
++            dr.lsr_shift = shift
++            deb_print('texdocs', string.format(
++                'texdocs[%d] using index: %s (shift=%s)', i, root, shift))
++        elseif not dr.index_mandatory and lfs.isdir(dr.path) then
++            dr.searchfs = true
++            deb_print('texdocs', string.format(
++                'texdocs[%d] using filesystem search', i))
++        end
++        -- register this in docroots
++        doc_roots[i] = dr
++    end
++end
++
++-- return the real path from a texdocs tree number + relative path
++function texdocs_tree_to_path(tree, rel)
++    if doc_roots == nil then get_texdocs() end
++    return win32_hook(doc_roots[tree].path..'/'..rel)
++end
++
++-- find docfiles in texdocs directories
++function get_doclist_texdocs(patlist)
++    if doc_roots == nil then get_texdocs() end
++    for code, dr in ipairs(doc_roots) do
++        if dr.lsr then
++            scan_lsr(patlist, code, dr.lsr, dr.lsr_shift)
++        elseif dr.searchfs then
++            scan_tree(patlist, code, dr.path, '', dr.recursion_allowed)
++        end
++    end
++end
++
++end -- scope of doc_roots
++
++-- find a ls-R file in a parent directory an return it or nil
++function lsr_root (path)
++    if not lfs.isdir (path) then return end
++    local root, shift = path, ''
++    if string.sub(root, -1) == '/' then root = string.sub(root, 1, -2) end
++    while string.find(root, '/', 1, true) do
++        if lfs.isfile(root..'/ls-R') then
++            return root, shift
++        end
++        local last_comp = string.match(root, '^.*/(.*)$')
++        -- /!\ cannot put last_comp in a regex: can contain special char
++        root = string.sub(root, 1, - (#last_comp + 2))
++        shift = last_comp..'/'..shift
++    end
++end
++
++-- scan a tree without ls-R file
++function scan_tree (patlist, code, base, cwd, recurse)
++    deb_print('filesea', "Entering directory: "..cwd)
++    for file in lfs.dir(base..'/'..cwd) do
++        if file ~= '.' and file ~= '..' then
++            local f = (cwd == '') and file or cwd..'/'..file
++            if lfs.isdir(base..'/'..f) then
++                if recurse then scan_tree(patlist, code, base, f, recurse) end
++            else
++                local df = process_file(patlist, file, f, code, true)
++                if df then s_doclist:add(df) end
++            end
++        end
++    end
++    deb_print('filesea', "Leaving directory: "..cwd)
++end
++
++-- scan a ls-R file
++function scan_lsr(patlist, code, cwd, shift)
++    local is_dir = {} -- is_dir[path] = true iff path is a dir
++    local results = Doclist:new()
++    local isdoc = false
++    local current_dir
++    local l = #shift
++    local lsr = assert(io.open(cwd..'/ls-R', 'r'))
++    local _ = lsr:read('*line') -- throw away first line (comment)
++    local maybe_dir = true -- next line may be a directory
++    while true do
++        local line = lsr:read('*line')
++        while line == '' do line, maybe_dir = lsr:read('*line'), true end
++        if line == nil then break end  -- EOF
++        local dir_line = maybe_dir and string.match (line, '^%./(.*):$')
++        if dir_line then
++            maybe_dir = false -- next line may not be a dir
++            if string.sub (dir_line, 1, l) == shift then
++                isdoc = true
++                current_dir = string.sub (dir_line, l+1)
++                is_dir[current_dir] = true
++                deb_print('lsrsea', 'Scanning directory: '..current_dir)
++            elseif isdoc then
++                deb_print('lsrsea', "Finished scanning: "..shift)
++                break -- we're exiting the ./doc (or shift) dir, so it's over
++            end
++        elseif isdoc then
++            local df = process_file(patlist, line, current_dir..'/'..line, code)
++            if df then results:add(df) end
++        end
++    end
++    lsr:close()
++    -- add non-directories to the list
++    for _, df in ipairs(results) do
++        if not is_dir[df.name] then
++            s_doclist:add(df)
++        end
++    end
++end
++
++-- says if file has a 'good' extenstion according to ext_list
++function check_ext(file)
++    file = string.lower(file)
++    -- remove zipext if applicable
++    file = parse_zip(file)
++    -- then do the normal thing
++    for _, e in ipairs(config.ext_list) do
++        if e == '*' then
++            return true
++        elseif (e == '') then
++            if not string.find(file, '.', 1, true) then
++                return true
++            end
++        else
++            local dot_e = '.'..e
++            if string.sub(file, -string.len(dot_e)) == dot_e then
++                return true
++            end
++        end
++    end
++    return false
++end
++
++-- return a docfile object if file "matches", nil ortherwise
++function process_file(patlist, file, pathfile, code)
++    deb_print('kpse', 'Processing file: '..pathfile)
++    local docfile
++    local pattern
++    for _, pattern in ipairs(patlist) do
++        if string.find(string.lower(pathfile), string.lower(pattern.name),
++                1, config.mode ~= 'regex') then
++            local good_ext = check_ext(file)
++            deb_print('kpse', string.format(
++                "File '%s' matches '%s'; good_ext=%s",
++                pathfile, pattern.name, tostring(good_ext)))
++            if good_ext then
++                local info = {
++                    name    = pathfile,
++                    tree    = code,
++                    pattern = pattern,
++                }
++                if docfile then
++                    docfile:mergein(Docfile:new(info))
++                else
++                    docfile = Docfile:new(info)
++                end
++            end
++        end
++    end
++    return docfile
++end
++
++----------------------------   look for sty files   ----------------------------
++
++-- add doclist entries for sty files in patlist
++function get_doclist_sty(patlist)
++    for _, pat in ipairs(patlist) do
++        local file = kpse.find_file(pat.name)
++        if file then
++            local df = Docfile:new({
++                name    = file,
++                tree    = -1,
++                pattern = pat,
++            })
++            s_doclist:add(df)
++        end
++    end
++end
++
++------------------------------   main function   -------------------------------
++
++-- find docfiles according to pattern
++function get_doclist(pattern)
++    -- get patterns (inc. aliases)
++    local normal, sty = normal_vs_sty(get_patterns(pattern))
++    -- initialise result list
++    s_doclist = Doclist:new()
++    -- get results
++    get_doclist_sty(sty)
++    get_doclist_texdocs(normal)
++    -- finally, sort results
++    sort_doclist(s_doclist, pattern)
++    return s_doclist
++end
++
++-- separate sty patterns from the rest
++function normal_vs_sty(list)
++    if config.mode == 'regex' then return list, {} end
++    local normal, sty = {}, {}
++    for _, p in ipairs(list) do
++        if string.match(string.lower(p.name), '%.([^/.]*)$') == 'sty' then
++            table.insert(sty, p)
++        else
++            table.insert(normal, p)
++        end
++    end
++    return normal, sty
++end
++
++-- finally export a few symbols
++export_symbols(L, {
++    'get_doclist',
++})
+Index: texlive-base-2009/texmf/scripts/texdoc/texdoc.tlu
+===================================================================
+--- texlive-base-2009.orig/texmf/scripts/texdoc/texdoc.tlu	2009-10-19 05:39:29.000000000 +0900
++++ texlive-base-2009/texmf/scripts/texdoc/texdoc.tlu	2010-01-03 11:23:04.000000000 +0900
+@@ -1,7 +1,6 @@
+ #!/usr/bin/env texlua
+--- $Id: texdoc.tlu 15829 2009-10-18 20:39:29Z mpg $ -*-Lua-*-
+ --[[
+-Copyright 2008, 2009 Manuel Pégourié-Gonnard.
++Copyright 2008, 2009 Manuel Pégourié-Gonnard.
+ 
+ This program is free software: you can redistribute it and/or modify it under
+ the terms of the GNU General Public License as published by the Free Software
+@@ -17,1061 +16,60 @@
+ 
+ Previous work in the public domain:
+ - Contributions from Reinhard Kotucha (2008).
+-- First texlua versions by Frank Küster (2007).
++- First texlua versions by Frank Küster (2007).
+ - Original shell script by Thomas Esser, David Aspinall, and Simon Wilkinson.
+ --]]
+ 
+---------------------------------------------------------------------------------
+-------------------   global constants and general functions   ------------------
+---------------------------------------------------------------------------------
+-
+------------------------------   global constants   -----------------------------
+-
+--- progname and version
+-progname = 'texdoc'