tex-common-6.13/0000755000000000000000000000000013571431426010425 5ustar tex-common-6.13/TODO0000644000000000000000000000072013571431426011114 0ustar * remove all the luajittex bla bla from tex-common * disable luajittex format in texlive-base * move all the trigger code into update-texmf-conf why? how should this work? * make distinction between trigger call and normal clal * rewrite policy and user documentation!!! - all config files handling has changed!!! - texmf.d handling has changed, changes to /etc/texmf/web2c/texmf.cnf are NOT USER EDITABLE ANYMORE exclusive use of /etc/texmf/texmf.d tex-common-6.13/conf/0000755000000000000000000000000013571431426011352 5ustar tex-common-6.13/conf/texmf.d/0000755000000000000000000000000013571431426012717 5ustar tex-common-6.13/conf/texmf.d/00debian.cnf0000644000000000000000000000003213571431426014764 0ustar VARTEXFONTS=/tmp/texfonts tex-common-6.13/debian/0000755000000000000000000000000013571431426011647 5ustar tex-common-6.13/debian/ChangeLog0000644000000000000000000000304513571431426013423 0ustar 2006-05-02 * Found files of unknown origin in avantgar.tfm * Work on pnsfss finished, started working on required font files 2006-04-27 * Wrote e-mail to amslatex upstream to clarify their license. 2006-04-25 * texinfo's README allows distribution "without royalty" - is this "no-sell"? It's probably just ambiguous wording, "in any medium" should be moved away from "without royalty". * Added tpm files for latex-beamer, pgf and xcolor, marked xcolor as verified in the Catalogue. To beamer.tpm, I added beamerexample-seminar.tex - whether this is free depends on the outcome of investigating seminar. * Filed bug against pgf (wrong copyright file), but it's still free, except maybe for some images. * File #364127 against latex-beamer, because I found out that beamer has files with unclear copyright. Let others care for other's business. 2006-04-11 * ltxmisc.tpm is added, but the individual files have not been checked * Wrote an e-mail to Axel Kielhorn (the address he uses in usenet, Axel.NoSpam@gmx.de, since the one in adrconv's files bounces * Fixed the tetex-src part of the script * Wrote an other mail to Lars Engebretsen, regarding ae fonts 2006-04-10 * tpm2licenses can now be installed and called with perl /usr/share/tex-common/tpm2licenses (or simply use dpkg-statoverride to make it executable...) * This file is actually a Change Log only for my copyright/license verification work tex-common-6.13/debian/NEWS0000644000000000000000000001152213571431426012347 0ustar tex-common (4.01) experimental; urgency=low * moving files from /usr/share/doc/texmf to /usr/share/texmf/doc when using dh_installtex: - please Build-depend on tex-common (>= 4.01) - install the files in /usr/share/texmf/doc no further steps are necessary, dh_installtex automatically adds the necessary dependencies (either >= 4 if /usr/share/texmf/doc is present in the package, otherwise >= 3) -- Norbert Preining Wed, 19 Dec 2012 13:09:07 +0900 tex-common (4.00) experimental; urgency=low * documentation file changes: the link from /usr/share/texmf/doc to /usr/share/doc/texmf is dropped. That means that the documentation of packages putting them into /usr/share/doc/texmf will not be found by texdoc anymore. Package should be rebuild with an added dependency on tex-common (>= 4~) and put documentation to be found by texdoc into /usr/share/texmf/doc (according to TDS standard), and other docs into /usr/share/doc/$package, but nothing into /usr/share/doc/texmf -- Norbert Preining Mon, 17 Dec 2012 22:43:14 +0900 tex-common (3.7) unstable; urgency=low * updmap file handling changed For users: If you are using PostScript fonts that are not packaged for Debian, some changes have been done: updmap now reads *all* updmap.cfg files it finds. That means, the easiest way to activate local fonts (in TEXMFLOCAL) by putting the respective map lines into /usr/local/share/texmf/web2c/updmap.cfg, and call updmap-sys once (as root). If you have fonts in your home directory you want to activate, paralleling the above you put the respective map line into $HOME/texmf/web2c/updmap.cfg and call updmap (as user). But be reminded that you have to do that everytime system fonts have changed (there is no automatic syncronization between user specific and system wide updmap(-sys) generated files). For developers: Since version 3 of tex-common, which conincides and requires TeX Live 2011 and upward, updmap now behaves differently then before: It reads *all* available updmap.cfg files. That means that the handling of updmap.d snippets in /etc/texmf/updmap.d has changed. Packages rebuild with tex-common >= 3 will not install anything in this directory. Old, especially Debian external, font packages that still use the old (updmap.d) mechanism are (as of 3.7) still supported, but with warnings. Please rebuild these packages with a newer tex-common. -- Norbert Preining Thu, 12 Apr 2012 07:53:27 +0900 tex-common (1.8) unstable; urgency=low * Manually 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. tex-common is also affected, because tetex-base removed /etc/texmf/web2c/mktex.cnf. This file isn't strictly needed, but it is very much recommended that you reinstall it. You can find a copy in /usr/share/tex-common/. -- Frank Küster Thu, 31 May 2007 10:32:21 +0200 tex-common (1.4) unstable; urgency=low * Filename database in $TEXMFHOME is no longer created and updated The ls-R filename database in $TEXMFHOME, $HOME/texmf, is no longer created in new installs, and also not updated by default. This makes sense unless you have a very large number of files installed in that tree. However, you MUST remove the old file $HOME/texmf/ls-R in order to allow TeX to find new files in that hierarchy! * Backwards compatibility hacks dropped In etch, some tools and search paths still supported obsolete paths and invocations. These backwards compatibility hacks, most notably to the *-sys tools and font search paths, have now been dropped. * The parse-first-line feature is now enabled by default, in order to allow MetaPost to call TeX with different formats. Only when invoked as "teX" it is disabled to remain Knuth-compatible. -- Frank Küster Mon, 2 Apr 2007 13:42:06 +0200 tex-common (0.26) unstable; urgency=low * New font cache handling The font cache handling has been reworked completely. By default, a separate font cache is kept for each user. If you want to re-enable site-wide caching, see the instructions in README.Debian. On systems where $HOME is not writable, fonts will be temporarily cached in /tmp/texfonts. * Breakage with TeXLive The texlive packages as of version 2005-2 do not automatically create a user's TEXMFVAR directory for font caching. This might break document processing in some configurations. Simply create the directory $HOME/.texmf-var manually to fix this. -- Frank Küster Mon, 3 Jul 2006 15:25:26 +0200 tex-common-6.13/debian/changelog0000644000000000000000000020534213571431426013527 0ustar tex-common (6.13) unstable; urgency=medium * fmtutil shouldn't fail on missing luahbtex * ensure dh_installtex induced deps are on tex-common >= 6.13 -- Norbert Preining Tue, 03 Dec 2019 19:04:06 +0900 tex-common (6.12) unstable; urgency=medium * trigger ls-R rebuilds also for /usr/share/doc/texlive-doc which is linked to /usr/share/texlive/texmf-dist/doc (Closes: #933517) -- Norbert Preining Wed, 31 Jul 2019 16:21:24 +0900 tex-common (6.11) unstable; urgency=medium * update VCS fields and my email -- Norbert Preining Thu, 28 Feb 2019 23:28:40 +0900 tex-common (6.10) unstable; urgency=medium * Fix URL's of Vcs-Git & Vcs-Browser (Closes: #900185) * remove priority from dh-installtex, break against old cm-super using it * bump standards version, no changes necessary -- Norbert Preining Sun, 02 Sep 2018 21:32:33 +0900 tex-common (6.09) unstable; urgency=medium * set LANG to C before running fmtutil, in case it is not set, otherwise luatex might not build (Closes: #872012) -- Norbert Preining Thu, 17 Aug 2017 14:38:09 +0900 tex-common (6.08) unstable; urgency=medium * remove Florent and Frank from the list of uploaders, thanks for your work (Closes: #869311) * add $VERSION to dh_installtex (Closes: #872168) * update-texmf: add -o|--output option (Closes: #267567) * remove completely outdated and wrong documentation, and remove build dep on debiandoc (Closes: #663281) -- Norbert Preining Tue, 15 Aug 2017 11:51:38 +0900 tex-common (6.07) unstable; urgency=medium * use texlive-base:all in dpkg query, to make sure no rogue :ARCH package interferes with the output (Closes: #865300) * switch all triggers to -noawait (Closes: #865723) * bump standards version to 4.0.0, no changes necessary -- Norbert Preining Sat, 24 Jun 2017 21:20:59 +0900 tex-common (6.06) unstable; urgency=medium * add mfluajit to the no-error-if-no-engine args as with upstream * remove /v/l/texmf/web2c/fmtutil.cnf, otherwise fmtutil picks up old config files (Closes: #851598) * bump standards version and dh compat, no changes necessary -- Norbert Preining Tue, 17 Jan 2017 11:45:34 +0900 tex-common (6.05) unstable; urgency=medium * fmtutil calling convention updated, switch to --strict * fmtutil: call --byhyphen with file name unexpanded (Closes: #815416) * bump standards version, no changes necessary * adjust vcs-browser location * dh_clean -> dh_prep in rules file -- Norbert Preining Mon, 22 Feb 2016 20:14:06 +0900 tex-common (6.04) unstable; urgency=medium * set Multi-Arch: foreign -- Norbert Preining Wed, 14 Oct 2015 12:48:21 +0900 tex-common (6.03) unstable; urgency=medium * do not create temp files in / (Closes: #797381) * work on the documentation -- Norbert Preining Thu, 03 Sep 2015 09:22:38 +0900 tex-common (6.02) unstable; urgency=medium * add help2man to build-deps (Closes: #790101) -- Norbert Preining Sat, 27 Jun 2015 23:05:12 +0900 tex-common (6.01) unstable; urgency=medium * upload to unstable -- Norbert Preining Thu, 25 Jun 2015 14:41:33 +0900 tex-common (6.00) experimental; urgency=medium * remove Atsuhito Kohda from uploaders, he has retired. Thanks for the long years of work! (Closes: #773961) * remove redundant code in postinst (Closes: #777558) * rework fmtutil/hyphen handling in the same way as updmap handling * switch to trigger activated format building * try to ensure reproducible builds in files generated by dh_installtex * dh_installtex: remove generated dep on dpkg (Closes: #787906) -- Norbert Preining Sun, 07 Jun 2015 10:27:15 +0900 tex-common (5.03) unstable; urgency=medium * remove C.M. Connelly from uploaders, MIA (Closes: #765326) * bump standards version, no changes necessary * delete misleading/outdated paragraph from Debian TeX Policy -- Norbert Preining Tue, 21 Oct 2014 09:44:31 +0900 tex-common (5.02) unstable; urgency=medium * call fmtutil-sys with --no-error-if-no-engine=luajittex following upstream, as there are some architectures that do not support luajittex -- Norbert Preining Fri, 30 May 2014 17:58:17 +0900 tex-common (5.01) unstable; urgency=medium * upload to unstable -- Norbert Preining Wed, 28 May 2014 17:55:12 +0900 tex-common (5.00) experimental; urgency=low * fix man page of update-updmap (Closes: #717070) * exchange the check for kpsewhich running with a check for texlive-binaries being installed/configured. Otherwise we might run into library upgrade problems (missing symbols due to missing so bump upstream). This is done both in the debian/postinst as well as the postinst-tex code for dh_installtex. * only call mktexlsr for tl/texmf-dist tree, the tl/texmf tree is gone * bump standards to 3.9.5, no changes necessary -- Norbert Preining Thu, 22 May 2014 10:53:13 +0900 tex-common (4.04) unstable; urgency=low * remove thailatex's patched version of babel.sty (Closes: #712297) * break against thailatex versions older than 2013 to make sure that no patching of babel.sty occurs. * bump standards version to 3.9.4, no changes necessary -- Norbert Preining Sat, 15 Jun 2013 17:00:51 +0900 tex-common (4.03) unstable; urgency=low * update-fmtlang: make sure we find the head files in both the old (<= TL2012, ie texlive/texmf/) and new (>= TL2013, ie texlive/texmf-dist) -- Norbert Preining Sun, 12 May 2013 19:09:17 +0900 tex-common (4.02) unstable; urgency=low * dh_installtex: properly deal with already existing format links (error out if present and not agreeing) -- Norbert Preining Tue, 07 May 2013 11:21:54 +0900 tex-common (4.01) experimental; urgency=low * dh_installtex: if the dir /usr/share/texmf/doc is found in the a package, then the generated tex-common dependency is >= 4 -- Norbert Preining Wed, 19 Dec 2012 13:10:52 +0900 tex-common (4.00) experimental; urgency=low * drop the link from /u/s/texmf/doc -> /u/s/doc/texmf here was never a need for having /usr/share/doc/texmf at all * break with all packages having installed files into /usr/share/texmf/doc * remove stale code that deals with upgrades from versions < 3 * adapt documentation a bit to reality -- Norbert Preining Mon, 17 Dec 2012 22:42:13 +0900 tex-common (3.15) unstable; urgency=high * break against old latex-cjk-chinese shipping not working hyphenation definitons (Closes: #697669) -- Norbert Preining Thu, 10 Jan 2013 07:45:09 +0900 tex-common (3.14) unstable; urgency=low * breaks texlive-lang-arab to ensure its removal during upgrades from lenny -> squeeze -> wheezy (Closes: #694258) (thanks Andreas Beckmann) -- Norbert Preining Sun, 25 Nov 2012 11:16:02 +0900 tex-common (3.13) unstable; urgency=high * rebuild all updmap.cfg files regardless of presence of snippets this is necessary to make sure that after the last package in TEXFMDEBIAN has disappeared, the updmap.cfg file is empty (Closes: #677698) (urgency high, as this is actually a critical bug since users cannot easily fix the updmap.cfg file without manual intervention) -- Norbert Preining Mon, 18 Jun 2012 10:19:41 +0900 tex-common (3.12) unstable; urgency=low * mention NEWS.Debian in the update-updmap warning * break against old luatex, it cannot find the necessary files (Closes: #613013, #676716) -- Norbert Preining Sat, 09 Jun 2012 11:40:37 +0900 tex-common (3.11) unstable; urgency=low * don't break if texmf.cnf is already removed (Closes: #671610, #672269) * ship a html redirect file as README.Debian.html instead of a link so that hrefs work (Closes: #657677) * remove references to teTeX in all relevant places (Closes: #511710) -- Norbert Preining Thu, 10 May 2012 07:11:07 +0900 tex-common (3.10) unstable; urgency=low * fix IFS error that prevents newer hyph-utf8 to get configured -- Norbert Preining Mon, 23 Apr 2012 23:03:22 +0900 tex-common (3.9) unstable; urgency=low * break against old version of jadetex that contains wrong and outdated format definitions (Closes: #668762) -- Norbert Preining Mon, 23 Apr 2012 12:00:23 +0900 tex-common (3.8) unstable; urgency=low * update NEWS to include a paragraph for users * add a warning if one of the update-* fails due to missing checkfile, that the package has to be reinstalled with --force-confmiss * add lost definitions of TEXMFTREES, FULLTEXMFTREES, TEXMFSYSVAR to postinst, which made run mktexlsr *always* in unprotected mode (Closes: #668661) -- Norbert Preining Sat, 14 Apr 2012 08:41:08 +0900 tex-common (3.7) unstable; urgency=low * do not create /etc/texmf/language.d, and try to remove it in postinst * update-updmap now includes snippets from /etc/texmf/updmap.d which might be installed by Debian-external packages, but gives big warnings * dh_installtex: fix an error in the logic when to add a (magic) header to the snippets, which resulted in all the updmap snippets still containing the magic header (no harm done, though!) -- Norbert Preining Wed, 11 Apr 2012 08:46:18 +0900 tex-common (3.6) unstable; urgency=low * update-texmf: sort list of files to be included (Closes: #665767) * set VARTEXFONTS to /tmp/texfonts again, otherwise buildd break (Closes: #666637, #666613) -- Norbert Preining Mon, 02 Apr 2012 09:25:33 +0900 tex-common (3.5) unstable; urgency=low * fix bashism in update-texmf (Closes: #665438, #665457) * rebuild the pdfs, so that at package build time no tex system is necessary (Closes: #665633) -- Norbert Preining Sun, 25 Mar 2012 09:43:32 +0900 tex-common (3.4) unstable; urgency=low * implement support for generation of language.dat.lua for luatex based formats: - extended update-fmtlang - change and extended the format of files in hyphen.d (needs rebuild of all providing packages!) - adapt dh_installtex for new format * start fixing the TeX-Debian-Policy document * do not add a universal fail clause in the debhelper generated maintainer scripts parts if the script is called with an unknown argument (scripts/post{inst,rm}-tex) * lintian warning: add addition makefile targets * doc: first run on updated documentation -- Norbert Preining Thu, 22 Mar 2012 18:08:18 +0900 tex-common (3.3) experimental; urgency=low [ Norbert Preining ] * remove tpm2licenses, Tpm.pm, FileUtils.pm, this script is hopelessly useless now that we don't have tpm files. * fix report-bug script configuration [ Hilmar Preuße ] * add new Polish debconf translation (Closes: #662094) -- Norbert Preining Wed, 14 Mar 2012 16:55:00 +0900 tex-common (3.2) experimental; urgency=low * clean up 3.1 changelog entry * don't run upgrade code on new install * don't create and remove texmf.cnf if no texmf.d conffiles are present -- Norbert Preining Sat, 10 Mar 2012 10:49:30 +0900 tex-common (3.1) experimental; urgency=low * only try to remove /etc/texmf/web2c if it is still here (Closes: #663029) * add missing break against tex-gyre <= 2.004.1-2.1 (Closes: #663173) * remove old ucf managed files with ucf instead of dpkg-maintscript-helper (Closes: #663092) * clean upgrade from tex-common < 3, move settings in 00updmap.cfg over to /etc/texmf/web2c/updmap.cfg -- Norbert Preining Sat, 10 Mar 2012 08:48:22 +0900 tex-common (3.0) experimental; urgency=low * remove all texmf.d conf files * remove /var/lib/texmf/web2c/updmap.cfg in the postinst, it is disturbing! * properly treat KanjiMap entries in dh_installtex * postinst-tex: don't break if a fmt.d snipped has been removed * bump up to 3.0, updmap.cfg is now managed differently with multi enabled updmap, so all the local adaptions are not necessary anymore * add calls to mtxrun --generate to the mktexlsr trigger action in case context is installed * add new Dutch translation (Closes: #652627) * bump standards version, no changes necessary * add Breaks against old versions of all packages shipping files in updmap.d -- Norbert Preining Tue, 06 Mar 2012 20:06:47 +0900 tex-common (2.10) unstable; urgency=low [ Norbert Preining ] * generated postrm code does not remove metapost format since the engine was not rewritten, fix that with a special case in dh_installtex (needs rebuild of texlive-metapost, context) (Closes: #619358) * bump standards version to 3.9.2, no changes needed [ Frank Küster ] * double-escape backslash in a printf string, thanks to Steve Langasek (closes: #622938) -- Norbert Preining Sun, 26 Jun 2011 09:00:08 +0900 tex-common (2.09) unstable; urgency=high * fix creation of ls-R files in /usr/local/share/texmf by updmap-sys which is called in the trigger section of tex-common's postinst. This fixes a policy violation. (Closes: #607857) * update Danish translation (Closes: #608423) * disable shell escape completely (fix for CVE-2011-1400, DSA-2198-1) * bump standards version to 3.9.1, no changes necessary -- Norbert Preining Wed, 23 Mar 2011 09:42:02 +0900 tex-common (2.08) unstable; urgency=low * include again 80DVIPDFMx.cnf and replace dvipdfmx (if it is still there) to make it search for cmaps (Closes: #572921) (patch by YOSHINO Yoshihito) * put TeX-on-Debian into doc-base section Typesetting (Closes: #536343) -- Norbert Preining Wed, 09 Jun 2010 01:32:21 +0900 tex-common (2.07) unstable; urgency=high * reword the language.{dat,def} trigger action's message to include the name of the base format (Closes: #566915) * convert some files to UTF8 * work around an under-specification of dpkg-query that makes the calls to it in the configure script break configuration, and thus creates FTBFS of unrelated packages (Closes: #571334) * bump standards version to 3.8.4, no changes necessary -- Norbert Preining Sun, 28 Feb 2010 13:13:35 +0900 tex-common (2.06) unstable; urgency=high * call mktexlsr with list of trees in lsr trigger action (Closes: #564457) -- Norbert Preining Tue, 12 Jan 2010 20:32:14 +0900 tex-common (2.05) unstable; urgency=low * update language.def based formats in the texmf-hyphen trigger option, otherwise updating hyphenation patterns does not have any effect on those formats (Closes: #562918) -- Norbert Preining Tue, 29 Dec 2009 17:48:08 +0900 tex-common (2.04) unstable; urgency=low * fix bug in dh_installtex that added a rogue newline in hyphenation definitions, thanks Danai (Closes: #562783) -- Norbert Preining Mon, 28 Dec 2009 07:05:31 +0900 tex-common (2.03) unstable; urgency=low * only call fmtutil-sys in postinst if texlive-base is configured (Closes: #560854) -- Norbert Preining Sun, 13 Dec 2009 07:50:25 +0900 tex-common (2.02) unstable; urgency=low * upload to unstable -- Norbert Preining Wed, 09 Dec 2009 23:44:02 +0900 tex-common (2.01) experimental; urgency=low * Remove setting of MPXCOMMAND. MetaPost in TeXLive 2009 no longer needs it, and is broken when it is set. [fk] * postinst trigger action: run updmap sys action only if texlive-base installed since otherwise updmap-sys will break * bump standards version to 3.8.3 * bump depends to << 2009 (there was no 2008 anyway) -- Norbert Preining Thu, 03 Dec 2009 22:32:27 +0900 tex-common (2.00) experimental; urgency=low * new experimental branch for changes necessary to support TeX Live 2008 and later that introduced hyphenation pattern support for etex based formats. language.def is now managed like language.dat. - add support for generating language.def to update-fontlang - install those scripts as update-language-def and update-language-dat - make update-language work as calling both of the above - adjust dh_installtex to accept new syntax * Make the wording of the warning message in postrm-texlsr broader, since there are a couple of reasons why this can fail * postrm's generated by dh_installtex now no longer assume that tex-common is installed when the package is removed. After a rebuild of texlive, this will fix #531581. * Update some texmf.cnf settings for TeXLive 2009. Before uploading to unstable, this needs a closer inspection (in particular, comment changes possibly cluttering diffs. * Add a Conflicts on old texlive-common, in order to force an upgrade of all the packages in one bunch. * implement trigger support for mktexlsr -- Frank Küster Thu, 15 Oct 2009 10:22:22 +0200 tex-common (1.20) unstable; urgency=low * after the change to tex-common's postinst script the ls-R file for /var/lib/texmf was not recreated, which breaks installation. Add this tree to the trigger call to mktexlsr (Closes: #532525) -- Norbert Preining Tue, 09 Jun 2009 22:37:03 +0200 tex-common (1.19) unstable; urgency=low [ Norbert Preining ] * change dh_installtex generated postrm code to call update-texmf-config only if it is present. That should be due to the policy, but it still might happen that tex-common is not installed bug another package depending on it is tried to be removed (see bug #531581). (Closes: #530832) * Remove the code in postrm that removes /usr/local/share/texmf/ls-R, we are not allowed to do that (policy), but we try to remove that directory if it is empty. (Closes: #528021) [ Frank Küster ] * Make sure that tex-common's own postinst script does not create /usr/local/share/texmf/ls-R (closes: #528021) -- Frank Küster Sun, 07 Jun 2009 21:53:07 +0200 tex-common (1.18) unstable; urgency=low * make sure that fmtutil-sys --all and updmap-sys are called on new installations when tex-common is configured, since new installations do not trigger. This bug fixes via rebuild of texlive-base #520042, #520410, and via rebuild of #520449. * bump the dh_installtex induced dependency on tex-common to 1.18 * rework trigger support so that new file triggers are used, but the code in the maintainer scripts generated by dh_installtex for updmap and language calls the new script update-texmf-config which simply calls the respective trigger. In the course of the the options map:notriggers and language:notriggers were removed from the possible options of dh_installtex. -- Norbert Preining Mon, 13 Apr 2009 22:33:23 +0200 tex-common (1.17) unstable; urgency=low * remove developer only information from debian/NEWS (Closes: #519964) and include the information in the changelog entry for 1.15. * using dh_installtex --flavor formats:build_all breaks because we removed the calls to update-fmtutil etc. Readd all those calls (Closes: #520166) * bump standards version to 3.8.1, no changes needed -- Norbert Preining Tue, 17 Mar 2009 21:57:47 +0100 tex-common (1.16) unstable; urgency=low * add mktexlsr calling code from postinst-tex to the trigger action in case it has never been run before. That allows fresh installations to succeed. (Closes: #519701) [np] -- Norbert Preining Sat, 14 Mar 2009 16:57:24 +0100 tex-common (1.15) unstable; urgency=low [ Norbert Preining ] * upload of trigger-enabled tex-common to unstable, packages should be rebuild. Triggers are supported for files dropped into /etc/texmf/updmap.d and /etc/texmf/language.d, i.e., for calls to updmap-sys and fmtutil-sys (when hyphenation patterns are used). If packages need to install fonts/hyphenation patterns and need them active in the postinst already, it should call dh_installtex with --flavor=map:notriggers or --flavor=language:notriggers Until all packages have been rebuilt with the new dh_installtex updmap-sys and fmtutil-sys will be called two times. * remove references to teTeX from the man pages (Closes: #486369) * bump dh compat level to 5, adjust debian/control * add ${misc:Depends} to dependencies [ Jan Hauke Rahm ] * make debhelper's '--with' option available for tex-common. dh_installtex can now be integrated in debian/rules via 'dh install --with tex' when using compat 7 -- Norbert Preining Tue, 10 Mar 2009 18:36:33 +0100 tex-common (1.14) experimental; urgency=low * fix coding error in dh_installtex's pod documentation [np] * updated Romanian translation (ro.po) (Closes: #506038) [hilmar-guest] * add a fix for dh_installtex to work with debhelper >= 7.1.0 (experimental) (Closes: #507365) (patch from Roderich Schupp) [np] -- Norbert Preining Mon, 01 Dec 2008 17:31:26 +0100 tex-common (1.13) experimental; urgency=low * bump standards version to 3.8.0, no changes necessary [np] * use the local keyword in policy compliant way [np] * replace emacs with share/texmf in postinst.in [np] * add updated version of sv.po (Closes: #491426) [hilmar-guest] * Fix dh_installtex compatibility with debhelper version >= 6 (Closes: #492604) [np] -- Norbert Preining Sat, 02 Aug 2008 13:04:18 +0200 tex-common (1.12) experimental; urgency=low * bump version of tex-common packages built with dh_installtex to 1.11 otherwise the conflict with tetex-base is not included properly. This really would close #467330, but due to the disappearance of 1.10 the last version is also sufficient [np] * Create empty /usr/local/share/texmf in postinst, remove in prerm if empty, with code taken from the Policy manual. The decision whether local documentation should be in the texmf tree or in /usr/local/share/doc and accessed via a symlink is left to the local admin (closes: 475077) [fk] * Removed the tetex-bin-upgrade script from the source, it is not needed nor installed, anyway [fk] * register TeX on Debian and the Policy in section Debian [hp, np] * remove double definition of OPENTYPEFONTS in texmf.d [np] * fix wrong file link in Debian-TeX-Policy.sgml (Closes: #481038) * Again install the README file for tpm2licenses in /usr/share/tex-common/ [fk] * implement support for triggers for /etc/texmf/updmap.d and /etc/texmf/language.d [np] -- Norbert Preining Mon, 02 Jun 2008 16:41:31 +0200 tex-common (1.11) unstable; urgency=medium * bump version of tex-common packages built with dh_installtex to 1.10 since it is the version that removes the tetex part (see #466036) [np] * And Conflict with tetex-base (<< 2007), in order to force a /complete/ transition to texlive in lenny (closes: #467330). At the same time, drop the conflict with tetex-bin, since tetex-base already does that. However, when and if we remove the tetex-base package, we need to find a different solution for this [fk] * These two changes fix RC bugs, hence the urgency [fk] * Another update run for debconf translations [hilmar-guest] - Vietnamese (Closes: #453780) * change the definition of TEXFORMATS to prohibit the finding of wrong formats (and be in sync with upstream TeX Live), and remove the trailing // of MFBASES and MPMEMS. [np] * update po files [np] * bump standards version to 3.7.3, no changes necessary [np] * move the build stuff to binary-indep, the package is arch=all [np] -- Frank Küster Wed, 16 Apr 2008 21:54:38 +0200 tex-common (1.10) unstable; urgency=low * update-fontlang: - properly handle file paths containing spaces; - when the jadetex or xmltex snippet is not included, write an explanation to fmtutil.cnf; - only trigger special behavior on 40jadetex.cnf, not on *40jadetex.cnf; same thing with 40xmltex.cnf and 10texlive-latex-base.cnf; - use 0 and 1 instead of "false" and "true" for $seen_latex in order to be consistent with the rest of the script. [florent] * add warning to the pod documentation / man page of dh_installtex that it will add management calls to *all* packages if not instructed otherwise (Closes: #400742) [np] * remove duplicate TEXDOC configuration in 45TeXinputs.cnf which gave .html a higher priority then pdf.gz. Thanks Jörg. (Closes: #431610) [np] * Remove some outdated stuff in TeX-on-Debian [np] * remove the tetex part in TEXMFDIST, remove TETEXDIR from TEXMFCNF [np] * add Vcs-Svn and Vcs-Browser fields to debian/control [np] * update debconf template and package descriptions in control file (Closes: #447689) [hilmar-guest] * l10n updates + additions [hilmar-guest] - Basque (Closes: #448485) - Catalan - Czech (Closes: #449263) - Danish - Dutch - Finnish (Closes: 448291) - French (Closes: #450704) - Galician (Closes: #448232) - German (Closes: #448245) - Italian (Closes: #448367) - Japanese (Closes: #448680) - Korean (Closes: #448436) - Lithuanian (Closes: #448705) - Norwegian Bokmål (Closes: #450911) - Portuguese (Closes: #449234) - Portuguese/Brazil - Russian (Closes: #450726) - Romanian - Spanish (Closes: #448541) - Swedish - Turkish - Vietnamese -- Norbert Preining Wed, 21 Nov 2007 09:26:01 +0100 tex-common (1.9) unstable; urgency=low * Make sure that update-fontlang detects TEXMFVAR properly even if the directory does not yet exist (closes: #428448) [fk]. * let update-fontlang and debianize-updmap create TEXMFCONFIG if it doesn't exist yet (at least when there's only one directory in that variable) [fk]. -- Frank Küster Tue, 19 Jun 2007 11:32:09 +0200 tex-common (1.8) unstable; urgency=medium * Bump urgency since this fixes a RC bug which hits anyone upgrading from lenny to sid and triggers a forkbomb. Urgency only medium because of the long list of unrelated other changes. [fk] * Add a workaround for the fork bomb problem in format generation: Ignore jadetex and xmltex if latex is not present (closes: #427562) [fk] * make proper ucfr checking in maintainer scripts (Closes: #409897) [np] * rework the code generated by dh_installtex in the postinst script. Now at postinst/configure time fmtutil-sys is called with --all --cnffile where are the fmt.d config files installed by the package. This way a dpkg-reconfigure will create *all* formats defined in the config file, even if the sysadm has defined additional formats. (Closes: #418983) [np] * Update snippets in texmf.d according to a reordering patch accepted upstream [fk] * (first) rework of Debian-on-TeX document for TeX Live only [np] * add a list of old files from teTeX which can be removed * Do not install unused 01tetex.cnf and its md5sum file [fk] * dh_installtex: rewrite $engine to metafont if $engine = mf|mf-nowin * Install a copy of mktex.cnf in /usr/share/tex-common, and advice in NEWS.Debian to reinstall it. [fk] * Debconf translations: Added Vietnamese translation, thanks to Clytie Siddall (closes: #426881) * implement an opion --nosourcefiles for tpm2licenses to not check source files * Add symlinks "README.Debian.$ext" to the respective "TeX-on-Debian" formats. [fk] -- Frank Küster Mon, 11 Jun 2007 10:14:14 +0200 tex-common (1.7) unstable; urgency=low * Undo the changes of the autoscripts snippets ordering, debhelper has changed back to the former method. -- Norbert Preining Sat, 14 Apr 2007 08:39:46 +0200 tex-common (1.6) unstable; urgency=low * Document in NEWS.Debian that support for ls-R in TEXMFHOME has been dropped [fk] * Policy: Add a chapter on meta-packages and document that they are usually not acceptable as dependencies * reverse the order of autoscripts snippets in postrm (Closes: #418984) * change alternative dep on cdebconf to (>= 0.39), lintian error. -- Norbert Preining Fri, 13 Apr 2007 09:34:44 +0200 tex-common (1.5) unstable; urgency=low * fix missing tetex component of TEXMFDIST (Closes: #418674) -- Norbert Preining Wed, 11 Apr 2007 09:45:29 +0200 tex-common (1.4) unstable; urgency=low * Change main_memory to 1500000 to go with the main_memory of mpost and TeX Live's texmf.cnf. This change is needed to make mpost work under all circumstances [np]. * Update settings and comments in the texmf.cnf snippets to match upstream's as close as possible [fk] * Drop backwards compatibility hacks for paths (see NEWS.Debian) [fk] * Enable parse-first-line feature, except for Knuth's "tex". [fk] * Update Tpm.pm and FileUtils.pm from TeXLive 2007 [fk] -- Norbert Preining Tue, 10 Apr 2007 17:52:56 +0200 tex-common (1.3) experimental; urgency=low * Fix typography in Debian-on-TeX, thanks to Miguel de Val Borro (closes: #413449) [frank] * In the source package, replace 'tex-sed' with a Python script named 'texify-tex-output' to do a better job (handling all known cases so far, some of which seemed rather difficult to implement in sed). We don't need to Build-Depend on Python, because this script is only used when we generate PDF output from the DebianDoc documents (Debian-TeX-Policy, TeX-on-Debian), which we don't do at build time in order to avoid chicken-and-egg problems. [florent] * Add engine subdirectories to the search paths for MetaFont and MetaPost, too. Thanks to Jörg Sommer * Change the dh_installtex removal logic since format dumps are placed into engine subdirectories. We now remove all format dumps and log files in /v/l/t/web2c and /v/l/t/web2c/$engine/ -- Norbert Preining Thu, 22 Mar 2007 01:28:27 +0100 tex-common (1.2) experimental; urgency=low * rename flavor format:no_format_links to format:no_links (nobody is using it already), and document it [NP] * increase trie_size to 400000 to allow the loading of all texlive hyphenation patterns [NP] * Make sure that dh_installtex's postrm snippets won't try to run fmtutil-sys when it might be already uninstalled. -- Frank Küster Fri, 9 Mar 2007 16:12:17 +0100 tex-common (1.1) experimental; urgency=low * Upload to experimental. This version is needed to build TeXLive 2007. * Increase trie_size to the value in TeXLive 2007, and update the comment from their texmf.in file, too. * Only strip comments with '^[ \t]*# ' from the auto files to preserve comments starting with ## [NP] * small fix to dh_installtex for useless inclusion of postinst-tex (move the definition of $dothefullstuff into the package loop) * implement flavors format:build_all and format:add_one:formatname * let dh_installtex automatically create links for formats installed and add flavor to disable this behaviour. * fix a bug in dh_installtex which prohibits --priority to work correctly for command line config files. [NP] * add Norbert Preining to the uploaders * add lintian overrides for wrongly detected bashism -- Norbert Preining Mon, 26 Feb 2007 18:31:32 +0100 tex-common (1.0) unstable; urgency=low * Release as version 1.0, tex-common has been stable for months and deserves a non-zero version number * Debconf translations: [frank] - New Romanian translation, thanks to Eddy Petrișor (closes: #409267) - New Portuguese Brazilian translation, thanks to the Traduz MailingList (closes: #408866) - Updated Catalan translation, thanks to Guillem Jover (closes: #409162) -- Frank Küster Mon, 5 Feb 2007 10:55:26 +0100 tex-common (0.44) unstable; urgency=low * Use full pathname when registering files with ucf (closes: #408263) * New and updated debconf translations: - Galician by Jacobo Tarrio (closes: #408122) -- Frank Küster Fri, 26 Jan 2007 18:10:23 +0100 tex-common (0.43) unstable; urgency=low * Register documentation in section TeX instead of Text (closes: #403086) [frank] * Debconf translations: - add Russian translation, thanks to Yuri Kozlov (closes: #406872) -- Frank Küster Mon, 15 Jan 2007 07:51:34 +0100 tex-common (0.42) unstable; urgency=low * Documentation fixes to update-fontlang.1: - the .TH line was broken, causing an ugly footer in the formatted manpage; - the SYNOPSIS had an incorrect syntax ('-language', '-updmap', and '-fmtutil' aren't optional) and the new way is much easier to read anyway IMO; - always mention the programs in that order: update-updmap, update-language and update-fmtutil (reason is, I think the average user is more likely to need update-updmap than any of the two others); - the arguments to some options were forgotten, as in the update-fontlang usage message ('--help'); - better option formatting (for those with a short and a long form; copied from /usr/share/man/man1/man.1.gz); - the default values for TEXMFCONFIG and TEXMFVAR do *not* end with a slash; - the path to TeX-on-Debian.txt.gz was wrong; - s/updmap.sys/updmap.cfg/; - s/TEMXF/TEXMF/ in a few places; - a package may install *several* files in each /etc/texmf/*.d directory (and list them in the .list files under /var/lib/tex-common). - a bit more details here and there; - more formatting to ease reading (such as italics), punctuation, typographical fixes. [florent] * Fix to update-fontlang: don't forget the arguments to '-c' and '-o' in the usage message ('--help'). [florent] * Minor fixes to postrm-texlsr to avoid having too long lines (greater than 80 characters). [florent] * remove the left-over definition of dhit_check_run_without_errors in postrm-tex, it is included in postrm-texlsr (Closes: #402068). [NP] -- Frank Küster Mon, 11 Dec 2006 19:46:08 +0100 tex-common (0.41) unstable; urgency=low * Install the TDS specification along with the Debian TeX Policy (closes: #401196) [frank] * Register ucf files with ucfr (closes: #395018) [frank] * Refined wording and typography of the documentation documents -- Frank Küster Wed, 6 Dec 2006 19:03:21 +0100 tex-common (0.40) unstable; urgency=low * Register TeX-on-Debian and the policy with doc-base * Change the wording of Policy to indicate more clearly that everything can (and should) be done using dh_installtex. -- Frank Küster Wed, 6 Dec 2006 11:08:26 +0100 tex-common (0.39) unstable; urgency=low * changelog editing: fix wrong bugnumber in last upload [frank] * Add a more verbose explanation to the warning when updmap-sys failed (closes: #397717), and echo errors to stderr. [frank] * Change default priority for dh_installtex to 20, and document in the TeX Policy that 10 is reserved for Basic TeX packages. This would have avoided bug #399447. [frank] -- Frank Küster Tue, 21 Nov 2006 18:32:32 +0100 tex-common (0.38) unstable; urgency=low * install update-fontlang and the three links all into /usr/bin and keep symlinks in /usr/sbin for old packages. Update the man page of update-fontlang. (Closes: #396822) [preining] * Clear up the description about user-specific configuration in TeX-on-Debian, many thanks to Géraud Meyer (closes: #396826) [preining,frank] * Debconf translation updates: [frank] - French, thanks to Christian Perrier (closes: #395844) - Italian, thanks to Luca Monducci (closes: #396101) - German, thanks to Helge Kreutzmann (closes: #396036) - All others except the heavily outdated ca.po where unfuzzied by me, even in Japanese I can change "dpkg-dist" to "ucf-dist" [frank] -- Frank Küster Fri, 3 Nov 2006 14:14:12 +0100 tex-common (0.37) unstable; urgency=low * Fix bashism in postinst, thanks to Michael Biebl (closes: #395274) [frank] -- Frank Küster Thu, 26 Oct 2006 08:14:29 +0200 tex-common (0.36) unstable; urgency=medium * Depend on debconf (>= 1.4.69), which introduced the error template type (closes: #395032). This broke upgrades, hence the urgency [frank] * Fix format extraction regexp in dh_installtex, the format name must now be at the beginning of the line, without any leading whitespace, but hyphens are allowed in the name. Thanks Ralf. [preining] * dh_installtex: Include only the minimal mktexlsr code in case no other installation is done (ie no maps, formats, languages). Also add the ability to specify texmf trees on the command line, and only recreate the ls-R DB for /usr/share/texmf and /var/lib/texmf [preining] (Closes: #392359) * Add engine-specific paths to the TEXFORMATS and TEXFONTMAPS variables, and avoid triple slashes. This is completely backwards-compatible (it only adds path components), and is needed for the planned separate context package. Thanks to Ralf Stubner for the details! [preining,frank] -- Frank Küster Wed, 25 Oct 2006 13:16:13 +0200 tex-common (0.35) unstable; urgency=low * Use local variables in debianize-updmap, so that the right file for enabling font maps will be found (closes: #393920) [frank] -- Frank Küster Wed, 18 Oct 2006 17:58:09 +0200 tex-common (0.34) unstable; urgency=medium * Handle non-writable /usr/local gracefully upon removal, thanks to Sam Hocevar (closes: #392518) [frank] * Change debianize-updmap so that the --syncwithtrees and --edit options do something sensible, and won't break the system. Together with the upload of tetex-bin 3.0-22, this will close #392573 and #334747. [frank] * Add a check for shadowed config files to update-fontlang [preining] * Move and extend the teTeX README.Debian to TeX-on-Debian Documentation [frank, preining] * Move po-debconf from Build-Depends-Indep to Build-Depends, since it's used in the clean target of debian/rules. [florent] * Adjust the TEXMFCNF setting in conf/texmf.d/85Misc.cnf to reflect the change in tetex-bin 3.0-22. [frank, florent] -- Florent Rougon Sat, 14 Oct 2006 18:53:20 +0200 tex-common (0.33) unstable; urgency=medium * Fix syntax error in debianize-updmap (closes: #391976). Also, the logic in the script has been fixed, so that it actually works [frank] * Add an additional check to update-* scripts in case users shadow their generated files with files in TEXMFCONFIG. [preining] -- Frank Küster Tue, 10 Oct 2006 10:21:19 +0200 tex-common (0.32) unstable; urgency=medium * adapted sanity check in update-fontlang to TEXMFSYSCONFIG = /etc/texmf (closes: #391348) [ralf] * Provide a tetex-bin-update script. This allows also texlive to properly rename an old tetex-bin conffile, and add the magic comment, and is therefore needed for a transition from teTeX to TeXlive without upgrading teTeX to the etch version first [frank] * Install debianize-updmap into the scripts dir [frank] * Provide the debianize-updmap functions in /usr/share/tex-common, for usage by all TeX systems in Debian [frank] * Changed the order of trees in TEXMFDIST. If TeXlive and teTeX packages are installed together, files from TeXlive now take precedence. This makes sense because those files are usually newer. [frank] -- Frank Küster Mon, 9 Oct 2006 07:46:31 +0200 tex-common (0.31) unstable; urgency=medium * Document in policy that font cache data have to be cleaned by packages that Build-Depend on TeX, and how to do that (closes: #388399) [frank] * On systems upgraded from woody to sarge, tetex-bin generated a bogus local configuration file with entries that were erroneously detected as locally changed. These entries are now harmful and break texlive, and the file is therefore renamed if it meets our expectations (closes: #391355) [frank] * In 95NonPath.cnf, add a comment about how to redump the format file (closes: #380323) [frank] -- Frank Küster Fri, 6 Oct 2006 17:40:19 +0200 tex-common (0.30) unstable; urgency=high * update-fontlang: If a conffile has a corresponding dpkg-new file, that is, it is from a yet-unconfigured package, drop it any case. Previously, the check was only done when the file had a magic comment, but conffiles in sarge generally do not have this magic. Therefore, upgrades from sarge would have failed if the conffile change is needed for proper configuration (closes: #389550) [frank] * Remove the medium-priority debconf note without replacement; anybody who really runs into the problem will be able to find the information in tetex-bin's README.Debian (closes: #388973) [frank] -- Frank Küster Tue, 26 Sep 2006 17:14:45 +0200 tex-common (0.29) unstable; urgency=medium * Add missing function and variable declarations to preinst, thanks to Hilmar (closes: #385532) [frank] * Do not load debconf manually in postrm, it isn't needed at all, thanks to Bill Allombert (closes: #388156) [frank] -- Frank Küster Tue, 19 Sep 2006 09:17:13 +0200 tex-common (0.28) unstable; urgency=low * Fix spelling of "medium" in the last upload * Remove jadetex settings from texmf.d (closes: #384333) [frank] * Add a paragraph to the Policy how to handle format creation when latex.fmt or other basic formats are needed [frank] -- Frank Küster Wed, 23 Aug 2006 22:09:37 +0200 tex-common (0.27) unstable; urgency=medium * Policy Change: Treat configuration files properly as Debian Policy mandates. The only TeX-specific addition is that we remind maintainers to only treat files for site-wide changes as configuration files, not files intended to change the typeset output on a per-document or per-project basis. Consequently, mktex.cnf is now installed as /etc/texmf/web2c/mktex.cnf. Thanks to Manoj Srivastava! This closes: #379089, a RC bug, hence the medium urgency [frank] * Really install NEWS.Debian about the font cache changes in the last upload [frank] * Update changelog for 0.16. We forgot to close two bugs. [hilmar-guest] * Debconf Translations: [frank] - Update Dutch translation, thanks to Vincent Zweije (closes: #379234) - Update Spanish translation, thanks to Javier Fernández-Sanguino Peña (closes: #382967) -- Frank Küster Wed, 16 Aug 2006 16:58:01 +0200 tex-common (0.26) unstable; urgency=low * Font data are now cached separately for each user, or in /tmp/texfonts when there is no writable home directory. Thus we could get rid of the complicated debconf questions related to that issue (there's still one note left) (closes: #376050, #366805, #368411). Many thanks to Ralf Stubner for his "braindump". This change requires installation of a file in a TEXMF tree; we therefore run mktexlsr if it is available. [frank] * Debconf Translations: [frank] - Updated Czech translation, thanks to Miroslav Kure - Updated Japanese translation, thank to Kenshi Muto (closes: #376632, #377945) - Updated brazilian Portuguese translation, thanks to Felipe Augusto van de Wiel (faw) - Updated Danish translation, thanks to Claus Hindsgaul (closes: #377664) - Updated German translation, thanks to Helge Kreutzmann - Updated italian translation, thanks to Luca Monducci (closes: #377378). - Updated french translation, thanks to Jean-Baka Domelevo-Entfellner (closes: #377388) - Updated Swedish translation, thanks to Daniel Nylander - Updated Lithuanian translation, thanks to Kęstutis Biliūnas * common.functions.in: [florent] + change create_tetex_formats() so that fmtutil-sys is run in a temporary directory; otherwise, it may use files lying in the current directory, which can cause bad surprises. This will close #377581 when propagated to the various packages using this function in their maintainer scripts. + replace `command args ...` with $(command args ...) everywhere in the file. * Updated Maintainer field to use new mailing list [jdg] -- Frank Küster Wed, 19 Jul 2006 16:05:47 +0200 tex-common (0.25) unstable; urgency=low * Translations: - Fix typos in french debconf translation, thanks to Florentin Duneau (closes: #374632) [frank] - Update brazilian Portuguese debconf translation, thanks to Andre Luis Lopes and Felipe Augusto van de Wiel [frank] * scripts/update-fontlang: - don't include ${conffile} in the generated file if ${conffile}.dpkg-new exists ($conffile may not be up-to-date in this case); see http://lists.debian.org/debian-tetex-maint/2006/06/msg00260.html for a discussion of this subject. - cosmetic fixes. [florent] * Update scripts/update-updmap.1 and doc/Debian-TeX-Policy.sgml accordingly. [florent] -- Florent Rougon Mon, 26 Jun 2006 10:37:04 +0200 tex-common (0.24) unstable; urgency=low * Updated debconf translations: - French, thanks to Steve (closes: #369360) [frank] * dhit_check_run_without_errors() in postrm-tex was not completely silent even if called with -silent (outputing 3 ugly lines starting with a space followed by "done."). This is now fixed. [florent] -- Florent Rougon Sun, 18 Jun 2006 23:14:27 +0200 tex-common (0.23) unstable; urgency=low * After the groupname question has been renamed, make sure that the new questions are not shown again when the old one has already been seen, and unregister the old question (closes: #366812) [frank] * Fix bashism in config (closes: #366789) [frank] * Fix our check for a working configuration in texmf.d, and write short information messages to stderr for the noninteractive frontend or for people who don't have a pencil (closes: #366907), thanks Ralf [frank] * Make sure the font cache directory is always world-writeable - we previously missed the case where apt-utils are installed in a buildd chroot (again closes: #354113, #366858) [frank] * Updated debconf translations: [frank] - Czech by Miroslav Kure (closes: #367162) - Danish by Claus Hindsgaul (closes: #367180) - Italian by Luca Monducci (closes: #367183) * Debian TeX Policy: Remove last occurrences of obsolete TEXMFSITE. -- Frank Küster Wed, 17 May 2006 18:56:32 +0200 tex-common (0.22) unstable; urgency=low * Also install FileUtils.pm which is needed by tpm2licenses [frank] * Make running of update-* commands silent in the debhelper postrm helper scripts (Closes: #365070) [preining] * Debconf translations: - updated wording of swedish template, thanks to Daniel Nylander (closes: #365992) [frank] * Change the configuration scheme again a little: Before accepting a group name typed by the user, test whether it really exists. Furthermore, if there is only one user in the "normal user" range in /etc/passwd, suggest their group as the owner of the font cache. And finally, make the wording clearer everywhere. Many thanks to Anthony DeRobertis , James R. Van Zandt" and Helge Hafting (closes: #366107, #366095, #365513) [frank] * Fix lintian warnings and errors: [frank] - Move eperl to Build-Depends-Indep - Fix my name in update-language(8) - Add overrides for the font cache permissions and our debconf note if the postinst script fails. * Bump standards version (no changes needed) [frank] -- Frank Küster Wed, 10 May 2006 13:19:52 +0200 tex-common (0.21) unstable; urgency=low * Syntax error: postinst script silently failed when it should have displayed a debconf warning [frank] * Improve readability of eperl scripts in debian/ as in tetex-bin [jdg] * Adjust priority of the groupname debconf question to be the same as the managecache question (closes: #360127) [frank] * Fix eperl open commands in maintainer scripts to work with -k [jdg] * Made preinst a /bin/sh script [jdg] * Install the tpm2licenses Perl script and the Tpm.pm module into /usr/share/tex-common for more convenient use [frank]. * Add to the source package a ChangeLog file to keep track of the copyright/licensing verification work I'm doing [frank] * Update debconf translations: - Danish by Claus Hindsgaul (closes: #360035) - Czech by Miroslav Kure (closes: #360212) - Spanish by Javier Fernández-Sanguino Peña - Swedish by Daniel Nylander - Turkish by Osman Yuksel - Lithuanian by Kęstutis Biliūnas (closes: #360282) - Italian by Luca Monducci (closes: #360645) - Japanese by Kenshi Muto (closes: #360679) - German by Helge Kreutzmann - French by steve (closes: #362426) Many thanks to all contributors! [frank] -- Frank Küster Fri, 21 Apr 2006 09:49:06 +0200 tex-common (0.20) unstable; urgency=medium * This version fixes a RC bug (#357983) - the version in testing was not affected. But taken together, 0.20 fixes lots of important and annoying bugs that also exist in testing that I'm increasing the urgency. [frank] * Change wording in debconf template and README.Debian to clearly indicate that per default users are not member of the "users" group, (closes: #356960, #357983) [frank] * Install reportbug control script to report with tetex and texlive packages [frank] * update-fontlang: Change the note that is displayed when the output file is a symlink to an error message (displayed also in quiet mode) (closes: #357289) [frank] * Fix typos in update-updmap.1 and update-language.8, thanks to Nicolas François (closes: #357763). [florent] * Translations: - Update french debconf translation, thanks to Steve (does not closes bug #356840, since it is incomplete) [frank] -- Frank Küster Wed, 22 Mar 2006 12:29:54 +0100 tex-common (0.19) unstable; urgency=low * cater for groups without a name when setting the groupname debconf variable (Closes: #354401) [preining] * Use debconf for user interaction if the postinst script detects incompatible settings, thanks to John Goerzen (closes: #353474) [frank] * add --check option to update-fontlang and to the man pages, but state that it should not be used in maintainer scripts (Closes: #354517) [preining] * Fix copying error in dh_installtex that created dvips config files with an additional comma [preining] * Translations: - Update Swedish debconf translation, thanks to Daniel Nylander (closes: #354635) [frank] - Update Danish debconf translation, thanks to Claus Hindsgaul [frank] - Update German debconf translation, thanks to Helge Kreutzmann [frank] - Update Italian debconf translation, thanks to Luca Monducci (closes: #355033) [frank] - Update Turkish debconf translation, thanks to Osman Yüksel (closes: #355061) [frank] - Update Japanese debconf translation, thanks to Kenshi Muto (closes: #355141) [frank] - Update Czech debconf translation, thanks to Miroslav Kure [frank] - Update Lithuanian debconf translation, thanks to Kęstutis Biliūnas (closes: #355453) [frank] - Update Spanish debconf translation, thanks to Javier Fernández-Sanguino Peña [frank] -- Frank Küster Sat, 11 Mar 2006 17:58:38 +0100 tex-common (0.18) unstable; urgency=low * Perform all config checks in the postinst script instead of exiting after the first failure * Call debconf-updatepo in the clean and build targets, thanks to Thomas Huriaux (closes: #354138) [frank] * Remove "set -x" from config.in, a leftover from debugging. Sorry. (closes: #354181) [frank] * Add many more md5sums for obsolete conffiles. And add a script in the source package to check whether we now catch all of them. Many thanks to Andreas Tille! [frank] * Fix the missing dhit_ prefix to the build_format call in postinst-tex autoscript [preining] * Fix spelling error in template, thanks to Matt Krai (closes: #354318) * Replace wrong mode 3755 with 3775 in templates. [florent] * Add myself to the Uploaders field. [florent] * Remove duplicate Build-Depends-Indep on debiandoc-sgml. [florent] -- Florent Rougon Sat, 25 Feb 2006 12:58:27 +0100 tex-common (0.17) unstable; urgency=low * Restore the previous behavior by making the subdirectories of /var/cache/fonts world-writable by default. Since this is unsafe, advice the user in the debconf template, and increase the question's priority to medium. Thanks to Lars Wirzenius, closes: #354113. We do not fix existing systems, since this is mainly targeted at pbuilder environments and similar, where tex-common is only installed on demand. [frank] * fix an error in dh_installtex when grepping for the magic header [ralf] * Add an md5sum for psfonts.ams, thanks to Andreas Tille [frank] -- Frank Küster Thu, 23 Feb 2006 17:36:04 +0100 tex-common (0.16) unstable; urgency=low * Add dh_installtex for public perusal. [preining] - add dh_installtex and man page - replace dh_installtexfonts by a script converting the syntax - give a warning in the dh_installtexfonts man page * common.functions.in: - Add md5sums for tetex-extra's former configuration files (closes: #351649, #352486) [frank] - Also add some forgotten md5sums for tetex-base, and make sure scripts really stop if the md5sum is unknown (closes: #352688) [frank] - remove LaTeX and pdfLaTeX format files before trying to recreate all format (closes: #352391, #346135, #352569) [frank] - use different variable names for /var/lib/texmf as a texmf.cnf variable and as a maintainer script variable [frank] * rework debconf usage (Closes: #352394) [preining,frank] - only care for ls-R file permissions of the font cache from now on - manage the group and permissions of /var/cache/fonts * TeX Policy Draft: - document dh_installtex and some additional checks needed in maintainer scripts [florent] - Clarify that some files from the Basic TeX Packages stay in TEXMFMAIN [frank] -- Frank Küster Wed, 22 Feb 2006 13:43:32 +0100 tex-common (0.15) unstable; urgency=high * Urgency high, because this version adds important checks that should be present when the teTeX packages enter testing * Add more checks for essential entries in texmf.cnf, and bail out with a user-friendly error message if they are missing (closes: #346326) [frank] * Fix functions in common.functions.in, so that old conffiles of teTeX are properly handled, thanks to Ralf Stubner * Drop unneeded paths from TEXFONTMAPS, we now have only 3.0's upstream value plus our backward-compatibility paths; also change the check in the postinst accordingly (although the old one would still work, we do not allow it for simplicity's sake). [frank] * Fix typo in dh_installtexfonts which would echo wrong file names, and add --quiet to the call of update-updmap in the debhelper scripts [preining] * Again fixed extensions of files to purge, and take over correct language.dat handling from tetex-base (see: #321804). [frank] * Move the handling of 00updmap.cfg from postinst to preinst, where it belongs [frank] * Fix typo in manpage for update-language, thanks to Nicolas François (closes: #349723) [frank] -- Frank Küster Thu, 26 Jan 2006 22:24:06 +0100 tex-common (0.14) unstable; urgency=low * Bump standards version to 3.6.2 (no changes needed) * Move debiandoc-sgml from Build-Dep to Build-Dep-Indep * Fix a couple of lintian errors and warnings * Fix dvips config syntax, thanks to Danai SAE-HAN [preining] * Rework the debhelper snippets post(inst|rm)-texfonts [preining] -- Norbert Preining Thu, 22 Dec 2005 16:38:54 +0100 tex-common (0.13) unstable; urgency=low * tex-common now provides the symlink /usr/share/texmf/doc --> ../doc/texmf, because tetex-doc now puts its files into TEXMFDIST [frank]. * Do no longer install teTeX's common.* files and dsf-patch.mk, they are no longer used. * Implement --flavor for dh_installtexfonts, first flavors are only for generating config files for maps [preining]. * Fix brace expansion in pdksh, patch from Robert Luberda (closes: #342781) [preining] * Add fonts/hbf to the search path for T1 fonts, this is needed by cjk-latex. [frank] * Translations: - Update Czech debconf translation, thanks to Miroslav Kure (closes: #341941) [frank] - Fix italian translation file, this really closes: #340031 [frank] -- Frank Küster Sun, 11 Dec 2005 14:53:05 +0100 tex-common (0.12) unstable; urgency=low * change ls_R_magic to include ., ./, and ls-R so that kpathsea does not moan about unusable entry. [preining] * Document TEXMFSYSCONFIG in the Policy Draft, and add some more clarifications to the text [frank] * change TEXMFDIST to include texmf-texlive and texmf-tetex [preining] * Translations: - Update French debconf translation, thanks to Clément Stenac (closes: #341721) [frank] -- Frank Küster Fri, 2 Dec 2005 17:40:04 +0100 tex-common (0.11) unstable; urgency=low * Check for correct setting of TEXFONTMAPS after possible user interaction in postinst, and fail with a clear error message, instead waiting for teTeX's or TeXLive's updmap calls to fail (closes maybe: #338585) [frank] * Add a function clean_texenvironment to common.functions, to be used from TeX package's postinst scripts, and document that in the Policy document. [frank] * Add the md5sum of the postinst-edited 00updmap.cfg to ucf's database. Also fix the logic for taking over changed settings from tetex-base, and create 00updmap.cfg with proper permissions. Special thanks to Junichi Uekawa for insisting (closes: #335682, #338689) [frank] * The Policy draft has been extended [frank] * change TEXMFSYSCONFIG to /etc/texmf and remove the !! before TEXMFCONFIG in TEXMF [preining] * add TEXMFSYSCONFIG to TEXMF and and reshuffle the order [preining] * change TEXMFDBS [preining] * Translations: - add Swedish debconf translation, thanks to Daniel Nylander (closes: #338866) [frank] - update Danish debconf translation, thanks to Claus Hindsgaul (closes: #339354) [frank] - update Italian debconf translation, thanks to Luca Monducci (closes: #340031) [frank] -- Frank Küster Tue, 22 Nov 2005 20:15:41 +0100 tex-common (0.10) unstable; urgency=low * tex-common should only Suggest debhelper, not Depend on it. It would pull in too many dev packages for every normal user. [preining] * Fix the syntax of some eval statements in the config script (closes: #336951) [frank] * In postinst, create nonexistent ls-R files with proper magic content if they are not already present (closes: #337073) [frank] * The config script was not idempotent, and reset the debconf default for group writable ls-R files on a fresh install. [frank] * Remove the ls-R symlink in TEXMFLOCAL, thanks to Lars Wirzenius (closes: #333308). [frank] * Check for leftover .svn directories during build (closes: #327785) [frank] * Add the md5sum of a version with a newer comment to the list of known md5sums for 00updmap.cfg (closes: #336713) [frank] * fix installation of debhelper snippet postrm-texfonts. [preining] * actually allow multiple invocations of dh_installtexfonts and stop with error if a cfg file is installed several times. [preining] -- Frank Küster Wed, 9 Nov 2005 14:45:34 +0100 tex-common (0.9) unstable; urgency=low * Change ls-R file handling to be useful. Don't use debconf as registry. (Closes: #332264) [preining] * install debhelper dh_installtexfonts script (closes: #320147) [preining] * A few changes to update-fontlang, most notably that it will now check, when invoked as update-updmap, whether /usr/share/texmf/web2c/updmap.cfg exists and abort with an explanation in that case. [florent] * Translations: - updated Danish debconf translation, thanks to Claus Hindsgaul (closes: #332699) [frank] - updated French debconf translation, thanks to Clément Stenac (closes: #335776) [frank] - updated Italian debconf translation, thanks to Luca Monducci (closes: #336093) [frank] -- Frank Küster Fri, 28 Oct 2005 11:27:48 +0200 tex-common (0.8) unstable; urgency=low * Change hyph_size to 8191 - according to DEK it should be a prime number. [frank] * Add a (closes:...) to the last version's changelog entry to make tracking history easier, in fact the bug has been closed manually [frank]. * fix update-texmf to not go into an endless loop when called with an unknown option [frank] * Modify postrm.in script to remove TEXMFSYSVAR and /var/cache/fonts (thus also removing left over files at purge time) [preining] * manage ls-R files using debconf [preining]. The translations have been copied over from tetex-bin [frank]. (Closes: #328291) * Let the debconf dependency be created by debhelper, thus allowing debconf-2.0 as an alternative [frank] (closes: #332115) * In fact install the pdf version of the Policy draft, but include it in the tar.gz file. Thus we can drop the Build-dependency on tetex-extra. A working TeX system is only needed on the developer's system if the policy source has been changed. -- Frank Küster Wed, 5 Oct 2005 16:14:46 +0200 tex-common (0.7) unstable; urgency=low * take over installation of /var/cache/fonts/*, /usr/local/share/texmf and the ls-R links from tetex (and texlive). [preining] * increase lambdas main_memory to deal with a lot of languages [preining] * move old config files in /usr/share/texmf/web2c out of the way [preining] * remove old formats in /usr/share/texmf/web2c (closes: #323828) [preining] -- Frank Küster Wed, 24 Aug 2005 17:18:34 +0200 tex-common (0.6) unstable; urgency=low * Refine the updmap transition code * Increase hyph_size to 10000, to make the inclusion of current hyphenation exception files (e.g. dehyphtex.tex) possible * Also build a pdf version of the Policy draft, and Build-Depend on tetex-bin. * Move LSRS variable to common.variables -- Frank Küster Wed, 17 Aug 2005 11:04:33 +0200 tex-common (0.5) unstable; urgency=low * Merge update-fmtutil into update-fontlang (closes: #319651) * Fix installation of manpages * add bibtex/csf to texmf variable BSTINPUTS in 65BibTeX.cnf (closes: #319650) * Many thanks to Norbert Preining for providing patches for these changes. * Increase trie_size in 95NonPath.cnf to 27000, to allow TeX-Live build its formats with all languages installed * Editorial changes to the Policy Draft, thanks to Hilmar Preusse * Add compatibility paths for ENCFONTS and TEXFONTMAP in texmf.d (closes: #321074) -- Frank Küster Wed, 3 Aug 2005 12:04:42 +0200 tex-common (0.4) unstable; urgency=low * Bug fix: "tex-common: generalize TEXFONTMAPS and ENCFONTS", thanks to Norbert Preining and Hans Hagen (Closes: #318872). * language.dat is now a generated file in VARTEXMF, and the actual conffiles are in /etc/texmf/language.d. This allows packages to add hyphenation patterns - many thanks again to Norbert. * Merged update-updmap and update-language into one file, and fixed location of memory files in update-updmap * Install the symlink to texmf.cnf -- Frank Küster Mon, 25 Jul 2005 14:22:36 +0200 tex-common (0.3) unstable; urgency=low * provide an upgrade path for the configuration items taken over from tetex-base * Add a versioned conflict on tetex-base - they would remove our 00updmap.cfg file. -- Frank Küster Wed, 6 Jul 2005 17:36:30 +0200 tex-common (0.2) unstable; urgency=low * Install the configuration files needed by teTeX * Bug fix: "tex-common does not install: conflicts with tetex-bin", thanks to Hans Ulrich Niedermann (Closes: #314948). -- Frank Küster Wed, 29 Jun 2005 20:36:47 +0200 tex-common (0.1) unstable; urgency=low * Initial Release. -- Frank Küster Mon, 13 Jun 2005 18:09:55 +0200 ;; Local Variables: ;; coding: utf-8 ;; End: # vim:set fileencoding=utf-8: # tex-common-6.13/debian/compat0000644000000000000000000000000213571431426013045 0ustar 9 tex-common-6.13/debian/control0000644000000000000000000000360513571431426013256 0ustar Source: tex-common Section: tex Priority: optional Maintainer: Debian TeX maintainers Uploaders: Julian Gilbey , Norbert Preining Build-Depends: debhelper (>= 9) Build-Depends-Indep: help2man Standards-Version: 4.2.1 Vcs-Git: https://github.com/debian-tex/tex-common.git Vcs-Browser: https://github.com/debian-tex/tex-common Package: tex-common Architecture: all Multi-Arch: foreign Depends: ${misc:Depends}, ucf Pre-Depends: dpkg (>= 1.16.1) Suggests: debhelper (>= 9) Replaces: tetex-base (<= 3.0-10), dvipdfmx Conflicts: tetex-base (<< 2007), texlive-common (<< 2009), context (<= 2011.05.18.20110627-1) Breaks: texlive-common (<< 2010), tipa (<= 2:1.3-15), itrans (<= 5.3-10), gregoriotex (<= 2.0-1.1), cm-super (<< 0.3.4-12), cm-super-minimal (<< 0.3.4-12), latex-cjk-chinese-arphic-bkai00mp (<= 1.21+nmu1), latex-cjk-japanese-wadalab (<= 0.20050817-15), latex-fonts-sipa-arundina (<= 0.2.0-1), latex-fonts-thai-tlwg (<= 1:0.5.0-1), lmodern (<= 2.004.1-3.1), ko.tex-base (<= 0.1.0+20071012-1), ko.tex-extra (<= 0.1.0+20071012-1), latex-cjk-chinese-arphic-bsmi00lp (<= 1.21+nmu1), latex-cjk-chinese-arphic-gbsn00lp (<= 1.21+nmu1), latex-cjk-chinese-arphic-gkai00mp (<= 1.21+nmu1), latex-cjk-thai (<= 4.8.2+git20111216-1), latex-cjk-chinese (<< 4.8.2+git20111216-2), latex-sanskrit (<= 2.2-8), musixtex (<= 1:0.115-2), scalable-cyrfonts-tex (<= 4.15), tex-gyre (<= 2.004.1-2.1), jadetex (<= 3.13-12), luatex (<< 0.70.1), texlive-lang-arab (<< 2012), context-doc-nonfree (<= 2012.06.27-1), alqalam (<= 0.2-5), thailatex (<< 2013), texlive-binaries (<< 2015), texlive-base (<< 2015) Description: common infrastructure for building and installing TeX This package contains a number of scripts and common configuration files that are needed to install a TeX System. . It also contains debhelper-like programs useful for building TeX packages. tex-common-6.13/debian/copyright0000644000000000000000000000661213571431426013607 0ustar This package is a collection of files needed to use and/or build TeX packages in Debian. Its contents are either written by the Debian maintainers, or taken and adapted from the upstream sources. It was first created Mon, 13 Jun 2005 17:55:58 +0200. License: Unless otherwise indicated (see individual file listing below), it is covered by the following license, the GPL: This package 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 Foundation; either version 2 of the License, or (at your option) any later version. This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License, version 2, with the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL-2; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. Copyright Holders of individual files, sorted by directory: - toplevel: split-texmf: Frank Küster (2005) TODO is probably not copyrightable and contains contributions by all coworkers. - debian: Currently, all files are Copyright 2004,2005 Frank Küster , except common.variables: Frank Küster (2004,2005) (based on a framework by Davide Salvetti (1999-2002) ) rules: Frank Küster (2004,2005) with eperl code based on work by Davide, as above - doc: Makefile version.ent tex-sed: Frank Küster (2004,2005) Hilmar Preusse (2005) Debian-TeX-Policy.sgml: Frank Küster (2004) Richard Lewis (2005) Norbert Preining (2005) - dsfp: dsf-patchfunc dsf-patch.mk: Frank Küster (2004,2005) - scripts: update-fmtutil: Atsuhito Kohda (2002,2003) Julian Gilbey (2002) update-fmtutil.8: Atsuhito Kohda (2002) update-texmf: Atsuhito Kohda (2002,2003) Frank Küster (2004) update-texmf.8: Atsuhito Kohda (2002,2003) Hilmar Preusse (2004) update-updmap: Atsuhito Kohda (2002,2003) Frank Küster (2004) Florent Rougon (2005) update-updmap.1: Atsuhito Kohda (2002,2003) Florent Rougon (2004,2005) update-fontlang: Norbert Preinig (2005) based on update-updmap update-language.8: Frank Küster (2005) update-fontlang.8: Frank Küster (2005) Atsuhito Kohda (2002,2003) Florent Rougon (2004,2005) tex.pm: Jan Hauke Rahm (2009) - conf/texmf.d/ all files are split from texmf.in-teTeX, Copyright Thomas Esser (1995-2005) , in the Public Domain, except 90TeXDoc.cnf: Atsuhito Kohda (2003) - conf/fmt.d/ 00tex.cnf: Thomas Esser (1998,1999) , in the Public Domain tex-common-6.13/debian/dirs0000644000000000000000000000052213571431426012532 0ustar usr/sbin usr/bin usr/share/debhelper/autoscripts usr/share/tex-common usr/share/texmf/web2c usr/share/bug/tex-common etc/texmf/texmf.d var/lib/texmf/web2c var/lib/texmf/tex/generic/config var/lib/tex-common/hyphen-cnf var/lib/tex-common/fmtutil-cnf var/lib/tex-common/fontmap-cfg var/cache/fonts usr/share/perl5/Debian/Debhelper/Sequence tex-common-6.13/debian/maintscript0000644000000000000000000000021613571431426014126 0ustar rm_conffile /etc/texmf/language.d/00tex.cnf 2.11 rm_conffile /etc/texmf/fmt.d/00tex.cnf 6.00~ rm_conffile /etc/texmf/hyphen.d/00tex.cnf 6.00~ tex-common-6.13/debian/postinst0000644000000000000000000003317113571431426013462 0ustar #!/bin/sh -e # # postinst maintainer script for the Debian tex-common package. # # Copyright (C) 2004 by Frank Küster . # Copyright (C) 2012-2016 by Norbert Preining # # This file 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 Foundation; either version 2 of the License, or (at your # option) any later version. # # This file is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License along # with this program; if not, write to: The Free Software Foundation, Inc., # 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. # # On Debian GNU/Linux System you can find a copy of the GNU General Public # License in "/usr/share/common-licenses/GPL". umask 022 # # definitions of necessary trees TEXMFSYSVARDIR=/var/lib/texmf # fmtutil program and common arguments # --sys we are running in fmtutil-sys mode # --strict error out if a format is not build # --no-error-... luajittex is not available on all archs FMTUTIL="fmtutil --sys --strict --no-error-if-no-engine=luahbtex,luajittex,mfluajit" # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-deconfigure' `in-favour' # `removing' # # Give a name to the first commandline argument action=$1 trigger=$2 . /usr/share/debconf/confmodule db_version 2.0 dhit_texlive_binaries_configured () { # unfortunately this seems not to work anymore, we have to make # sure that texlive-binaries is properly configured, otherwise # a squeeze in libkpathsea and engines might occur # kpsewhich --version >/dev/null 2>&1 stat=$(dpkg-query -W -f='${Status}' texlive-binaries 2>/dev/null || true) case "$stat" in "install ok installed") return 0 ;; *) return 1 ;; esac } dhit_build_format () { tempfile=$(mktemp -p /tmp fmtutil.XXXXXXXX) # save LANG LANGSAVE=$LANG LANG=C printf "Building format(s) $*.\n\tThis may take some time... " if $FMTUTIL "$@" > $tempfile 2>&1 ; then rm -f $tempfile LANG=$LANGSAVE echo "done." else exec >&2 echo echo "fmtutil failed. Output has been stored in" echo "$tempfile" echo "Please include this file if you report a bug." echo exit 1 fi } run_mtxrun_if_possible() { # code from postinst-tex if dhit_texlive_binaries_configured; then if which mtxrun >/dev/null; then # we also have to check that texlive-base is installed # and configured, otherwise we cannot be sure that # all necessary basic files are present # # dpkg-query has two defects wrt not existing packages # - it is noisy to stderr # - it returns 1 # so shut both errors up stat=$(dpkg-query -W -f='${Status}' context 2>/dev/null || true) case "$stat" in "install ok installed") do_it=1 ;; *) do_it=0 ;; esac if [ "$do_it" = 1 ] ; then tempfile=$(mktemp -p /tmp mtxrun.XXXXXXXX) printf "Running mtxrun --generate. This may take some time... " if mtxrun --generate > $tempfile 2>&1 ; then rm -f $tempfile echo "done." else exec >&2 echo echo "mtxrun --generate failed. Output has been stored in" echo "$tempfile" echo "Please include this file if you report a bug." echo exit 1 fi fi fi fi } run_updmap() { if dhit_texlive_binaries_configured; then if which updmap-sys >/dev/null; then # we also have to check that texlive-base is installed # and configured, otherwise we cannot be sure that # all necessary basic files are present # # dpkg-query has two defects wrt not existing packages # - it is noisy to stderr # - it returns 1 # so shut both errors up stat=$(dpkg-query -W -f='${Status}' texlive-base 2>/dev/null || true) case "$stat" in "install ok installed") do_it=1 ;; *) do_it=0 ;; esac if [ "$do_it" = 0 ] ; then echo "texlive-base is not ready, delaying updmap-sys call" >&2 else tempfile=$(mktemp -p /tmp updmap.XXXXXXXX) printf "Running updmap-sys. This may take some time... " # call updmap with --nohash so that no ls-R files # are created in /usr/local/share/texmf/ # see bug report #607857 # instead of that we call mktexlsr $TEXMFSYSVARDIR # afterwards. This can be done without checks as # we know that dhit_texlive_binaries_configured and # since mktexlsr and updmap are in the same package # and we checked for updmap already if updmap-sys --nohash > $tempfile 2>&1 ; then rm -f $tempfile echo "done." tempfile=$(mktemp -p /tmp mktexlsr.XXXXXXXX) printf "Running mktexlsr $TEXMFSYSVARDIR ... " if mktexlsr $TEXMFSYSVARDIR > $tempfile 2>&1 ; then rm -f $tempfile echo "done." else exec >&2 echo echo "mktexlsr $TEXMFSYSVARDIR failed. Output has been stored in" echo "$tempfile" echo "Please include this file if you report a bug." echo exit 1 fi else exec >&2 echo echo "updmap-sys failed. Output has been stored in" echo "$tempfile" echo "Please include this file if you report a bug." echo echo "Sometimes, not accepting conffile updates in /etc/texmf/updmap.d" echo "causes updmap-sys to fail. Please check for files with extension" echo ".dpkg-dist or .ucf-dist in this directory" echo exit 1 fi fi fi fi } run_fmtutil() { # now call the equivalent of fmtutil-sys --all explicitely # we also have to check that texlive-base is installed # and configured, otherwise we cannot be sure that # all necessary basic files are present if dhit_texlive_binaries_configured; then # see above for information on dpkg-query usage stat=$(dpkg-query -W -f='${Status}' texlive-base 2>/dev/null || true) case "$stat" in "install ok installed") do_it=1 ;; *) do_it=0 ;; esac if [ "$do_it" = 0 ] ; then echo "texlive-base is not ready, skipping fmtutil --all call" >&2 else dhit_build_format --all fi fi } run_mktexlsr() { trees=$* if dhit_texlive_binaries_configured; then # mktexlsr may not be present if which mktexlsr >/dev/null; then tempfile=$(mktemp -p /tmp mktexlsr.XXXXXXXX) printf "Running mktexlsr. This may take some time... " if mktexlsr $trees > $tempfile 2>&1 ; then rm -f $tempfile echo "done." else exec >&2 echo echo "mktexlsr $trees failed. Output has been stored in" echo "$tempfile" echo "Please include this file if you report a bug." echo exit 1 fi fi fi } run_hyphen() { if dhit_texlive_binaries_configured; then if which kpsewhich >/dev/null; then if which fmtutil >/dev/null; then # code from postinst.tex v=$(kpsewhich -var-value TEXMFSYSVAR) c=$(kpsewhich -var-value TEXMFSYSCONFIG) TEXMFVAR="$v" TEXMFCONFIG="$c" export TEXMFVAR TEXMFCONFIG tempfile=$(mktemp -p /tmp fmtutil.XXXXXXXX) printf "Building latex-based formats --byhyphen language.dat.\n\tThis may take some time... " LANGSAVE=$LANG LANG=C if $FMTUTIL --byhyphen language.dat > $tempfile 2>&1 ; then rm -f $tempfile LANG=$LANGSAVE echo "done." else exec >&2 echo echo "fmtutil failed. Output has been stored in" echo "$tempfile" echo "Please include this file if you report a bug." echo exit 1 fi tempfile=$(mktemp -p /tmp fmtutil.XXXXXXXX) printf "Building e-tex based formats --byhyphen language.def.\n\tThis may take some time... " if $FMTUTIL --byhyphen language.def > $tempfile 2>&1 ; then rm -f $tempfile echo "done." else exec >&2 echo echo "fmtutil failed. Output has been stored in" echo "$tempfile" echo "Please include this file if you report a bug." echo exit 1 fi fi fi fi } do_triggers() { DO_TEXMF=0 DO_TEXMFDIST=0 DO_UPDMAP=0 DO_FMTUTIL=0 DO_HYPHEN=0 case " $trigger " in *" /usr/share/texmf "*) DO_TEXMF=1 ;; esac case " $trigger " in *" /usr/share/texlive/texmf-dist "*) DO_TEXMFDIST=1 ;; esac case " $trigger " in *" texmf-map "*) DO_UPDMAP=1 ;; esac case " $trigger " in *" texmf-format "*) DO_FMTUTIL=1 ;; esac case " $trigger " in *" texmf-hyphen "*) DO_HYPHEN=1 ;; esac DO_MKTEXLSR=0 # # ls-R updates trees="$TEXMFSYSVARDIR" if [ $DO_TEXMF = 1 ] ; then DO_MKTEXLSR=1 trees="$trees /usr/share/texmf" fi if [ $DO_TEXMFDIST = 1 ] ; then DO_MKTEXLSR=1 trees="$trees /usr/share/texlive/texmf-dist" fi if [ $DO_MKTEXLSR = 1 ] ; then run_mktexlsr $trees run_mtxrun_if_possible fi if [ $DO_UPDMAP = 1 ] ; then update-updmap --quiet run_updmap fi if [ $DO_FMTUTIL = 1 ] ; then update-language --quiet update-fmtutil --quiet run_fmtutil # reset hyphen, we already rebuilt all formats DO_HYPHEN=0 fi if [ $DO_HYPHEN = 1 ] ; then update-language --quiet update-fmtutil --quiet run_hyphen fi } ################################################################# # Here starts the real action ################################################################# case $action in triggered) do_triggers ;; configure|reconfigure) # if we are upgrading from before 4, remove the preinst created # backup of the symlink if dpkg --compare-versions "$trigger" lt "4" ; then if [ -L /usr/share/texmf/doc.dpkg-remove ] ; then rm -f /usr/share/texmf/doc.dpkg-remove fi fi # remove outdated thailatex babel.sty if [ -f $TEXMFSYSVARDIR/tex/generic/babel/babel.sty ] ; then echo "Removing outdated babel.sty from thailatex." rm $TEXMFSYSVARDIR/tex/generic/babel/babel.sty rmdir --ignore-fail-on-non-empty $TEXMFSYSVARDIR/tex/generic/babel rmdir --ignore-fail-on-non-empty $TEXMFSYSVARDIR/tex/generic rmdir --ignore-fail-on-non-empty $TEXMFSYSVARDIR/tex fi update-texmf update-updmap --quiet update-fmtutil --quiet update-language --quiet trees="$TEXMFSYSVARDIR /usr/share/texmf" if [ -d /usr/share/texlive/texmf-dist ] ; then trees="$trees /usr/share/texlive/texmf-dist" fi run_mktexlsr $trees run_mtxrun_if_possible run_updmap run_fmtutil # create empty dirs in /usr/local/share/ if [ ! -e /usr/local/share/texmf ] then if mkdir -p /usr/local/share/texmf 2>/dev/null then chown root:staff /usr/local/share/texmf chmod 2775 /usr/local/share/texmf fi fi # remove out dated dir /etc/texmf/language.d if [ -d /etc/texmf/language.d ] ; then rmdir --ignore-fail-on-non-empty /etc/texmf/language.d/ fi ;; *) ;; esac #DEBHELPER# ### Local Variables: ### perl-indent-level: 4 ### tab-width: 4 ### indent-tabs-mode: nil ### End: # vim:set tabstop=4 expandtab: # tex-common-6.13/debian/postrm0000644000000000000000000000467313571431426013130 0ustar #!/bin/sh -e # # postrm maintainer script for the Debian tex-common package. # # Copyright (C) 2004 by Frank Küster . # Copyright (C) 2012 by Norbert Preining . # # This file 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 Foundation; either version 2 of the License, or (at your # option) any later version. # # This file is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License along # with this program; if not, write to: The Free Software Foundation, Inc., # 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. # # On Debian GNU/Linux System you can find a copy of the GNU General Public # License in "/usr/share/common-licenses/GPL". # give commandline args a name action=$1 # remove, purge, upgrade, failed-upgrade, abort-install, abort-upgrade, disappear ## do the things we have to do always case $action in abort-install|abort-upgrade) syml=/usr/share/texmf/doc if [ -n "$2" ] && dpkg --compare-versions "$2" lt "4" ; then if [ -L $syml.dpkg-remove ] && [ ! -e $syml ] ; then echo "Reinstatiating $syml" mv $syml.dpkg-remove $syml fi fi ;; remove) # remove TEXMFSYSVARDIR: All files and dirs are created either by # us, or by packages depending on us. rm -rf /var/lib/texmf # same with obsolete /var/cache/fonts rm -rf /var/cache/fonts ;; purge) if [ -L /usr/share/texmf/doc.dpkg-remove ] ; then rm -f /usr/share/texmf/doc.dpkg-remove fi # TODO purge ucf files # remove texmf.cnf if [ -d /etc/texmf/web2c ] ; then rm -rf /etc/texmf/web2c/texmf.cnf rmdir --ignore-fail-on-non-empty /etc/texmf/web2c fi # try to remove /usr/local/share/texmf if it is empty # people should normally not have TEXMFLOCAL ls-R files # unless they called mktexlsr manually, in which case this is fine # maintainer scripts should call mktexlsr with a list of trees so # no /u/l/s/texmf/ls-R is created #rm -f /usr/local/share/texmf/ls-R 2>/dev/null || true rmdir --ignore-fail-on-non-empty /usr/local/share/texmf/ 2>/dev/null || true ;; *) ;; esac #DEBHELPER# tex-common-6.13/debian/preinst0000644000000000000000000000310013571431426013250 0ustar #!/bin/sh -e # # preinst maintainer script for the Debian tex-common package. # # Copyright (C) 2012 by Norbert Preining # # This file 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 Foundation; either version 2 of the License, or (at your # option) any later version. # # This file is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License along # with this program; if not, write to: The Free Software Foundation, Inc., # 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. # # On Debian GNU/Linux System you can find a copy of the GNU General Public # License in "/usr/share/common-licenses/GPL". umask 022 # prepare for change of symlink to real dir slink=/usr/share/texmf/doc slinktarget=../doc/texmf case "$1" in upgrade|install) ov=$2 if [ -n "$ov" ] && dpkg --compare-versions "$ov" lt 4 ; then if [ -L $slink ] && [ "$(readlink $slink)" = $slinktarget ] ; then mv $slink $slink.dpkg-remove fi fi ;; esac # # remove not-used-anymore /var/lib/texmf/web2c/fmtutil.cnf # see #851598 case "$1" in upgrade|install) rm -f /var/lib/texmf/web2c/fmtutil.cnf ;; esac #DEBHELPER# ### Local Variables: ### tab-width: 4 ### indent-tabs-mode: nil ### End: # vim:set tabstop=4 expandtab: # tex-common-6.13/debian/prerm0000644000000000000000000000033113571431426012714 0ustar #!/bin/sh -e # # prerm maintainer script for the Debian tex-common package. # remove dirs in /usr/local if empty case $1 in remove) rmdir /usr/local/share/texmf 2>/dev/null || true ;; esac #DEBHELPER# tex-common-6.13/debian/reportbug-control0000644000000000000000000000005313571431426015257 0ustar report-with: texlive-base texlive-binaries tex-common-6.13/debian/rules0000755000000000000000000000567013571431426012737 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 INSTDIR=$(CURDIR)/debian/tex-common bin_scripts=dh_installtex sbin_scripts=update-language update-texmf-config update-tl-stacked-conffile update-texmf nonbin_scripts= sbin_installfiles=$(foreach script,$(sbin_scripts), scripts/$(script)) sbin_manpages=$(foreach script,$(sbin_scripts), scripts/$(script).8) bin_installfiles=$(foreach script,$(bin_scripts), scripts/$(script)) bin_manpages=$(foreach script,$(bin_scripts), scripts/$(script).1) nonbin_installfiles=$(foreach script,$(nonbin_scripts), scripts/$(script)) \ texmf/web2c/mktex.cnf build: build-arch build-indep build-arch: build-stamp build-indep: build-stamp build-stamp: dh_testdir # Add here commands to compile the package. cd scripts; pod2man dh_installtex > dh_installtex.1 cd scripts; help2man -n "generate hyphenation configuration for TeX engines" -s 8 -S Debian -N ./update-language > update-language.8 touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp # Add here commands to clean up after the build process. -rm -f scripts/dh_installtex.1 -rm -f scripts/update-language.8 dh_clean install: build dh_testdir dh_testroot dh_prep dh_installdirs # Add here commands to install the package into debian/tex-common. cp conf/texmf.d/00debian.cnf $(INSTDIR)/etc/texmf/texmf.d/ cp $(sbin_installfiles) $(INSTDIR)/usr/sbin/ cp $(bin_installfiles) $(INSTDIR)/usr/bin/ cp $(nonbin_installfiles) $(INSTDIR)/usr/share/tex-common/ # debhelper stuff # dh_installtex(.1) is already installed via the bin_scripts grep -v '^[ \t]*# ' scripts/postrm-tex > $(INSTDIR)/usr/share/debhelper/autoscripts/postrm-tex grep -v '^[ \t]*# ' scripts/postinst-tex > $(INSTDIR)/usr/share/debhelper/autoscripts/postinst-tex cp scripts/tex.pm $(INSTDIR)/usr/share/perl5/Debian/Debhelper/Sequence/ # fontcache stuff with proper permissions install -d $(INSTDIR)/etc/texmf/web2c/ install -m 644 texmf/web2c/mktex.cnf $(INSTDIR)/etc/texmf/web2c/ # Remove the out-of-date ls-R file from /usr/share/texmf and create a # link to one in /var/lib/texmf that we can update without violating # the FHS (symlink created by dh_link) rm -f debian/$(package)/usr/share/texmf/ls-R # Debian-specific stuff install -m 644 debian/reportbug-control $(INSTDIR)/usr/share/bug/tex-common/control # Build architecture-dependent files here. binary-arch: build install # We have nothing to do by default. # Build architecture-independent files here. binary-indep: build install dh_testdir $(check-svn) dh_testroot dh_installchangelogs dh_installdocs dh_installexamples dh_installman $(sbin_manpages) $(bin_manpages) dh_link dh_compress dh_fixperms --exclude=var/cache/fonts dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure tex-common-6.13/debian/source/0000755000000000000000000000000013571431426013147 5ustar tex-common-6.13/debian/source/format0000644000000000000000000000000413571431426014354 0ustar 1.0 tex-common-6.13/debian/tex-common.links0000644000000000000000000000133413571431426015000 0ustar usr/sbin/update-language usr/sbin/update-language-def usr/sbin/update-language usr/sbin/update-language-dat usr/sbin/update-language usr/sbin/update-language-lua usr/share/man/man8/update-language.8 usr/share/man/man8/update-language-def.8 usr/share/man/man8/update-language.8 usr/share/man/man8/update-language-dat.8 usr/share/man/man8/update-language.8 usr/share/man/man8/update-language-lua.8 usr/sbin/update-tl-stacked-conffile usr/sbin/update-fmtutil usr/sbin/update-tl-stacked-conffile usr/sbin/update-updmap usr/share/man/man8/update-tl-stacked-conffile.8 usr/share/man/man8/update-fmtutil.8 usr/share/man/man8/update-tl-stacked-conffile.8 usr/share/man/man8/update-updmap.8 var/lib/texmf/ls-R-TEXMFMAIN usr/share/texmf/ls-R tex-common-6.13/debian/triggers0000644000000000000000000000032413571431426013417 0ustar interest-noawait texmf-hyphen interest-noawait texmf-format interest-noawait texmf-map interest-noawait /usr/share/texmf interest-noawait /usr/share/texlive/texmf-dist interest-noawait /usr/share/doc/texlive-doc tex-common-6.13/scripts/0000755000000000000000000000000013571431426012114 5ustar tex-common-6.13/scripts/dh_installtex0000755000000000000000000004372413571431426014716 0ustar #!/usr/bin/perl -w # dh_installtex --- register Type 1 fonts, languages, or formats with TeX # Copyright (C) 2006, 2007 Florent Rougon # Copyright (C) 2006, 2007 Frank Küster # Copyright (C) 2006-2017 Norbert Preining # # 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 Foundation; version 2 dated June, 1991. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; see the file COPYING. If not, write to the # Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, # Boston, MA 02110-1301 USA. # use strict; use Debian::Debhelper::Dh_Lib; our $VERSION = "1"; init(options => { "flavor=s" => \$dh{FLAVOR} }); # # GLOBAL VARIABLES # my $flavor; my $mapdoconfig = 0; # doconfig depending map/subflavor my $doallformats = 0; # depending on flavor format:build_all my $dofulllsr = 0; # do include texmf-texlive in lsr making my @addbuildformats = (); # additional formats to be build my $doformatlinks = 1; my $texmftree = "texmf"; my %cmdlineargs; my %cmdlinefiles; # # definitions for the different flavors # # extension of package files debian/$package.formats and/or debian/formats etc my %pkgfileext = ( hyphen => "hyphens", format => "formats", map => "maps" ); # extension of the config files my %configfileext = ( hyphen => "cnf", format => "cnf", map => "cfg" ); # comment char for magic header my %commentchar = ( hyphen => '%', format => '#', map => '#' ); # directory under /etc/texmf/ where files are installed my %configdir = ( hyphen => "hyphen.d", format => "fmt.d", map => "updmap.d" ); # directory under /var/lib/tex-common where list files are installed my %managedir = ( hyphen => "hyphen-cnf", format => "fmtutil-cnf", map => "fontmap-cfg" ); # # dummy loop variables my $i; my $bn; my $pr; my $dofilen; # # collect data # This function is used to extract certain information from the respective # config files. Up to now we have to do the following: # for config file for maps # if we select to generate all dvips config files # (with map:config_for_active_maps or map:config_for_all_maps) # we collect the map files # for config file for formats # we extract format\tengine for # - generation with fmtutil-sys --byfmt # - creation of links /usr/bin/format -> /usr/bin/engine sub collect_data { my ($type,$dataref,$entry) = @_; my $m; if ($type eq "map") { if ($m = extract_map($entry, $mapdoconfig)) { push @$dataref, $m; } } elsif ($type eq "format") { if ($m = extract_format($entry)) { push @$dataref, $m; } } # TODO should we do something with hypehn here!???? } sub extract_format { my ($line) = @_; if ($line =~ m/^([^#\s]\S+)\s*(\S*)\s+/) { return "$1\t$2"; } } sub extract_map { my ($line,$mapdoconfig) = @_; if ($mapdoconfig == 0) { return ""; } if ($line =~ m/^[[:space:]]*([#[:space:]]*)[[:space:]]*(Mixed|Kanji)?Map[[:space:]]*(.*\.map)[[:space:]]*(#.*)?$/) { my $comment = $1; my $map = $3; if (($comment eq "") || ($mapdoconfig == 2)) { return $map; } } return ""; } # # build_line # used to create a correct config file entry from a cmd-line specification sub build_line { my ($type,$line) = @_; if ($type eq "map") { if ($line =~ m/^(Map|MixedMap|KanjiMap),(.*)$/) { return("$1 $2"); } else { error("$line is neither of the form Map filename.map, nor MixedMap filename.map."); } } elsif ($type eq "format") { my ($format,$engine,$pat,@rest) = split(",",$line); my $ret = "$format\t$engine\t$pat\t" . join(",",@rest); return($ret); } elsif ($type eq "hyphen") { my ($lang,$loader,$pat,@rest) = split(",",$line); my $ret="name=$lang file=$loader file_patterns=$pat"; my @synonyms = (); my $lhm; my $rhm; my $exceptions; foreach (@rest) { my ($a,$b) = split("=", $_, 2); if ($a eq "lhm") { $lhm = $b; } elsif ($a eq "rhm") { $rhm = $b; } elsif ($a eq "synonym") { push @synonyms, $b; } elsif ($a eq "exceptions") { $exceptions = $b; } else { error("$line is not well formed."); } } $ret .= " lefthyphenmin=$lhm" if defined($lhm); $ret .= " righthyphenmin=$rhm" if defined($rhm); $ret .= " file_exceptions=$exceptions" if defined($exceptions); if ($#synonyms >= 0) { $ret .= " synonyms=" . join(",",@synonyms); } $ret .= "\n"; return($ret); } } # # # START OF THE MAIN PROGRAM # # # # parse the cmd line and fill in the various hashes # foreach (@ARGV) { if ((m/^(map)file=(.*\.cfg)$/) || (m/^(hyphen)file=(.*\.cnf)$/) || (m/^(format)file=(.*\.cnf)$/)) { my $type=$1; my $fn=$2; $cmdlinefiles{$type}{$fn} = 1; } elsif (m/^(map|hyphen|format)=(.*)$/) { push @{$cmdlineargs{$1}}, $2; } else { error("Unrecognized argument: $_\n"); } } # # if (defined($dh{FLAVOR})) { foreach my $fl (split (/,/,$dh{FLAVOR})) { if ($fl eq "map:config_for_active_maps") { $mapdoconfig = 1; } elsif ($fl eq "map:config_for_all_maps") { $mapdoconfig = 2; } elsif ($fl eq "format:build_all") { $doallformats = 1; } elsif ($fl =~ /^format:add_one:(.*)$/) { push @addbuildformats , $1; } elsif ($fl eq "format:no_links") { $doformatlinks = 0; } elsif ($fl eq "lsr:full") { $dofulllsr = 1; } elsif ($fl eq "tree:texlive") { $texmftree = "texlive"; } else { error("Specified flavor $fl not supported.\nPlease see man page for supported flavors!\n"); } } } foreach my $package (@{$dh{DOPACKAGES}}) { # these variables should be local to the loop over packages # as they vary with package my $tmp=tmpdir($package); my %pkgprovidedfilecontents; my %data; my @whattodo = (); if (($package eq $dh{FIRSTPACKAGE} || $dh{PARAMS_ALL}) && @ARGV) { # we do nothing here } else { # we have to clear all the cmd line arguments! %cmdlinefiles = (); %cmdlineargs = (); } foreach my $type ("map", "hyphen", "format") { my @cmdlineconfigfiles = (); my @cmdlinearguments = (); my $pkgprovidedfile = 0; my $pkgfileoncmdline = 0; my @listlines; my $pkgfilename = pkgfile($package,$pkgfileext{$type}); if ($pkgfilename) { open(FOO, "<$pkgfilename") || error("$pkgfilename cannot be opened."); my @bar = ; close(FOO); $pkgprovidedfilecontents{$type} = \@bar; $pkgprovidedfile = 1; } if (defined($cmdlinefiles{$type})) { @cmdlineconfigfiles = keys(%{$cmdlinefiles{$type}}); } if (defined($cmdlineargs{$type})) { @cmdlinearguments = @{$cmdlineargs{$type}}; } foreach my $foo (@cmdlineconfigfiles) { my $bn=basename($foo); if ($bn eq "$package.$configfileext{$type}") { $pkgfileoncmdline = 1; } } if (!$pkgprovidedfile && ($#cmdlineconfigfiles < 0) && ($#cmdlinearguments < 0)) { # we have nothing to do here, skip to the next one! next; } # we got something, either a cmd line are for one of the # config files, or a package (e.g., debian/pkg.maps) file # do the full maintainer stuff! push @whattodo, $type; if ($pkgfileoncmdline && ($pkgprovidedfile || ($#cmdlinearguments >= 0))) { error("This call would create multiple copies of $package.$configfileext{$_}.\nPlease read the man page on how this should be fixed!\n"); } my $target = "/var/lib/tex-common/$managedir{$type}/$texmftree"; if ( ! $dh{ONLYSCRIPTS} && ! -d "$tmp$target") { doit("install", "-d", "$tmp$target"); }; # # the cmd line cfg files # foreach (@cmdlineconfigfiles) { $bn=basename($_); $dofilen = "$tmp$target/$bn"; WRITECMDLINECFGFILE: do { -r $dofilen && error("The config file $dofilen already exists! Cannot recreate it, please call dh_clean -k!"); open(CFGFILE, ">$dofilen") || error("Cannot open $dofilen for writing!"); verbose_print("Writing $dofilen"); open(FOO,"<$_") || error("Cannot open $_ for reading!"); while () { print CFGFILE $_; collect_data($type,\@{$data{$type}},$_); } close(FOO); close(CFGFILE); $bn =~ s/\.$configfileext{$type}$//; } unless ($dh{ONLYSCRIPTS}); } # # now debian/package.maps and/or debian/maps formats languages # merge in the cmd line arguments # if ( ! $dh{ONLYSCRIPTS} && ( $pkgprovidedfile || ($#cmdlinearguments >= 0) )) { my $basefile = "$package.$configfileext{$type}"; $dofilen = "$tmp$target/$basefile"; -r $dofilen && error("The config file $dofilen already exists! Cannot recreate it, please call dh_clean -k!"); open(CFGFILE, ">$dofilen") || error("Cannot open $dofilen for writing!"); verbose_print("Writing $dofilen"); foreach (@{$pkgprovidedfilecontents{$type}}) { print CFGFILE "$_"; collect_data($type,\@{$data{$type}},$_); } foreach (@cmdlinearguments) { my $foo = build_line($type,$_); print CFGFILE $foo,"\n"; collect_data($type,\@{$data{$type}},$foo); } close(CFGFILE); }; } my @mapdata = (); if (defined($data{"map"})) { @mapdata = @{$data{"map"}}; } if ( ! $dh{ONLYSCRIPTS} && ($#mapdata >= 0) ) { doit("install","-d","$tmp/usr/share/texmf/dvips/config/"); }; INSTALLDVIPSCONF: do { foreach $i (@mapdata) { my $font = $i; $font =~ s/\.map$//; $dofilen = "$tmp/usr/share/texmf/dvips/config/config.$font"; -r $dofilen && error("The dvips config file $dofilen already exists!\nYou may have to call dh_clean -k!\n"); open(CNFFILE, ">$dofilen") || error("Cannot open $dofilen for writing!"); verbose_print("Writing $dofilen"); print CNFFILE "p +$i\n"; close(CNFFILE); } } unless ($dh{ONLYSCRIPTS}); my @fmtpairs = (); my @fmtdata = (); my @postrmfmtdata = (); if (defined($data{"format"})) { @fmtpairs = @{$data{"format"}}; } installformatlink: do { foreach my $pair (@fmtpairs) { my ($format,$engine) = $pair =~ m/^(.*)\t(.*)$/; if ($engine =~ m/^(mf|mf-nowin)$/) { push @postrmfmtdata, "metafont/$format"; } elsif ($engine eq "mpost") { push @postrmfmtdata, "metapost/$format"; } else { push @postrmfmtdata, "$engine/$format"; } push @postrmfmtdata, "$format"; push @fmtdata, "$format"; if ($doformatlinks && ($format ne $engine)) { my $formatlink = "$tmp/usr/bin/$format"; if ( -l $formatlink ) { if (readlink($formatlink) eq $engine) { # correct link generated, only give message warning ("/usr/bin/$format link already correctly created, skipping recreation"); } else { # it is a link but pointing to something different # error out error ("/usr/bin/$format link points to something different but $engine!"); } } elsif ( -e $formatlink ) { error ("/usr/bin/$format already exists and not a link, exiting"); } else { doit("mkdir","-p","$tmp/usr/bin"); doit("ln","-s","$engine","$formatlink"); }; } } } unless ($dh{ONLYSCRIPTS}); if ($#addbuildformats >= 0) { push @fmtdata, @addbuildformats; push @postrmfmtdata, @addbuildformats; } if (! $dh{NOSCRIPTS}) { # reproducible builds: sort the two arrays! @whattodo = sort @whattodo; @postrmfmtdata = sort @postrmfmtdata; my $whattodoinst = "update-texmf-config @whattodo"; my $whattodorem = "dhit_call_update_texmf_config @whattodo"; autoscript($package, "postinst", "postinst-tex", "s|#WHATTODO#|$whattodoinst|"); # map entries have already been filtered out autoscript($package, "postrm", "postrm-tex", "s|#FORMATS#|@postrmfmtdata|; s|#WHATTODO#|$whattodorem|"); } addsubstvar($package, "misc:Depends", "tex-common", ">= 6.13"); } =head1 NAME dh_installtex - register Type 1 fonts, hyphenation patterns, or formats with TeX =head1 SYNOPSIS B [S>] [B<-n>] [B<--flavor=>I[,I]] [BI] [BI] [BI] [BI] [BI,I[,lhm=I][,rhm=I][,synonym=I,...]] [BI] [BI,I,I,I] [BI] =head1 DESCRIPTION dh_installtex is a debhelper program that is responsible for updating the ls-R databases, registering map files, new formats, and new hyphenation patterns with TeX. Your package should depend on an appropriate version of tex-common so that the update-* commands are available. (This program adds that dependency to ${misc:Depends}.) B This program does B check for the actual existence of any input files in TEXMF trees. If you call it without any further specification on which packages to work on (using C<-p> or C<-N>) it will add calls to management functions to B packages. In this case don't forget to add ${misc:Depends} to all packages' dependencies. =head1 SIMPLE USAGE: Registering Files If you only install files into /usr/share/texmf, nothing has to be done, tex-common will automatically detect changes and run mktexlsr. =head1 COMPLEX USAGE: Registering fonts, hyphenation patterns and formats If in addition, you have to install map files, hyphenation patterns for additional languages, or format definitions you can use three different methods to specify what should be installed: 1) B
 These files can be specified with the
different Ifile= options.
I can be one of map, format and hyphen, and these files will be
installed into /var/lib/tex-common/I/ for the respective type 
(fontmap-cfg for map files, hyphen-cnf for hyphenation patterns,
and fmtutil-cnf for format definitions).

Example:

        dh_installtex mapfile=foo.cfg formatfile=debian/bar.cnf

would install foo.cfg as /var/lib/tex-common/fontmap-cfg/texmf/foo.cfg, 
and debian/bar.cnf as /var/lib/tex-common/fmtutil-cnf/texmf/bar.cnf.


2) B
You can specify maps, formats, and hyphenations on the cmd line. The items
are stored in the respective config file 20package

Example:

        dh_installtex map=Map,foo.map hyphen=ngerman-x-2011-07-01,dehyphn-x-2011-07-01.tex,hyph-de-1996.pat.txt,lhm=2,rhm=2,synonym=ngerman-x-latest,exceptions=hyph-de-1996.hyp.txt

would install a file /var/lib/tex-common/fontmap-cfg/texmf/package.cfg containing the line

        Map foo.map

and a file /var/lib/tex-common/hyphen-cnf/texmf/package.cnf containing the lines

    name=ngerman-x-2011-07-01 file=dehyphn-x-2011-07-01.tex file_patterns=hyph-de-1996.pat.txt lefthyphenmin=2 righthyphenmin=2 synonym=ngerman-x-latest file_exceptions=hyph-de-1996.hyp.txt

3) B
You create a file debian/package.maps or debian/maps,
debian/package.hyphens or debian/hyphens, 
debian/package.formats or debian/formats. These files are
installed with the name of the package. Each of these
files will be installed into the first package dh_installtex
is told to act on. By default this is the first binary package in
debian/control, but if you use -p, -i, or -a flags, it will be the first
package specified by those flags.

