summaryrefslogtreecommitdiff
path: root/Master/tlpkg/libexec
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tlpkg/libexec')
-rwxr-xr-xMaster/tlpkg/libexec/ctan2tds29
1 files changed, 17 insertions, 12 deletions
diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds
index 459d65d6294..3ad1e199b22 100755
--- a/Master/tlpkg/libexec/ctan2tds
+++ b/Master/tlpkg/libexec/ctan2tds
@@ -566,6 +566,7 @@ chdir $startdir || die "chdir($startdir) failed: $!"; # back to raw
'yi4latex', "die 'skipping, nosell license'",
'yplan', "&MAKEnosymlinks",
'zefonts', "&MAKEflatten",
+ 'zhmetrics', "&MAKEcopy",
'zwgetfdate', "&MAKEcopy",
);
@@ -606,6 +607,7 @@ chdir $startdir || die "chdir($startdir) failed: $!"; # back to raw
'xecyr' => '&POSTxecyr',
'xetex-pstricks' => '&POSTxetex_pstricks',
'zhspacing' => '&POSTzhspacing',
+ 'zhmetrics' => '&POSTzhmetrics',
);
@@ -1123,6 +1125,7 @@ $standardtex='\.(cfg|sty|clo|ldf|cls|def|fd|cmap|4ht)$';
'xq', 'fonts',
'xstring', 'generic',
'xunicode', 'xelatex',
+ 'zhmetrics', 'fonts',
'zhspacing', 'xetex',
);
$standarddocfmt='latex';
@@ -1681,6 +1684,9 @@ sub MAKEcopy
# do the copy.
&SYSTEM ("$CP -r * $dest");
+ my $docdir = "$dest/doc/$whichdocformat/$package/";
+ &xmkdir ($docdir);
+
# for arev et al., remove symlinks.
&SYSTEM ("find $dest -type l | xargs --no-run-if-empty rm");
@@ -1690,16 +1696,15 @@ sub MAKEcopy
# move README for encxvlna and others
-r "$dest/README"
- && -d "$dest/doc/$whichdocformat/$package/"
- && &SYSTEM ("$MV $dest/README $dest/doc/$whichdocformat/$package/");
+ && &SYSTEM ("$MV $dest/README $docdir/");
# move CHANGELOG for stellenbosch.
-r "$dest/CHANGELOG"
- && &SYSTEM ("$MV $dest/CHANGELOG $dest/doc/$whichdocformat/$package/");
+ && &SYSTEM ("$MV $dest/CHANGELOG $docdir/");
# move README.eulervm for eulervm.
-r "$dest/README.eulervm"
- && &SYSTEM ("$MV $dest/README.eulervm $dest/doc/$whichdocformat/$package/");
+ && &SYSTEM ("$MV $dest/README.eulervm $docdir/");
# for tex-gyre, rename context subdir. (shouldn't be needed next time.)
if (-d "$dest/fonts/map/pdftex/context") {
@@ -1707,13 +1712,6 @@ sub MAKEcopy
&SYSTEM ("$MV $dest/fonts/map/pdftex/context $dest/fonts/map/pdftex/tex-gyre");
}
- # for eplain, move info file (with warning).
-# if (-r "$dest/doc/$package/doc/eplain.info") {
-# warn "WARNING: moving eplain.info to /tmp\n";
-# warn " -- YOU must put it in texmf/doc/info!\n";
-#xxepl &SYSTEM ("$MV $dest/doc/$package/doc/eplain.info /tmp");
-# }
-
# for velthuis, remove bin dir (with warning).
if ($package eq "velthuis" && -d "$dest/bin") {
warn "WARNING: removing bin/ dir in $dest\n";
@@ -3749,9 +3747,16 @@ sub POSTxetex_pstricks
&SYSTEM ("$MV generic xelatex xetex tex");
}
+sub POSTzhmetrics
+{
+ print "POST$package - (fail to) handle ttfonts.map\n";
+ &SYSTEM ("$MV $DEST/fonts/map/ttf2pk/ttfonts.map /tmp");
+ print "YOU-MUST-DO! update /tmp/ttfonts.map into source/texk/ttf2pk\n";
+}
+
sub POSTzhspacing
{
- print "POST$package - move subdirectories.\n";
+ print "POST$package - move subdirectories\n";
my $dstdir = "$DEST/tex/xetex/$package";
&xmkdir ($dstdir);
&SYSTEM ("$MV context latex plain $dstdir/");