diff options
author | Karl Berry <karl@freefriends.org> | 2021-07-03 17:10:35 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-07-03 17:10:35 +0000 |
commit | 82aec187d20c4cb1129672000486a9c581fb2351 (patch) | |
tree | 72aaed5bc0c370aca45b298d3ae81aba4203566c /Master/tlpkg/libexec | |
parent | 0d621ce21e25e771361d33346cc58cacc8564d01 (diff) |
optexcount (2jul21)
git-svn-id: svn://tug.org/texlive/trunk@59817 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/libexec')
-rwxr-xr-x | Master/tlpkg/libexec/ctan2tds | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds index 4292550104d..8d122db26ed 100755 --- a/Master/tlpkg/libexec/ctan2tds +++ b/Master/tlpkg/libexec/ctan2tds @@ -973,6 +973,7 @@ chomp (my $ctan_root = `tlpkginfo --ctan-root`); 'oops', "die 'skipping, replaced by ccool'", 'opacity-pro', "die 'skipping, adobe required (dps)'", 'opensans', "&MAKEcopy", + 'optexcount', "&MAKEflatten", 'optima', "die 'skipping, nonfree font'", 'osa', "die 'skipping, relies on endfloat.cfg and non-unique filenames'", 'osmanian', "die 'skipping, no good license info'", @@ -1530,6 +1531,7 @@ chomp (my $ctan_root = `tlpkginfo --ctan-root`); 'numericplots' => '&PREHOOK_flatten1', 'nwejm' => '&PREHOOK_flatten1', 'optex' => '&PREHOOK_optex', + 'optexcount' => '&PREHOOK_optexcount', 'pgfornament' => '&PREHOOK_flatten1', 'phonetic' => '&PREHOOK_flatten1', 'pictex' => '&PREHOOK_pictex', @@ -2778,6 +2780,7 @@ $standardsource = '(\.(bat|c|drv|dtx|fea|fdd|ins|sfd)' 'mkjobtexmf', 'Makefile.in|' . $standardsource, 'mpman-ru', 'NULL', # doc package 'needspace', '\.tex|' . $standardsource, + 'optexcount', '\.(py|sh)$|' . $standardsource, 'ot2cyr', '\.afm|\.etx|' . $standardsource, 'patch', '\.doc', 'pdfx', 'rvdtx\.sty|' . $standardsource, @@ -3405,6 +3408,7 @@ $standardttf = '\.ttf|\.TTC'; 'mkjobtexmf' => 'mkjobtexmf\.pl$', 'mkpic' => '^mkpic$', 'musixtex' => '\.lua$', + 'optexcount' => 'optexcount$', 'pdfbook2' => 'pdfbook2$', 'pdfcrop' => '\.pl$', # doscripts() does r* 'pdfjam' => 'pdfjam$', @@ -5925,6 +5929,16 @@ sub PREHOOK_optex { # must do early to be found by the normal install &SYSTEM ("$MV doc/optex.1 ."); } +sub PREHOOK_optexcount { # make executable zip, from their install.sh + print "PREHOOK_$package - make executable zip\n"; + &xsystem ("cp src/optexcount.py src/__main__.py"); + &xsystem ("zip -j tmp.zip src/*.py"); + &xsystem ("echo '#!/usr/bin/env python3' | cat - tmp.zip >optexcount"); + chmod (0755, "optexcount") || die "chmod(optexcount) failed: $!"; + unlink ("tmp.zip"); + unlink ("src/__main__.py"); +} + sub PREHOOK_pictex { print "PREHOOK_$package - rm autoarea\n"; &SYSTEM ("$RM -rf addon/autoarea*"); |