Example:

        dh_installtex

would install a present debian/package.formats file as
/var/lib/tex-common/fmtutil-cnf/texmf/package.cnf.


=head2 Mixing the different variants

The command line items (Variant 2) are merged into the debian/package.maps 
(debian/package.hyphens, debian/package.formats) file. If you specify
an additional package.cfg/cnf (Variant 1) this will raise an error since
both files would be installed as package.cfg/cnf.

=head1 OPTIONS

=over 4

=item B<-n>, B<--noscripts>

Do not modify postinst/prerm scripts.

=item B<--flavor=>I[,I]

This option is used to select a different tree then the default
/usr/share/texmf, and to switch on additional options. The argument
specify a list from flavors to be selected.
At the moment you can select from the following list of flavors:
B,
B, B, 
B>.

B will select the tree /usr/share/texlive/texmf-dist and
should only be used for files installed into this tree.

B will create a file I for each active
(i.e. uncommented) map in each of the cfg file generated by one of the
three methods described above. These files are installed in
/usr/share/texmf/dvips/config/.

If you select B the script will generate I
even for those map files which are present in a cfg file, but deactivated by a comment.

The file I is used when called by `dvips -Pbar ...'. Thus it
allows the activation of single map files even if they are not automatically
activated via the updmap(-sys) mechanism.

Default is I to generate any config files.

B> allows to add the generation of a specific
format without actually providing it (in a cnf file).  This is useful if a 
package adds hyphenation patterns to an existing formats.

B:
Usually, for every format that is specified in a configuration file,
dh_installtex will create a symlink
/usr/bin/I that points to the corresponding engine.  For
example, /usr/bin/latex would be created as a symlink to pdftex.  

The flavor B inhibits this. If a link already
exists, dh_installtex will skip this format with an informational
message, even if this option is not given.

=back

=head1 NOTES

"dh_installtex" adds a dependency relation onto tex-common to misc:Depends.

Note that this command is not idempotent. "dh_clean -k" should be called
between invocations of this command, unless using the B<-n> option.
Otherwise, it may cause multiple instances of the same text to be added
to maintainer scripts.

Please refer to the Debian TeX policy for details about fonts configuration
for TeX by Debian packages.

=head1 SEE ALSO

L

=head1 AUTHOR

This program and its documentation was written by
Norbert Preining for the Debian Operating System
and both are licensed under the GNU General Public License Version 2 or later.

=cut

### Local Variables:
### perl-indent-level: 4
### tab-width: 4
### indent-tabs-mode: t
### End:
# vim:set tabstop=4 autoindent fileencoding=utf-8: #
tex-common-6.13/scripts/postinst-tex0000644000000000000000000000106213571431426014517 0ustar  ##
## postinst-tex
##
## postinst snippets for everything TeX related
## simply call update-texmf-config triggers
##
## Authors:
##       Norbert Preining 
##
# Please note that comments in this file are stripped before installation
# by calling a grep -v '^[ \t]*# '
# Thus, first lines containing ## are preserved!
# So please be careful if you add stuff here!
#

case "$1" in
    configure|abort-upgrade|abort-remove|abort-deconfigure)
        #WHATTODO#
    ;;
esac

# Let vim know that we don't want tabs
# vim:set expandtab tabstop=4: #
tex-common-6.13/scripts/postrm-tex0000644000000000000000000000255013571431426014163 0ustar  ##
## postrm-tex
##
## postrm snippets for unregistering maps, formats, hyphens
## and removing format dumps
##
## Authors:
##       Norbert Preining 
##
# Please note that comments in this file are stripped before installation
# by calling a grep -v '^[ \t]*# '
# Thus, first lines containing ## are preserved!
# So please be careful if you add stuff here!
#

# it might happen that tex-common is not installed and
# still the postrm of a package is tried to be uninstalled
# so don't call update-texmf-config if not present
# See bug report #531581
dhit_call_update_texmf_config ()
{
    if which update-texmf-config >/dev/null; then
        update-texmf-config $*
    else
        echo "update-texmf-config not present: is tex-common installed?" >&2
    fi
}

case "$1" in
    remove|disappear)
        #WHATTODO#
        for fmt in #FORMATS# ; do
            rm -f /var/lib/texmf/web2c/$fmt.*
            # try to remove empty directories of format dumps
            dn=`dirname $fmt`
            if [ $dn != "." ] ; then
                if [ -d /var/lib/texmf/web2c/$dn ] ; then
                    rmdir --ignore-fail-on-non-empty /var/lib/texmf/web2c/$dn
                fi
            fi
        done
    ;;

    purge|upgrade|failed-upgrade|abort-upgrade|abort-install)
    ;;

esac

# Let vim know that we don't want tabs
# vim:set expandtab tabstop=4: #
tex-common-6.13/scripts/tex.pm0000644000000000000000000000025113571431426013250 0ustar  #!/usr/bin/perl
# debhelper sequence file for tex-common script

use warnings;
use strict;
use Debian::Debhelper::Dh_Lib;

insert_after("dh_link", "dh_installtex");

1;
tex-common-6.13/scripts/update-language0000755000000000000000000002257513571431426015120 0ustar  #!/usr/bin/perl
# update-language --- Generate language.dat* from a set of files
# Copyright (C) 2015 Norbert Preining
#
# 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 Foundation; version 2 dated June, 1991.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING. If not, write to the
# Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA  02110-1301 USA.


$^W = 1;
use strict;

my $version = "0.1";

use File::Basename;
use Getopt::Long;
use Text::ParseWords;

my $mode = 'all';

# for each file in /var/lib/tex-common/hyphen-cnf/
# plus the config file /etc/texmf/web2c/local-hyphen.cnf

my $localconf = '/etc/texmf/web2c/local-hyphen.cnf';
my $default_output_dir = '/var/lib/texmf/tex/generic/config';
my %data;
my $progname = basename($0);

my $opt_conf_file = "";
my $opt_output    = "";
my $opt_outdir    = "";
my $opt_checks = 0;
my $opt_quiet  = 0;
my $opt_help   = 0;
my $opt_version = 0;

my %defaults = (
  'latex' => {
    'output' => 'language.dat',
    'func'   => \&make_latex_line,
    'head'   => '/usr/share/texlive/texmf-dist/tex/generic/config/language.us',
    'post'   => '',
  },
  'etex' => {
    'output' => 'language.def',
    'func'   => \&make_etex_line,
    'head'   => '/usr/share/texlive/texmf-dist/tex/generic/config/language.us.def',
    'post'   => "\n\\uselanguage \{USenglish\}  \%\%\% This MUST be the last line of the file.\n",
  },
  'luatex' => {
    'output' => 'language.dat.lua',
    'func'   => \&make_luatex_line,
    'head'   => '/usr/share/texlive/texmf-dist/tex/generic/config/language.us.lua',
    'post'   => "\}\n",
  }
);

&main();

# from here on only sub definitions!

sub main {
  GetOptions(
    "conf-file|c=s"     => \$opt_conf_file,
    "output-file|o=s"   => \$opt_output,
    "output-dir|d=s"    => \$opt_outdir,
    "checks"            => \$opt_checks,
    "quiet|q"           => \$opt_quiet,
    "help|h|?"          => \$opt_help,
    "version|v"         => \$opt_version) or usage();

  if ($progname eq "update-language") {
    $mode = "all";
  } elsif ($progname eq "update-language-dat") {
    $mode = "latex";
  } elsif ($progname eq "update-language-def") {
    $mode = "etex";
  } elsif ($progname eq "update-language-lua") {
    $mode = "luatex";
  } else {
    die "Please call me as update-language(-dat,-def,-lua).";
  }

  if ($opt_help) {
    usage();
    exit 0;
  }
  if ($opt_version) {
    version();
    exit 0;
  }

  # if texlive-base is not properly installed, we do nothing
  my $stat = `dpkg-query -W -f=\'\${Status}\' texlive-base:all 2>/dev/null`;
  if ($stat ne "install ok installed") {
    printf "$progname: texlive-base not installed and configured, doing nothing!\n";
    exit 0;
  }


  update_conffiles($mode);
}


