summaryrefslogtreecommitdiff
path: root/Master/tlpkg
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-02-27 16:47:55 +0000
committerKarl Berry <karl@freefriends.org>2022-02-27 16:47:55 +0000
commit4b2d4c25ef033d6f3bd19e2f728691743a450685 (patch)
treec80d911cec744e2aa13b3fc24e4c3f9dcf6e7d70 /Master/tlpkg
parenteceb75dcb8e604edf3fbf7542164c8974618a32c (diff)
stex (26feb22)
git-svn-id: svn://tug.org/texlive/trunk@62230 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg')
-rwxr-xr-xMaster/tlpkg/libexec/ctan2tds36
1 files changed, 35 insertions, 1 deletions
diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds
index af738344106..13a2e2210a3 100755
--- a/Master/tlpkg/libexec/ctan2tds
+++ b/Master/tlpkg/libexec/ctan2tds
@@ -1713,6 +1713,7 @@ chomp (my $ctan_root = `tlpkginfo --ctan-root`);
'simple-thesis-dissertation' => '&POST_simple_rmFonts',
'splitindex' => '&POST_do_man',
'startex' => '&POST_otherformat',
+ 'stex', => '&POSTstex',
'tap' => '&POSTtap',
'texdoc' => '&POSTtexdoc',
'texdraw' => '&POSTtexdraw',
@@ -2861,6 +2862,7 @@ $standardsource = '(\.(bat|c|drv|[dem]tx|fea|fdd|ins|mk|sfd)'
'ruhyphen', '^[^.]*$|README.ru|hyphen.rules',
'selnolig', 'NULL', # not .fea
'shipunov', 'NULL', # .bat in scripts
+ 'stex', 'NULL', # handled in post fn
'tex-vpat', 'NULL',
'texdraw', 'NULL',
'texosquery', 'java|\.batch$|' . $standardsource,
@@ -3780,7 +3782,7 @@ for (@ARGV) {
$inspatt = $specialins{$package} || &specialins($package) || $standardins;
$insrunner = $specialinsrunner{$package} || $standardinsrunner;
- $invoke_insrunner = "$insrunner $insrunner_opt";
+ $invoke_insrunner = "$insrunner"; # $insrunner_opt";
$Foundry = $specialfoundry{$package} || $standardfoundry;
@@ -7155,6 +7157,38 @@ sub POST_simple_rmFonts {
&SYSTEM ("$RM -r Fonts");
}
+sub POSTstex {
+ print "POST$package - mv tex/ dir, copy source/ dir\n";
+
+ # do first so we have the destination dir.
+ my $texdest = "$DEST/tex/latex/$package";
+ &rename_with_mkdir ("tex", $texdest);
+
+ # install original pristine source dir so we can just remove
+ # everything after building and not worry about individual junk files.
+ # Although they should all get cleaned up by runins, let's not risk it.
+ &xsystem ("$CP -r source $DEST/source/latex/$package");
+
+ # run the (thankfully) provided ins files.
+ print "POST$package - run ins files in source/ subdirs\n";
+ &xchdir ("source");
+ for my $ins (glob ("*/*.ins")) {
+ my $insdir = dirname ($ins);
+ my $insfile = basename ($ins);
+ &xchdir ($insdir);
+ &buildfilelist (); # set @filenames for &runins
+ &runins ($insfile);
+ SYSTEM ("$MV *.cls *.sty $texdest");
+ &xchdir ("..");
+ }
+ &xchdir ("..");
+ &xsystem ("rm -rf source");
+
+ print "POST$package - doc files up a level\n";
+ &xsystem ("$MV Makefile Makefile.top");
+ &xsystem ("$MV */* .");
+}
+
sub POSTtex_ps {
print "POST$package - rm zip, mv files from subdirs\n";
&SYSTEM ("$RM *.zip");