diff options
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2008-05-23 17:24:02 +0000 |
---|---|---|
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2008-05-23 17:24:02 +0000 |
commit | 14feebd07e52c39157374566f18d6eda87f06793 (patch) | |
tree | e7c19bcb702b6c7fe9854eea7e15e7613136c74e | |
parent | c5e802d2d1ec3d96d91f8490636bf44b7a80a05c (diff) |
tentative MAKEuntar for wadalab, not working yet
git-svn-id: svn://tug.org/texlive/trunk@8303 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-x | Master/tlpkg/bin/ctan2tds | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Master/tlpkg/bin/ctan2tds b/Master/tlpkg/bin/ctan2tds index 5788dd0955e..2769f528dca 100755 --- a/Master/tlpkg/bin/ctan2tds +++ b/Master/tlpkg/bin/ctan2tds @@ -394,6 +394,8 @@ chdir $startdir || die "chdir($startdir) failed: $!"; # back to raw 'vntex', "&MAKEcopy", 'voss-de', "&MAKEvossde", 'vrsion', "die 'skipping, nonfree license'", + #'wadalab', "&MAKEuntar", # still problems (wadalab.map is in CJK) + 'wadalab', "die 'skipping, still needs work'", 'wasy2', "&MAKEflatten", 'wntamil', "die 'skipping, nonfree license'", 'wordcount', "&MAKEwordcount", @@ -1832,6 +1834,31 @@ sub MAKEunzipandflatten { &donormal; } +# wadalab provides nearly TDS-ready .tar.gz with additional stuff +sub MAKEuntar +{ + print "MAKEuntar $package\n"; + &setup; + &xchdir ("$DEST/doc/$whichdocformat/$package"); + # each XX.tar.gz contains a tds-ready tree under XX/texmf: use it + opendir (HERE, ".") or die "this should no happen: $!"; + my @tarfiles = grep /\.tar\.gz$/, readdir HERE; + closedir HERE; + my $destfonts = "$DEST/fonts"; + &SYSTEM ("mkdir -p $destfonts"); + foreach my $tarfile (@tarfiles) { + &SYSTEM ("tar xzf $tarfile && rm $tarfile"); + $tarfile =~ s/\.tar\.gz$//; + &SYSTEM ("cp -r $tarfile/texmf/* $DEST"); + &SYSTEM ("rm -r $tarfile/texmf && rmdir $tarfile"); + } + # wadalab has a dir of xdelta from the original fonts + -d "xdelta" && &SYSTEM ("$MV xdelta $DEST/source/$whichdocformat/$package"); + # rm unused directories + &SYSTEM ("rmdir $DEST/*/$whichformat/$package 2>/dev/null"); +} + + sub MAKEnosymlinks { &setup; chdir("$DEST/doc/$whichdocformat/$package"); |