sub update_conffiles {
  my $mode = shift;
  my @todo;

  if ($mode eq 'all') {
    push @todo, keys(%defaults);
  } else {
    push @todo, $mode;
  }

  read_data();

  for my $t (@todo) {
    my $of = ($opt_output ? $opt_output : 
      ( $opt_outdir ? "$opt_outdir/$defaults{$t}{'output'}" :
        "$default_output_dir/$defaults{$t}{'output'}"));
    open(FOO, ">$of") || die "Cannot open $of: $!";

    if (-r $defaults{$t}{'head'}) {
      open BAR, "<", $defaults{$t}{'head'} || die("Cannot open head file $defaults{$t}{'head'}: $!");

      for () { print FOO $_; }
      close BAR;
    } else {
      die("Missing head file $defaults{$t}{'head'}: $!");
    }
    for my $n (keys %data) {
      print FOO &{$defaults{$t}{'func'}}($n);
    }
    print FOO $defaults{$t}{'post'};
    close FOO;
  }
}

# should have been in TLUtils, but the actual code is hidden
# in TLPOBJ.pm, bad!
sub make_latex_line {
  my $n = shift;
  my $ret = "$n " . $data{$n}{'file'} . "\n";
  if ($data{$n}{'synonyms'}) {
    for my $s (@{$data{$n}{'synonyms'}}) {
      $ret .= "=$s\n";
    }
  }
  return $ret;
}
sub make_etex_line {
  my $n = shift;
  my $file = $data{$n}{'file'};
  my $lhm  = $data{$n}{'lefthyphenmin'};
  my $rhm  = $data{$n}{'righthyphenmin'};
  my $ret = "\\addlanguage\{$n\}\{$file\}\{\}\{$lhm\}\{$rhm\}\n";
  return $ret;
}
sub make_luatex_line {
  my $n = shift;
  my $file = $data{$n}{'file'};
  my $exc  = $data{$n}{'file_exceptions'};
  my $lhm  = $data{$n}{'lefthyphenmin'};
  my $rhm  = $data{$n}{'righthyphenmin'};
  my $patt = $data{$n}{'file_patterns'};
  my $special = $data{$n}{'luaspecial'};
  my $syns = '';
  if ($data{$n}{'synonyms'}) {
    my @syn = (@{$data{$n}{'synonyms'}});
    map { $_ = "'$_'" } @syn;
    $syns = join(', ', @syn);
  }
  my $ret = <<"EOF"
  [\'$n\'] = {
    loader = \'$file\',
    lefthyphenmin = $lhm,
    righthyphenmin = $rhm,
    synonyms = { $syns },
EOF
  ;
  $ret .= "    patterns = \'$patt\',\n" if defined $patt;
  $ret .= "    hyphenation = \'$exc\',\n" if defined $exc;
  $ret .= "    special = \'$special\',\n" if defined $special;
  $ret .= "  },\n";
  return $ret;
}

sub parse_hyphen_line {
  my $line = shift;
  my %ret;
  my $default_lefthyphenmin = 2;
  my $default_righthyphenmin = 3;
  $ret{"lefthyphenmin"} = $default_lefthyphenmin;
  $ret{"righthyphenmin"} = $default_righthyphenmin;
  $ret{"synonyms"} = [];
  my @parsed = Text::ParseWords::parse_line('\s+', 0, $line);
  for my $p (@parsed) {
    my ($a, $b) = split(/=/, $p);
    if ($a eq "name") {
      if (!$b) {
        $ret{"error"} = "AddHyphen line needs name=something";
        return %ret;
      }
      $ret{"name"} = $b;
      next;
    }
    if ($a eq "lefthyphenmin") {
      $ret{"lefthyphenmin"} = ( $b ? $b : $default_lefthyphenmin );
      next;
    }
    if ($a eq "righthyphenmin") {
      $ret{"righthyphenmin"} = ( $b ? $b : $default_righthyphenmin );
      next;
    }
    if ($a eq "file") {
      if (!$b) {
        $ret{"error"} = "AddHyphen line needs file=something";
        return %ret;
      }
      $ret{"file"} = $b;
      next;
    }
    if ($a eq "file_patterns") {
        $ret{"file_patterns"} = $b;
        next;
    }
    if ($a eq "file_exceptions") {
        $ret{"file_exceptions"} = $b;
        next;
    }
    if ($a eq "luaspecial") {
        $ret{"luaspecial"} = $b;
        next;
    }
    if ($a eq "databases") {
      @{$ret{"databases"}} = split /,/, $b;
      next;
    }
    if ($a eq "synonyms") {
      @{$ret{"synonyms"}} = split /,/, $b;
      next;
    }
    if ($a eq "comment") {
        $ret{"comment"} = $b;
        next;
    }
    # should not be reached at all
    $ret{"error"} = "Unknown language directive $a";
    return %ret;
  }
  # this default value couldn't be set earlier
  if (not defined($ret{"databases"})) {
    if (defined $ret{"file_patterns"} or defined $ret{"file_exceptions"}
        or defined $ret{"luaspecial"}) {
      @{$ret{"databases"}} = qw(dat def lua);
    } else {
      @{$ret{"databases"}} = qw(dat def);
    }
  }
  return %ret;
}


sub read_one_file {
  my $f = shift;
  my $do_warn = shift;
  open FOO, "<$f" || die ("Cannot read file $f: $!");
  while () {
    chomp;
    next if /^\s*%/;
    next if /^\s*$/;
    my %r = parse_hyphen_line($_);
    if (defined($r{"error"})) {
      die ("Cannot parse $_ in $f: $r{'error'}");
    }
    my $n = $r{'name'};
    if (defined($data{$n})) {
      if ($do_warn == 2) {
        printf STDERR "TeX Live internal double defined hyphenations pattern found: $n\n";
      } elsif ($do_warn == 1) {
        printf STDERR "double defined hyphenations pattern found: $n\n";
      } 
    }
    for my $k (keys %r) {
      next if ($k eq "name");
      $data{$n}{$k} = $r{$k};
    }
  }
  close FOO;
}

sub read_data {
  if (-d '/var/lib/tex-common/hyphen-cnf/texlive/') {
    for my $f () {
      read_one_file($f, 2);
    }
  }
  if (-d '/var/lib/tex-common/hyphen-cnf/texmf/') {
    for my $f () {
      read_one_file($f, 1);
    }
  }
  if (-r $localconf) {
    read_one_file($localconf, 0);
  }
}

sub version {
  print "$progname $version\n";
}

sub usage () {
  print <<"EOF"
Usage: $progname(-dat,-def,-lua) [OPTIONS ...]
Generate hyphenation configuration files language.dat, .def, .dat.lua

When called as update-language, all three configurations files are
generated. Otherwise only the selected one.

Options:
  -c, --conf-file=FILE   file giving additional hyphen specifications
  -o, --output-file=FILE file to write the output to
  -d, --output-dir=DIR   directory where files are written
      --checks           perform sanity checks on the generated config file
  -q, --quiet            don't write anything to the standard output during
                         normal operation
  -h, -?, --help         display this help message and exit
      --version          output version information and exit

Files:

The default output directory is
  $default_output_dir

The default output files are
  for update-language-dat  $defaults{'latex'}{'output'}
  for update-language-def  $defaults{'etex'}{'output'}
  for update-language-lua  $defaults{'luatex'}{'output'}

If -o/--output-file is given, it overrides all defaults.

EOF
;
}

### Local Variables:
### perl-indent-level: 2
### tab-width: 2
### indent-tabs-mode: nil
### End:
# vim:set tabstop=2 expandtab: #
tex-common-6.13/scripts/update-texmf0000644000000000000000000000514313571431426014445 0ustar  #!/bin/sh
# update-texmf
# License: GPL

set -e

TXMF=/etc/texmf
TXMF_CNF=$TXMF/web2c/texmf.cnf
CNFDIR=${TXMF}/texmf.d
TMPDIR=`mktemp -d`
TMPTXMF=`mktemp -p ${TMPDIR} texmfXXXXXXX`

VERBOSE=false
DEBUG=false
while [ $# -ne 0 ]; do
  case $1 in
    -v|--verbose)
      VERBOSE=true
      shift;;
    -d|--debug)
      DEBUG=true
      VERBOSE=true
      shift;;
    -o|--output)
      shift
      TXMF_CNF="$1"
      shift;;
    *)
      echo "unknown option: $1"
      exit 1
      ;;
  esac
