diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/latex-tds/build.pl')
-rwxr-xr-x | Master/texmf-dist/source/latex/latex-tds/build.pl | 56 |
1 files changed, 45 insertions, 11 deletions
diff --git a/Master/texmf-dist/source/latex/latex-tds/build.pl b/Master/texmf-dist/source/latex/latex-tds/build.pl index 346fb7f25ad..c8b10439425 100755 --- a/Master/texmf-dist/source/latex/latex-tds/build.pl +++ b/Master/texmf-dist/source/latex/latex-tds/build.pl @@ -4,10 +4,10 @@ $^W=1; my $prj = 'latex-tds'; my $file = 'build.pl'; -my $version = cvs('$Revision: 1.141 $'); -my $date = cvs('$Date: 2008/09/10 14:22:05 $'); +my $version = cvs('$Revision: 1.145 $'); +my $date = cvs('$Date: 2009/09/09 07:40:24 $'); my $author = 'Heiko Oberdiek'; -my $copyright = "Copyright 2006-2008 $author"; +my $copyright = "Copyright 2006-2009 $author"; chomp(my $license = <<"END_LICENSE"); % $copyright % @@ -393,7 +393,7 @@ section('Patches'); if ($modules{'amslatex'}) { patch("amslatex/math/amsldoc.tex"); } - + # if ($modules{'babel'}) { # map { patch("babel/$_"); } qw[ # ]; @@ -590,6 +590,10 @@ section('Patches after source install'); } } + + if ($modules{'amslatex'}) { + patch("amslatex/classes/amsclass.dtx"); + } } ### Docstrip @@ -1397,6 +1401,20 @@ if ($modules{'latex3'}) { run("$prg_pdflatextds $file"); install_pdf($pkg, $name); } + sub latex3_doc ($$$$) { + my $pkg = shift; + my $name = shift; + my $ext = shift; + my $style = shift; + $ext = ".$ext" if $ext; + my $file = "$name$ext"; + run("$prg_pdflatextds -draftmode $file"); + run("$prg_makeindex -s $style -o $name.ind $name.idx"); + run("$prg_pdflatextds -draftmode $file"); + run("$prg_makeindex -s $style -o $name.ind $name.idx"); + run("$prg_pdflatextds $file"); + install_pdf($pkg, $name); + } sub source3_doc($$) { my $pkg = shift; my $name = shift; @@ -1412,14 +1430,30 @@ if ($modules{'latex3'}) { install_pdf($pkg, $name); } - simple3_doc('expl3', 'expl3', 'drv'); - simple3_doc('expl3', 'l32eproc', 'drv'); - source3_doc('expl3', 'source3'); + # simple3_doc('expl3', 'expl3', 'drv'); + # simple3_doc('expl3', 'l32eproc', 'drv'); + # source3_doc('expl3', 'source3'); + + my $file_style_l3doc = 'texmf/makeindex/expl3/l3doc.ist'; + open(IN, '<', $file_style_l3doc) + or die "$error Cannot open `$file_style_l3doc'!\n"; + open(OUT, '>', 'xparse.ist') + or die "$error Cannot write `xparse.ist'!\n"; + print OUT "level '#'\n"; + while (<IN>) { + next if /^level/; + print OUT; + } + close(IN); + close(OUT); + + simple3_doc('xpackages/xbase', 'ldcsetup', 'dtx'); + simple3_doc('xpackages/xbase', 'template', 'dtx'); + latex3_doc('xpackages/xbase', 'xparse', 'drv', 'xparse.ist'); + latex3_doc('xpackages/xtras', 'l3keys2e', 'dtx', 'l3doc.ist'); + # simple3_doc('xpackages', 'xtheorem', 'dtx'); - simple3_doc('xpackages', 'ldcsetup', 'dtx'); - simple3_doc('xpackages', 'template', 'dtx'); - simple3_doc('xpackages', 'xparse', 'dtx'); - simple3_doc('xpackages', 'xtheorem', 'dtx'); + run("$prg_rm -rf texmf/{doc,source,tex}/latex/expl3 texmf/makeindex"); chdir $cwd; } |