summaryrefslogtreecommitdiff
path: root/Master/tlpkg/bin
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-12-24 19:48:12 +0000
committerKarl Berry <karl@freefriends.org>2007-12-24 19:48:12 +0000
commit87df5ef31adfd7293dfe89cf988750e61d43e0ca (patch)
treefa19086bf2f7338f3f3aed0860b7706e3e206ffd /Master/tlpkg/bin
parent2e7914252bb66aa99b8f5310d09ca210d50d1067 (diff)
remove hyphenation files present in babel, we want
them in texmf not texmf-dist. git-svn-id: svn://tug.org/texlive/trunk@5889 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/bin')
-rwxr-xr-xMaster/tlpkg/bin/ctan2tds27
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/");