done

# test wether destinatio is read-only
DESTDIR=$(dirname "$TXMF_CNF")
mkdir -p "$DESTDIR"
if touch "$DESTDIR/is_rw" 2>/dev/null; then
  rm -f "$DESTDIR/is_rw"
else
  echo "Directory \"$DESTDIR\" not writeable. Exiting."
  exit 1
fi

CNFFILES=`find ${CNFDIR} -name \*.cnf -print | sort`
if [ $DEBUG = true ]; then
  echo "Using the following files:"
  for file in $CNFFILES; do
    echo $file
  done
fi

if [ -z "$CNFFILES" ] ; then
  # no config files are found, remove texmf.cnf if it is there
  if [ -f "$TXMF_CNF" ] ; then
    rm "$TXMF_CNF"
  fi
  exit 0
fi

if [ "${VERBOSE}" = "true" ]; then
  if [ -f "${TXMF_CNF}" ]; then
    echo -n "Merging information from /etc/texmf/texmf.d/ into ${TXMF_CNF} ... " >&2
  else
    echo -n "Generating ${TXMF_CNF} ... " >&2
  fi
fi

cat > ${TMPTXMF} <&2
       echo "%%% IGNORED: $i" >> ${TMPTXMF}
       continue
    fi
    echo "%%% From file: $i" >> ${TMPTXMF}
    cat $i >> ${TMPTXMF}
    echo "%%% End of file: $i" >> ${TMPTXMF}
