summaryrefslogtreecommitdiff
path: root/Master/tlpkg/libexec/ctan2tds
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tlpkg/libexec/ctan2tds')
-rwxr-xr-xMaster/tlpkg/libexec/ctan2tds36
1 files changed, 19 insertions, 17 deletions
diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds
index ac2cbd35162..28b06f5dd3b 100755
--- a/Master/tlpkg/libexec/ctan2tds
+++ b/Master/tlpkg/libexec/ctan2tds
@@ -926,6 +926,7 @@ chomp ($Build = `cd $Master/../Build/source && pwd`);
'fixme' => '&PREHOOK_fixme',
'ibygrk' => '&PREHOOK_ibygrk',
'mathspic' => '&PREHOOK_mathspic',
+ 'musixtex' => '&PREHOOK_musixtex',
'mp3d' => '&PREHOOK_mp3d',
'pictex' => '&PREHOOK_pictex',
'skb' => '&PREHOOK_flatten1',
@@ -963,7 +964,6 @@ chomp ($Build = `cd $Master/../Build/source && pwd`);
'latex2e-help-texinfo' => '&POSTlatex2ehelptexinfo',
'lithuanian' => '&POSTlithuanian',
'montex' => '&POSTmontex',
- 'musixtex' => '&POSTmusixtex',
'niceframe' => '&POSTrmsymlink',
'pgf' => '&POSTpgf',
'prerex' => '&POSTprerex',
@@ -1446,6 +1446,7 @@ $standardtex='\.(.bx|cfg|sty|clo|ldf|cls|def|fd|cmap|4ht)$';
'mkpattern', 'plain',
'mkjobtexmf', 'generic',
'mpattern', 'metapost',
+ 'musixtex', 'generic',
'mxedruli', 'fonts',
'nkarta', 'fonts',
'oberdiek', 'generic',
@@ -2381,12 +2382,11 @@ sub do_posthook {
# For most packages, this is the first thing called. It copies
# everything from $packagedir to the doc directory of the package.
#
-sub setup
-{
+sub setup {
my ($ctl) = @_;
print "doing setup($ctl)...\n";
- # precreate the directories we might need
+ # precreate the directories we might need.
$DOCDIR = "$DEST/doc/$whichdocformat/$package";
&SYSTEM ("mkdir -p $DOCDIR");
&SYSTEM ("mkdir -p $DEST/tex/$whichformat/$package");
@@ -2406,7 +2406,7 @@ sub donormal {
print "doing donormal($ctrl) with DEST=$DEST\n";
- # check for tds-ready packages
+ # Check for tds-ready packages
if (-e "$RAW_DIR/$packagedir/TDS_READY") {
print "using TDS_READY tree\n";
&SYSTEM ("$RM $RAW_DIR/$packagedir/TDS_READY");
@@ -2427,7 +2427,7 @@ sub donormal {
}
} else {
- #use the normal procedure
+ # Use the normal procedure, not TDS.
&setup unless $ctrl eq "nosetup";
&xchdir ("$DEST/doc/$whichdocformat/$package");
@@ -4265,6 +4265,18 @@ sub PREHOOK_mp3d {
&SYSTEM ("$RM -rf v1.0");
}
+sub PREHOOK_musixtex {
+ # must unzip first so we can find the scripts.
+ print "PREHOOK_$package - unzip, man\n";
+ &xchdir ($DEST);
+ &SYSTEM ("unzip -q doc/generic/$package/$package-texmf.zip");
+ #
+ my $mandest = "$TOPDEST/texmf/doc/man/man1/";
+ &xmkdir ($mandest);
+ &SYSTEM ("$CP $DEST/doc/generic/$package/scripts/*.1 $mandest/");
+ &tl_man_to_pdf ();
+}
+
sub PREHOOK_pictex {
print "PREHOOK_$package - rm autoarea\n";
&SYSTEM ("$RM -rf addon/autoarea*");
@@ -4524,7 +4536,7 @@ sub POSTknitting {
sub POSTknuth {
print "POST$package - removing nonfree/duplicated files\n";
#
- &xchdir ("$DEST");
+ &xchdir ($DEST);
&xmkdir ("doc/generic");
&SYSTEM ("$MV doc/knuth doc/generic/");
#
@@ -4575,16 +4587,6 @@ sub POSTmontex {
&SYSTEM ("$MV 00readme 00readme.mfinput.km");
}
-# post instead of specialman because we use the tds.zip, which has the
-# man pages in an unusual place.
-sub POSTmusixtex {
- print "POST$package - cp man pages\n";
- my $mydest = "$TOPDEST/texmf/doc/man/man1/";
- &xmkdir ($mydest);
- &SYSTEM ("$CP $DEST/doc/generic/$package/scripts/*.1 $mydest/");
- &tl_man_to_pdf ();
-}
-
sub POSTpgf {
print "POST$package - mv generic,latex,... directories\n";
&SYSTEM ("cd $DEST && mkdir tex && mv context generic latex plain tex");