summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/latex-tds/build.pl
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/latex-tds/build.pl')
-rwxr-xr-xMaster/texmf-dist/source/latex/latex-tds/build.pl106
1 files changed, 85 insertions, 21 deletions
diff --git a/Master/texmf-dist/source/latex/latex-tds/build.pl b/Master/texmf-dist/source/latex/latex-tds/build.pl
index a639d66c186..d1ff6b4bae7 100755
--- a/Master/texmf-dist/source/latex/latex-tds/build.pl
+++ b/Master/texmf-dist/source/latex/latex-tds/build.pl
@@ -4,8 +4,8 @@ $^W=1;
my $prj = 'latex-tds';
my $file = 'build.pl';
-my $version = '1.174';
-my $date = '2014-02-14';
+my $version = '1.175';
+my $date = '2014-02-15';
my $author = 'Heiko Oberdiek';
my $copyright = "Copyright 2006-2013 $author";
chomp(my $license = <<"END_LICENSE");
@@ -52,6 +52,7 @@ my @pkg_list = (
'tds',
'knuth',
'etex',
+ 'amsfonts',
);
my $zip_comment = <<'END_ZIP_COMMENT';
@@ -256,6 +257,7 @@ if (@list_modules > 0) {
download_ctan('amsrefs.tds', 'install/macros/latex/contrib');
download_ctan('amscls.tds', 'install/macros/latex/required/amslatex');
download_ctan('math.tds', 'install/macros/latex/required/amslatex');
+ download_ctan('amsfonts.tds', 'install/fonts/');
download_ctan('psnfss', 'macros/latex/required');
download_ctan('tds', '');
download_ctan('texware', 'systems/knuth/dist');
@@ -386,6 +388,15 @@ section('Unpacking');
# run("$prg_cp $dir_build/amslatex/ctan/amsrefs/amsrefs.dtx "
# . "$dir_build/amslatex/texmf/source/latex/amsrefs/amsrefs.dtx");
}
+ if ($modules{'amsfonts'}) {
+ ensure_directory("$dir_build/amsfonts");
+ unpacking('amsfonts',
+ "$dir_incoming_ctan/amsfonts.tds.zip",
+ "$dir_build/amsfonts/texmf");
+ my $src = "$dir_build/amsfonts";
+ ensure_directory($src);
+ run("$prg_cp $dir_build/amsfonts/texmf/source/latex/amsfonts/* $src/");
+ }
unpack_psnfss('lw35nfss');
unpack_psnfss('freenfss');
unpack_ctan('tds');
@@ -647,6 +658,11 @@ section('Patches after source install');
run("$prg_recode latin1..utf8 $dir_build/amslatex/amsrefs/changes.tex");
}
+ if ($modules{'amsfonts'}) {
+ patch("amsfonts/amsfndoc.def");
+ patch("amsfonts/amsfndoc.tex");
+ }
+
if ($modules{'babel'}) {
patch("babel/hebrew.fdd");
}
@@ -1334,24 +1350,24 @@ END_CODE
chdir $cwd;
}
-### Generate documentation for amslatex
-if ($modules{'amslatex'}) {
- section('Documentation: amslatex');
-
- sub makeindex ($) {
- my $doc = shift;
- my $style;
- $style = 'gind.ist' unless $doc eq 'amsldoc';
- run_makeindex("$doc.idx", $style);
- }
+sub makeindex ($) {
+ my $doc = shift;
+ my $style;
+ $style = 'gind.ist' unless $doc eq 'amsldoc';
+ run_makeindex("$doc.idx", $style);
+}
- sub bibtex ($) {
- my $doc = shift;
+sub bibtex ($) {
+ my $doc = shift;
- if ($doc =~ /^cite-x[bh]$/) {
- run("$prg_bibtex $doc");
- }
+ if ($doc =~ /^cite-x[bh]$/) {
+ run("$prg_bibtex $doc");
}
+}
+
+### Generate documentation for amslatex
+if ($modules{'amslatex'}) {
+ section('Documentation: amslatex');
sub generate_doc ($$) {
my $amspkg = shift;
@@ -1363,12 +1379,14 @@ if ($modules{'amslatex'}) {
or $doc eq 'thmtest'
or $doc eq 'cite-xs'
or $doc eq 'mathscinet';
- $latextds = $prg_lualatextds2 if $doc eq 'amsldoc'
- or $doc eq 'subeqn'
- or $doc eq 'textcmds';
+ $latextds = $prg_lualatextds2
+ if $doc eq 'amsldoc'
+ or $doc eq 'subeqn'
+ or $doc eq 'textcmds';
$latextds = $prg_pdflatex
if $doc eq 'thmtest';
- $latextds = $prg_lualatex if $doc eq 'amsrdoc';
+ $latextds = $prg_lualatex
+ if $doc eq 'amsrdoc';
symlink $ams_drv, "$doc.drv";
cache 'amslatex', $doc, sub {
@@ -1414,6 +1432,52 @@ if ($modules{'amslatex'}) {
chdir $cwd;
}
+if ($modules{'amsfonts'}) {
+ section('Documentation: amsfonts');
+
+ sub generate_doc2 ($$) {
+ my $amspkg = shift;
+ my $doc = shift;
+ my $ams_drv = "$cwd/$dir_tex/ams.drv";
+ my $latextds = $prg_lualatextds;
+ $latextds = $prg_pdflatextds
+ if $doc eq 'eufrak'
+ or $doc eq 'euscript';
+
+ symlink $ams_drv, "$doc.drv";
+ cache 'amsfonts', $doc, sub {
+ run("$latextds -draftmode $doc.drv");
+ makeindex($doc);
+ bibtex($doc);
+ run("$latextds -draftmode $doc.drv");
+ makeindex($doc);
+ run("$latextds -draftmode $doc.drv");
+ makeindex($doc);
+ final_begin;
+ run("$latextds $doc.drv");
+ final_end;
+ };
+ install_gen_pdf('fonts', $amspkg, $doc);
+ }
+
+ chdir "$dir_build/amsfonts";
+ map {generate_doc2 'amsfonts', $_; } qw[
+ amsfonts amssymb cmmib57 eufrak euscript
+ ];
+ # plain: amsfndoc
+ {
+ my $doc = 'amsfndoc';
+ cache 'amslatex', $doc, sub {
+ run("$prg_pdftex -draftmode $doc.tex");
+ final_begin;
+ run("$prg_pdftex $doc.tex");
+ final_end;
+ };
+ }
+ install_gen_pdf('fonts', 'amsfonts', 'amsfndoc');
+ chdir $cwd;
+}
+
### Generate documentation for psnfss
if ($modules{'psnfss'}) {
section('Documentation: psnfss');