done

cp ${TMPTXMF} ${TXMF_CNF}
rm -r ${TMPDIR}
chmod 644 ${TXMF_CNF}

if [ "${VERBOSE}" = "true" ]; then
  echo "done"
fi

#
# Let vim know that we don't want tabs
# vim:set expandtab: #
tex-common-6.13/scripts/update-texmf-config0000644000000000000000000000300013571431426015676 0ustar  #!/bin/sh -e
#
# update-texmf-config
# script used in maintainer script for updating the config files
# updmap.cfg, language.dat, fmtutil.cnf, and calling the respective
# triggers to allow tex-common trigger action to be run.
#
# Copyright (C) 2009-2015 Norbert Preining
#
# 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 Foundation; version 2 dated June, 1991.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING. If not, write to the
# Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA  02110-1301 USA.

# for upgrading purpose we accept language as synonym for hyphen, and
# updmap for map, we also keep lsr land fulllsr, although now triggered
# implicitly via file triggers
while [ $# -ne 0 ]; do
  case $1 in
    hyphen|language)
      dpkg-trigger texmf-hyphen
      shift;;
    format)
      dpkg-trigger texmf-format
      shift;;
    map|updmap)
      dpkg-trigger texmf-map
      shift;;
    lsr)
      # ignored
      shift;;
    lsrfull)
      # ignored
      shift;;
    *)
      echo "unknown option: $1"
      exit 1
      ;;
  esac
