diff options
author | Karl Berry <karl@freefriends.org> | 2007-09-22 00:22:33 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2007-09-22 00:22:33 +0000 |
commit | 84511fb8203187cb544f48090fefbe46676fd5de (patch) | |
tree | 8c1793858c6da678a83bcd9703eadd612a539fa7 /Build/cdbuild | |
parent | d647fe2f92a1bb89564a4298f9f4d044e88ee3a2 (diff) |
astro doc in fonts (luecking, 23 Jul 2007 13:47:15)
git-svn-id: svn://tug.org/texlive/trunk@5002 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/cdbuild')
-rwxr-xr-x | Build/cdbuild/ctan2tds.pl | 30 |
1 files changed, 23 insertions, 7 deletions
diff --git a/Build/cdbuild/ctan2tds.pl b/Build/cdbuild/ctan2tds.pl index ef6e92885d7..f1ae4ea2d50 100755 --- a/Build/cdbuild/ctan2tds.pl +++ b/Build/cdbuild/ctan2tds.pl @@ -1043,10 +1043,10 @@ $standardbib='\.bib$'; # $ so we don't find README.bibtex in IEEEtran 'umthesis', 'NULL', ); -# packages which have Metafont sources to compile or install. +# packages which have Metafont sources to run. $standardmf='[0-9]\.mf'; %specialmf= ( - 'astro', 'astro.mf', + 'astro', 'astrosym.mf', 'backgammon', 'bg\.mf', 'cherokee', 'cherokee.mf', 'circ', 'csybimos\.mf|csycirc\.mf|csydiod\.mf|csyrest\.mf|csywidko\.mf|csysym\.mf|optic\.mf', @@ -1075,6 +1075,11 @@ $standardmf='[0-9]\.mf'; 'xq', 'xq(normal|large)\.mf', ); +# additional mf files to be installed but not run. +%specialmfinstall = ( + 'astro', 'astrosym.(cal|cmn|mac|uni|xtr)', +); + # packages which have dvips header files $standardpro='\.pro'; %specialpro= ( @@ -1210,8 +1215,10 @@ sub set_dir_defaults my ($ctan_dir) = @_; my $changed = 1; - if ($ctan_dir =~ m!/graphics/metapost!) { + if ($ctan_dir =~ m!/graphics/metapost/!) { $standardfmt = $standarddocfmt = $standardsourcefmt = "metapost"; + } elsif ($ctan_dir =~ m!/fonts/!) { + $standardfmt = $standarddocfmt = $standardsourcefmt = "fonts"; } else { $changed = 0; } @@ -1592,13 +1599,22 @@ sub runmf { &runjob("mktextfm --destdir=`pwd` $FileBase.tfm"); } } + if ($needdir) { - &SYSTEM("mkdir -p $DEST/fonts/source/$Foundry/$package"); + my $mfdir = "$DEST/fonts/source/$Foundry/$package"; + &SYSTEM ("mkdir -p $mfdir"); + # # don't use $mfpatt since that's only the tfm-able mf files. - &runjob("$MV *.mf $DEST/fonts/source/$Foundry/$package"); - &SYSTEM("rm -f *pk"); # not worth the space + &SYSTEM ("$MV *.mf $mfdir"); + if (exists $specialmfinstall{$package}) { + my @inst = grep (/$specialmfinstall{$package}/, @filenames); + &SYSTEM ("$MV @inst $mfdir"); + } + # + &SYSTEM ("rm -f *pk"); # not worth the space + } else { - print "\t (no $mfpatt)\n"; + print "\t (no $mfpatt to runmf)\n"; } } |