diff options
author | Karl Berry <karl@freefriends.org> | 2007-09-21 23:34:04 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2007-09-21 23:34:04 +0000 |
commit | 37008cfc0e58d958b8f4b477a78e6b44d47825a1 (patch) | |
tree | 26292bd56dbdc2c54f9b93156692c20410eb58b6 /Build/cdbuild | |
parent | a6a13c1b2f09c6318e60b65c389ba82418cda2ce (diff) |
makecirc doc in metapost
git-svn-id: svn://tug.org/texlive/trunk@4997 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/cdbuild')
-rwxr-xr-x | Build/cdbuild/ctan2tds.pl | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Build/cdbuild/ctan2tds.pl b/Build/cdbuild/ctan2tds.pl index b6e5fa14423..ef6e92885d7 100755 --- a/Build/cdbuild/ctan2tds.pl +++ b/Build/cdbuild/ctan2tds.pl @@ -139,6 +139,7 @@ chdir $startdir || die "chdir($startdir) failed: $!"; 'ebong', "&MAKEebong", 'ecc', "&MAKEecc", 'eco', "&MAKEeco", + 'edmac', "warn \"skipping edmac, needs work (unzip xx)\n\"", 'ednotes', "&MAKEnosymlinks", 'elhyphen', "&MAKEelhyphen", 'epiolmec', "&MAKEflatten", @@ -1179,6 +1180,8 @@ for (@ARGV) { print "Package $packagedir has a TeXlive-aware Makefile. Make and send to $DEST\n"; } else { + &set_dir_defaults ($opt_ctan_dir); + $insrunner = $specialinsrunner{$package} || $standardinsrunner; $whichformat = $specialfmt{$package} || $standardfmt; @@ -1198,7 +1201,27 @@ for (@ARGV) { &xchdir ($startdir); } + +# Override our default guess of "latex" if we can intuit from the CTAN +# path, which ctan2tl kindly passes us. +# +sub set_dir_defaults +{ + my ($ctan_dir) = @_; + my $changed = 1; + + if ($ctan_dir =~ m!/graphics/metapost!) { + $standardfmt = $standarddocfmt = $standardsourcefmt = "metapost"; + } else { + $changed = 0; + } + + print "\t reset fmt/docfmt/srcfmt to $standardfmt (based on $ctan_dir)\n" + if $changed; +} + + sub xchdir { my ($dir) = @_; |