done

# vim:set expandtab tabstop=2: #
tex-common-6.13/scripts/update-texmf-config.80000644000000000000000000000246713571431426016064 0ustar  .TH UPDATE-TEXMF-CONFIG 8
.\" NAME should be all caps, SECTION should be 1-8, maybe w/ subsection
.\" other parms are allowed: see man(7), man(1)
.SH NAME
update-texmf-config \- script used in maintainer scripts to trigger tex-common actions
.SH SYNOPSIS
.B update-texmf-config
.I "[options]"
.br
.SH DESCRIPTION
This manual page documents briefly the
.BR update-texmf-config
command.
This manual page was written for the Debian GNU/Linux distribution
because the original script was designed for Debian packaging system.
.PP
.B update-texmf-config
is a shell script that is called from maintainer scripts shipping new
map files, hyphenation patterns, or any other TeX input
file.
.PP
The script simply activates the respective trigger, namely texmf-map
for font map files, texmf-hyphen for hyphenation patterns, and
texmf-format for format updates. All
the necessary action will then be carried out by the tex-common package.
.SH OPTIONS
.TP
.B map
Activate the texmf-map trigger.
.TP
.B hyphen
Activate the texmf-hyphen trigger.
.TP
.B format
Activate the texmf-format trigger.

.SH SEE ALSO
.PP
Further information can be found in
/usr/share/doc/tex-common/README.Debian.{txt,pdf.html}
.PP
.SH AUTHOR
This manual page was written by Norbert Preining ,
for the Debian GNU/Linux system (but may be used by others).
tex-common-6.13/scripts/update-texmf.80000644000000000000000000000233013571431426014606 0ustar  .TH UPDATE-TEXMF 8
.\" NAME should be all caps, SECTION should be 1-8, maybe w/ subsection
.\" other parms are allowed: see man(7), man(1)
.SH NAME
update-texmf \- shell script to generate /etc/texmf/texmf.cnf
.SH SYNOPSIS
.B update-texmf
.I "[options]"
.br
.SH DESCRIPTION
This manual page documents briefly the
.BR update-texmf
command.
This manual page was written for the Debian GNU/Linux distribution
because the original script was designed for Debian packaging system.
.PP
.B update-texmf
is a shell script to generate /etc/texmf/web2c/texmf.cnf from files in 
/etc/texmf/texmf.d/*.cnf
.PP
A user who wants to customize /etc/texmf/web2c/texmf.cnf should add, 
for example, 22mymacro.cnf in /etc/texmf/texmf.d/ and run 'update-texmf'.
.SH OPTIONS
.TP
.B \-v, --verbose
Show verbose messages.
.TP
.B \-d, --debug
Show debugging information, and don't delete temporary files. Implies
--verbose. 
.TP
.B \-o, --output FILE
Generate output in FILE instead of /etc/texmf/web2c/texmf.cnf.
.SH SEE ALSO
.PP
Further information can be found in
/usr/share/doc/tex-common/README.Debian.{txt,pdf.html}
.PP
.SH AUTHOR
This manual page was written by Atsuhito Kohda ,
for the Debian GNU/Linux system (but may be used by others).
tex-common-6.13/scripts/update-tl-stacked-conffile0000755000000000000000000002312513571431426017143 0ustar  #!/bin/bash -e
#
# update-tl-stacked-conffile --- Generate stacked conffiles of TL for all trees
# Copyright (C) 2012-2015 Norbert Preining
#
# 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 Foundation; version 2 dated June, 1991.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING. If not, write to the
# Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA  02110-1301 USA.

version="1.0"
progname=$(basename "$0")



if [ "$progname" = "update-updmap" ] ; then
  SNIPPET_BASE=/var/lib/tex-common/fontmap-cfg
  SNIPPET_OLD_BASE=/etc/texmf/updmap.d
  NAME=updmap
  EXT=.cfg
elif [ "$progname" = "update-fmtutil" ] ; then
  SNIPPET_BASE=/var/lib/tex-common/fmtutil-cnf
  SNIPPET_OLD_BASE=/etc/texmf/fmt.d
  NAME=fmtutil
  EXT=.cnf
else
  echo "Please call me either as update-updmap or update-fmtutil!"
  exit 1
fi


# this needs to be kept in sync with dh_installtex
COMPONENTS="texmf texlive"


usage="Usage: $progname [OPTION...]
Generate $NAME configuration files.

Options:
      --checks           perform sanity checks on the generated config file
      --quiet            don't write anything to the standard output during
                         normal operation
      --help             display this help message and exit
      --version          output version information and exit"


# This ensures that if $tempfile is in the *environment*, we won't erase
# the file it could point to in case the script is killed by a signal before
# it has had a chance to even create its temporary file.
tempfile=""


cleanup()
{
    rc=$?
    [ -n "$tempfile" ] && rm -f "$tempfile"
    exit $rc
}

perform_contents_check ()
{
    if [ $NAME = fmtutil ] ; then
        # no checks at the moment
        return 0
    elif [ $NAME = updmap ] ; then
        fn="$1"
        grep -i '^\W*\(Mixed\|Kanji\)\?Map' "$fn" | while read foo map ; do
            # now check the existence of the hyphenation file
            if [ -z $(kpsewhich -format=map $map) ] ; then
                cat >&2 <
include_file()
{
    file="$1"
    printf "\n# ## From file: $file\n"
    cat "$file"
    echo "# End of file: $file"
}

# do_not_include_file 
do_not_include_file()
{
    file="$1"

    cat </dev/null; then
        # Is the package "$file" comes from still installed?
        if [ -d "$SNIPPET_BASE" ] \
            && find "$SNIPPET_BASE" -type f -name '*.list' -print0 \
            | xargs -0r cat \
            | grep -E "^$(basename "$file" $EXT)\$" >/dev/null;
        then
            include_file "$file"
        else
            do_not_include_file "$file"
        fi
      else
        include_file "$file"
      fi
    fi
}

#######################################################
#
# end of backward compatibility stuff
#
#######################################################


# The list of signals to trap is taken from teTeX 3's updmap script, but they
# have been converted to signal names because we can only rely on these on
# POSIX systems.
trap 'cleanup' HUP INT QUIT BUS PIPE TERM


# -v (verbose) is here for backward compatibility only.
TEMP=$(getopt -o +vc:o: --longoptions \
    check,quiet,help,version \
    -n "$progname" -- "$@")

case $? in
    0) : ;;
    1) echo "$usage" >&2; exit 1 ;;
    *) exit 1 ;;
esac

# Don't remove the quotes around $TEMP!
eval set -- "$TEMP"

# ****************************************************************************
# *                                 Defaults                                 *
# ****************************************************************************
quiet=0
dochecks=0

# ****************************************************************************
# *                             Options handling                             *
# ****************************************************************************
while true; do
    case "$1" in
        --quiet) quiet=1; shift ;;
        --check) dochecks=1; shift ;;
        -v) printf "\
${progname}'s -v option is deprecated. The default mode of operation will
be verbose as soon as enough packages use the --quiet option. Please update
your scripts accordingly.\n\n" >&2; quiet=0; shift ;;
        --help) echo "$usage"; exit 0 ;;
        --version) echo "$progname $version"; exit 0 ;;
        --) shift; break ;;
	*) echo "$progname: unexpected option '$1'; please report a bug." >&2
            exit 1 ;;
    esac
done

# Non-option arguments are not allowed.
if [ $# -ne 0 ]; then
    echo "$usage" >&2
    exit 1
fi

# ****************************************************************************
# *                               Actual work                                *
# ****************************************************************************

updated_files=""
for tree in $COMPONENTS ; do
    if [ $tree = "texmf" ] ; then
        # output_file=/usr/share/texmf/web2c/updmap.cfg
        if [ $NAME = "updmap" ] ; then
            output_file=/var/lib/texmf/updmap.cfg-DEBIAN
        else
            output_file=/var/lib/texmf/fmtutil.cnf-DEBIAN
        fi
    elif [ $tree = "texlive" ] ; then
        # output_file=/usr/share/texlive/texmf-dist/web2c/updmap.cfg
        if [ $NAME = "updmap" ] ; then
            output_file=/var/lib/texmf/updmap.cfg-TEXLIVEDIST
        else
            output_file=/var/lib/texmf/fmtutil.cnf-TEXLIVEDIST
        fi
    else
        echo "$progname: that cannot happen!" >&2
        exit 1
    fi

    # create output dir in any case ...
    destdir=$(dirname $output_file)
    mkdir -p "$destdir"
    cd "$destdir"

    #
    if [ $quiet = 0 ]; then
        if [ -f "$output_file" ]; then
	        printf "Regenerating '${output_file}'... "
        else
            printf "Generating '${output_file}'... "
        fi
    fi

    # Creating the temporary file in the output directory gives it 
    # automatically the default permissions appropriate for that 
    # directory, according to the user's umask. When it is complete, 
    # we'll be able to rename it atomically to the desired output 
    # file, which will therefore have the right permissions.
    tempfile="update-tl-conffile.$tree.new"

    if ! printf "" > "$tempfile" ; then
        echo "$progname: cannot write to the temporary file '$tempfile'" >&2
        exit 1
    fi

    printf "\
### This file was automatically generated by ${progname}.
#
# Any local change will be overwritten. Please see the documentation
# of updmap on how to override things from here.
#
###\n" >> "$tempfile"

    # From now on, $tempfile must be deleted on exit; therefore, cleanup() should
    # be used.

    if [ -d "$SNIPPET_BASE/$tree" ] ; then
        find "$SNIPPET_BASE/$tree"  -maxdepth 1 -type f -name '*'$EXT \
            -exec cat '{}' \; >> "$tempfile"
    fi

    if [ $tree = "texmf" ] ; then
        #
        # also include snippets in /etc/texmf/updmap.d but give
        # big fat warnings that this might create problems!!!
        if [ -d $SNIPPET_OLD_BASE ] ; then
            old_files=$(find $SNIPPET_OLD_BASE -maxdepth 1 -type f -name '*'$EXT | LC_COLLATE=C sort)
            if [ -n "$old_files" ] ; then
                cat >&2 <&2
                done
                echo "" >&2
            fi

            for file in $old_files  ; do
                handle_file $file >> "$tempfile"
            done
        fi
    fi

    # This is atomic.
    mv "$tempfile" "$output_file"
    updated_files="$updated_files\t$output_file\n";

    # Check wether the generated file is decent, if all necessary files are
    # installed, etc.
    if [ "$dochecks" = 1 ] ; then
        perform_contents_check "$output_file"
    fi
    if [ $quiet = 0 ]; then
        printf "done.\n"
    fi

done

if [ $quiet = 0 ] && [ -n "$updated_files" ] ; then
    echo "$progname has updated the following file(s):"
    printf "$updated_files"
    echo "If you want to activate the changes in the above file(s),"
    echo "you should run ${NAME}-sys or $NAME."
fi


# vim:set expandtab tabstop=4 autoindent: #
tex-common-6.13/scripts/update-tl-stacked-conffile.80000644000000000000000000000670113571431426017307 0ustar  .Dd Jul 17, 2013
.Os Debian
.Dt UPDATE-UPDMAP 8 SMM
.Sh NAME
.Nm update-updmap
.Nd generate
.Pa updmap.cfg
files for all the system trees
.Sh SYNOPSIS
.Nm
.Bk
.Op Ar option ...
.Ek
.Sh DESCRIPTION
This manual page documents
.Nm ,
a program that was written for the Debian distribution.
.Ss Overview
.Nm
is used to generate
.Xr updmap 1 Ns 's
and 
.Xr updmap-sys 8 Ns 's
configurations files
.Pa /var/lib/texmf/updmap.cfg-TEXLIVEDIST ,
which is the link target of
.Pa /usr/share/texlive/texmf-dist/web2c/updmap.cfg ,
and
.Pa /var/lib/texmf/updmap.cfg-DEBIAN
which is the link target of
.Pa /usr/share/texmf/web2c/updmap.cfg ,
from the files with names ending in
.Ql .cfg
located in
.Pa /var/lib/tex-common/fontmap-cfg/texlive/
and
.Pa /var/lib/tex-common/fontmap-cfg/texmf/ ,
respectively.
.Pp
Any TeX package shipping map files in one of the trees
.Pa /usr/share/texlive/texmf-dist
or
.Pa /usr/share/texmf
should also provide files in one of the above 
directories containing the respective lines for
.Pa updmap.cfg
file.
.Pp
In order to configure (enable additional entries, disable 
system provided entries, etc), the normal 
.Xr updmap 1 Ns 
mechanism should be used. Please see the man page details.
.Sh OPTIONS
.Bl -tag -width ".Fl -version"
.It Fl -check
Executes additional checks that all necessary files are present in the
kpathsea database. Don't use this in maintainer scripts.
.It Fl -quiet
don't write anything to the standard output during normal operation
.It Fl -help
print a summary of the command-line usage of
.Nm
and exit
.It Fl -version
output version information and exit
.El
.Pp
Note that the
.Fl v
option, which turns on verbose mode, is deprecated.  We are currently in a
transition phase where quiet mode is still the default (therefore,
.Fl -quiet
has no effect), but
.Nm
will be verbose by default as soon as enough packages use
.Fl -quiet
in their maintainer scripts.
.Sh "SYNTAX FOR THE .CFG FILES"
The
.Ql .cfg
files under
.Pa /var/lib/tex-common/fontmap-cfg/
should contain valid configuration lines for
.Xr updmap 1 .
Usually, they will consist of lines of following one of these forms:
.Bd -literal -offset indent
Map 
MixedMap 
KanjiMap 
.Ed
.Pp
The
.Li MixedMap
form should only be used if the font is available in both bitmap and scalable
formats (this way, it won't be declared in the default map file for Dvips that
is used
when
.Li dvipsPreferOutline
is set to
.Ql false
in
.Pa updmap.cfg ) .
.Pp
The KanjiMap form should only be used for map files defining Japanese
font maps.
.Sh FILES
.Bd -unfilled -offset left -compact
.Pa /var/lib/tex-common/fontmap-cfg/texlive/*.cfg
.Pa /var/lib/tex-common/fontmap-cfg/texmf/*.cfg
.Pa /var/lib/texmf/updmap.cfg-TEXLIVEDIST
.Pa /var/lib/texmf/updmap.cfg-DEBIAN
.Ed
.Sh DIAGNOSTICS
.Nm
returns 0 on success, or a strictly positive integer on error.
.Sh SEE ALSO
.Xr updmap 1
.Pp
.Bd -unfilled -offset left -compact
.Pa /usr/share/doc/tex-common/README.Debian.{txt,pdf,html}
.Pa /usr/share/doc/tex-common/Debian-TeX-Policy.{txt,pdf,html}
.Pa /usr/share/doc/tex-common/TeX-on-Debian.{txt,pdf,html}
.Ed
.Sh AUTHORS
This manual page was written by
.An -nosplit
.An Atsuhito Kohda Aq kohda@debian.org
and updated by
.An "Florent Rougon" Aq f.rougon@free.fr
and 
.An "Frank Kuester" Aq frank@debian.org
for the Debian distribution (and may be used by others).
.\" For Emacs:
.\" Local Variables:
.\" fill-column: 72
.\" sentence-end: "[.?!][]\"')}]*\\($\\| $\\|	\\|  \\)[ 	\n]*"
.\" sentence-end-double-space: t
.\" End:
tex-common-6.13/texmf/0000755000000000000000000000000013571431426011550 5ustar  tex-common-6.13/texmf/web2c/0000755000000000000000000000000013571431426012552 5ustar  tex-common-6.13/texmf/web2c/mktex.cnf0000644000000000000000000000043313571431426014372 0ustar  # global font cache, also change VARTEXFONTS in 05TeXMF.cnf
#: ${MT_FEATURES=appendonlydir:varfonts}
# per user font cache 
: ${MT_FEATURES=appendonlydir:texmfvar}
#: ${MODE=ljfour}
#: ${BDPI=600}
# uncomment the following line to use ps2pk instead of gsftopk:
# : ${ps_to_pk=ps2pk}