diff options
Diffstat (limited to 'Master/tlpkg/libexec')
-rwxr-xr-x | Master/tlpkg/libexec/ctan2tds | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds index ae1d4107732..2d9760ab104 100755 --- a/Master/tlpkg/libexec/ctan2tds +++ b/Master/tlpkg/libexec/ctan2tds @@ -1469,11 +1469,10 @@ $standardsource='\.(c|drv|dtx|fea|fdd|ins|sfd)$|configure.*|install-sh'; 'feynmf', 'feynmf\.pl|' . $standardsource, 'findhyph', 'NULL', # leave makefile 'fmtcount', 'fmtcount.perl|' . $standardsource, + 'fpl', 'Add|\.pe|\.ps' . $standardsource, 'grverb', '\.vpl|' . $standardsource, 'hyper', '\.pl|' . $standardsource, 'hyphenex', '.*', - 'mff', '\.mfj|\.bat|\.diz', - 'fpl', 'Add|\.pe|\.ps' . $standardsource, 'impatient', 'NULL', # doc package 'intro-scientific', 'NULL', # doc package 'js-misc', 'NULL', # no gain in splitting up @@ -1483,10 +1482,12 @@ $standardsource='\.(c|drv|dtx|fea|fdd|ins|sfd)$|configure.*|install-sh'; 'latex2man', 'NULL', # leave Makefile 'latexdiff', 'NULL', # leave Makefile 'lua-alt-getopt', 'NULL', + 'mff', '\.mfj|\.bat|\.diz', + 'mkjobtexmf', 'Makefile.in|' . $standardsource, 'mpman-ru', 'NULL', # doc package 'ot2cyr', '\.afm|\.etx|' . $standardsource, - 'pdfx', 'rvdtx\.sty|' . $standardsource, 'patch', '\.doc', + 'pdfx', 'rvdtx\.sty|' . $standardsource, 'pgfplots', 'NULL', # keep manual.install.tex in doc/ 'rcs', 'rcs.el|src|' . $standardsource, 'thailatex', 'NULL', # no gain in splitting up @@ -1827,6 +1828,7 @@ $standardxmt='\.xmt'; 'findhyph' => 'findhyph.1', 'latexdiff' => '\.1$', 'latexmk' => 'latexmk.1', + 'mkjobtexmf' => 'mkjobtexmf.man', 'perltex' => 'perltex.1', 'pdfjam' => '\.1$', 'pkfix-helper' => 'pkfix-helper.1', @@ -2426,8 +2428,7 @@ sub domf { # man pages. We put these in texmf/doc/man/man1, a la info (see above). # -sub domans -{ +sub domans { my $manpatt = $specialmans{$package}; return unless $manpatt; &install ("$TOPDEST/texmf/doc/man/man1/", $manpatt); @@ -2439,16 +2440,22 @@ sub domans # all consistent. So we copy over our Makefiles, run make, and then # remove them. # -sub tl_man_to_pdf -{ +sub tl_man_to_pdf { my $Master_man = "$Master/texmf/doc/man"; my $pkg_man = "$TOPDEST/texmf/doc/man"; + print "tl_man_to_pdf for " . join (" ", <$pkg_man/man1/*>) . "\n"; + &SYSTEM ("cd $Master_man && $CP --parents Makefile man1/Makefile $pkg_man/"); # Extra complication: we don't want to rebuild everything, only those # that have changed. Therefore, also copy in the pdfs for the package # being updated from the Master man dir. for my $man (<$pkg_man/man1/*>) { + if ($man =~ /\.man$/) { # rename from .man to .1 + (my $man1 = $man) =~ s/\.man$/\.1/; + &SYSTEM ("$MV $man $man1"); + $man = $man1; + } (my $pdf_man = $man) =~ s,^.*/,,; # just foo.1, no directories $pdf_man =~ s/1$/man1.pdf/; # foo.1 -> foo.man1.pdf # |