diff options
Diffstat (limited to 'Master/tlpkg/libexec/ctan2tds')
-rwxr-xr-x | Master/tlpkg/libexec/ctan2tds | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds index d13b6e4dc2c..3615bacf1d6 100755 --- a/Master/tlpkg/libexec/ctan2tds +++ b/Master/tlpkg/libexec/ctan2tds @@ -1067,6 +1067,7 @@ chomp ($Build = `cd $Master/../Build/source && pwd`); 'cals' => '&PREHOOK_cals', 'chess' => '&PREHOOK_chess', 'cm-super' => '&PREHOOK_cm_super', + 'download' => '&PREHOOK_savepdf', 'dynblocks' => '&PREHOOK_flatten1', 'fixme' => '&PREHOOK_fixme', 'fontools' => '&PREHOOK_fontools', @@ -1106,6 +1107,7 @@ chomp ($Build = `cd $Master/../Build/source && pwd`); 'ctex' => '&POSTctex', 'dehyph-exptl' => '&POSTdehyph_exptl', 'doipubmed' => '&POSTlatex2html', + 'download' => '&POST_savepdf', 'eplain' => '&POSTeplain', 'epspdf' => '&POSTepspdf', 'fixme' => '&POSTfixme', @@ -2025,13 +2027,14 @@ my $core_latex = "$Master/texmf-dist/tex/latex"; 'dateiliste' => 'latex', # requires interaction 'dotseqn' => 'latex', # requires interaction 'delimtxt' => 'latex -translate-file=empty.tcx', # no 8-bit + 'download' => 'pdflatex', # fancy fonts, doc and subfiles combined 'ejpecp' => 'latex', # requires interaction 'elteikthesis' => 'latex', # requires interaction 'engpron' => 'latex -translate-file=empty.tcx', # no 8-bit 'ecclesiastic' => 'latex', # requires interaction 'etextools' => 'etex -translate-file=empty.tcx', # no 8-bit 'extpfeil' => 'latex -translate-file=empty.tcx', # no 8-bit - 'fancytooltips' => 'latex', # requires interaction + 'fancytooltips' => 'latex', # requires interaction 'fancyvrb' => 'latex -translate-file=empty.tcx', # no 8-bit 'fbithesis' => 'latex', # requires interaction 'fge' => 'latex', # requires interaction @@ -2407,7 +2410,8 @@ $standardxmt='\.xmt'; # which suffixes to remove after building. Checked after runins and at # the end, in the doc directory. $standardclean = '\.head|\.tmp|\.dvi|\.log|\.out|\.aux|\.toc|\.lof|\.lot' - . '|\.bbl|\.blg|\.idx|\.ind|\.ilg|\.glo|\.gls|\.loa'; + . '|\.bbl|\.blg|\.idx|\.ind|\.ilg|\.glo|\.gls|\.loa' + . '|\.bcf|\.ido|\.xdy|\.run\.xml'; %specialclean = ( 'a2ping' => 'README', # not worth whole separate doc subdir 'accfonts' => $standardclean . '|dvips.enc', # dup enc @@ -4708,6 +4712,17 @@ sub PREHOOK_pmx { &PREHOOK_flatten1 (); } +sub PREHOOK_savepdf { + print "PREHOOK_savepdf - $package\n"; + &SYSTEM ("$CP $package.pdf $package-save.pdf"); +} + +sub POST_savepdf { + print "POST_savepdf - $package\n"; + &SYSTEM ("$RM $package.pdf $package.bib"); + &SYSTEM ("$MV $package-save.pdf $package.pdf"); +} + sub PREHOOK_suftesi { print "PREHOOK_$package - move doc/latex subdirs\n"; # not example/, then get logo.png clash |