diff options
Diffstat (limited to 'Master/tlpkg/bin/ctan2tds')
-rwxr-xr-x | Master/tlpkg/bin/ctan2tds | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/Master/tlpkg/bin/ctan2tds b/Master/tlpkg/bin/ctan2tds index f3467107ece..5f7010d7cb8 100755 --- a/Master/tlpkg/bin/ctan2tds +++ b/Master/tlpkg/bin/ctan2tds @@ -369,7 +369,8 @@ chdir $startdir || die "chdir($startdir) failed: $!"; # back to raw 'zefonts', "&MAKEflatten", ); -%specialpostnormal = ( +%specialpostaction = ( + 'babel' => '&POSTbabel', 'fpl' => '&POSTfpl', 'interactiveworkbook' => '&POSTinteractiveworkbook', ); @@ -1320,7 +1321,8 @@ sub xchdir # some packages (e.g., vntex) are tl-ready (or near enough). # -sub MAKEcopy { +sub MAKEcopy +{ my $dest = $_[0] || $DEST; my $pdir = $packagedir; if (defined($_[1])) { $pdir .= "/$_[1]"; } @@ -1380,6 +1382,9 @@ sub MAKEcopy { &SYSTEM ("mkdir -p $srcdir"); &SYSTEM ("mv $dest/lm*mt1.zip $srcdir/"); } + + my $postaction = $specialpostaction{$package}; + eval ($postaction) if $postaction; } @@ -1449,8 +1454,8 @@ sub donormal { killfiles($cleanpatt); killmorefiles($moreclean{$package}) if $moreclean{$package}; - my $postnormal = $specialpostnormal{$package}; - eval ($postnormal) if $postnormal; + my $postaction = $specialpostaction{$package}; + eval ($postaction) if $postaction; } sub runins { @@ -3184,13 +3189,27 @@ sub MAKElistings { &donormal; } + +sub POSTbabel +{ + # babel includes some hyphenation files (iahyphen icehyph lahyph) + # which babel-tds puts in tex/generic/hyphen. But we don't want them + # in texmf-dist/tex/generic/hyphen -- they have to be in texmf, not + # texmf-dist. Just remove them here; keeping the hyphenation files in + # sync is something we don't know how to tackle yet. + print "\t POST $package remove hyphenations\n"; + &SYSTEM ("rm -rf $DEST/tex/generic/hyphen"); +} + sub POSTfpl { + print "\t POST $package rename README.source\n"; &SYSTEM ("$MV README.source $DEST/source/fonts/fpl/README"); } sub POSTinteractiveworkbook { + print "\t POST $package mv .sty directory\n"; my $dest = "$DEST/tex/latex/$package"; &SYSTEM ("mkdir -p $dest"); &SYSTEM ("$MV interactiveworkbook.sty/* $dest/"); |