diff options
Diffstat (limited to 'Master/tlpkg/libexec')
-rwxr-xr-x | Master/tlpkg/libexec/ctan2tds | 36 |
1 files changed, 29 insertions, 7 deletions
diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds index 689f3d5d961..663daf84076 100755 --- a/Master/tlpkg/libexec/ctan2tds +++ b/Master/tlpkg/libexec/ctan2tds @@ -1300,6 +1300,7 @@ chomp ($Build = `cd $Master/../Build/source && pwd`); 'apa6' => '&PREHOOK_apa6', 'cals' => '&PREHOOK_cals', 'chess' => '&PREHOOK_chess', + 'cluttex' => '&PREHOOK_cluttex', 'cm' => '&PREHOOK_cm', 'cm-super' => '&PREHOOK_cm_super', 'cmextra' => '&PREHOOK_cmextra', @@ -2933,6 +2934,7 @@ $standardttf = '\.ttf|\.TTC'; 'checkcites' => '\.lua$', 'checklistings' => '\.sh$', 'cjk-gs-integrate' => '\.pl$', + 'cluttex' => 'cluttex\.lua$', # moved by prehook. 'convbkmk' => '\.rb$', 'crossrefware' => '\.pl$', 'ctan-o-mat' => 'ctan-o-mat$', @@ -3812,9 +3814,14 @@ sub doscripts { # Scripts with special cases. # xx should merge with bin_links in # Build/source/texk/texlive/linked_scripts/Makefile.am, sigh. + &SYSTEM ("ln -s $linkname $platdir/cllualatex") + if $linkname eq "cluttex"; # cluttex->cllualatex + &SYSTEM ("ln -s $linkname $platdir/clxelatex") + if $linkname eq "cluttex"; # cluttex->clxelatex + # &SYSTEM ("ln -s $linkname $platdir/r$linkname") if $linkname =~ /^(pdfcrop|epstopdf)$/; # rpdfcrop ->pdfcrop, ... - + # &SYSTEM ("ln -s $linkname $platdir/latexdef") if $linkname eq "texdef"; # latexdef->texdef @@ -3840,20 +3847,30 @@ sub doscripts { &SYSTEM ("$MV $s.bat.noMiKTeX $scriptsdir"); # best to have wrapper also, maybe? - } elsif ($s eq "lua2dox_filter" # package lua2dox - || $s eq "ctan-o-mat") { # package ctan-o-mat - # handwritten .bat - &SYSTEM ("$MV $s.bat $platdir/"); + } elsif ($s eq "cluttex.lua") { + # provided .bat + &SYSTEM ("$MV bin/cluttex.bat $platdir/"); + # can't use our wrapper, I think, maybe copies will work. + &SYSTEM ("$CP $platdir/cluttex.bat $platdir/cllualatex.bat"); + &SYSTEM ("$CP $platdir/cluttex.bat $platdir/clxelatex.bat"); + &SYSTEM ("rmdir bin"); next; # no wrapper } elsif ($s eq "latexindent.pl") { # provided .exe (made with par::packer) &SYSTEM ("$MV latexindent.exe $platdir/"); next; # no wrapper + + } elsif ($s eq "lua2dox_filter" # package lua2dox + || $s eq "ctan-o-mat") { # package ctan-o-mat + # handwritten .bat + &SYSTEM ("$MV $s.bat $platdir/"); + next; # no wrapper } - # xx here too should merge with bin_links in - # Build/source/texk/texlive/linked_scripts/Makefile.am, sigh. + # xx here too, should merge with bin_links in + # Build/source/texk/texlive/linked_scripts/Makefile.am, + # or at least with above duplicated code. my $w32_wrapper = "$Build/$build_tldir/w32_wrapper/runscript.exe"; &SYSTEM ("$CP $w32_wrapper $platdir/$linkname.exe"); &SYSTEM ("$CP $w32_wrapper $platdir/r$linkname.exe") @@ -5316,6 +5333,11 @@ sub PREHOOK_chess { &SYSTEM ("$RM -rf inputs pkfonts.zip"); } +sub PREHOOK_cluttex { + print "PREHOOK_$package - mv */cluttex for specialscripts\n"; + &SYSTEM ("$MV bin/cluttex cluttex.lua"); +} + sub PREHOOK_cm { print "PREHOOK_$package - remove cmex9.mf\n"; &SYSTEM ("$RM cmex9.mf"); # because it's really an amsfonts file |