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.pl50
1 files changed, 47 insertions, 3 deletions
diff --git a/Master/texmf-dist/source/latex/latex-tds/build.pl b/Master/texmf-dist/source/latex/latex-tds/build.pl
index 86580737003..e2921134776 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.154 $');
-my $date = cvs('$Date: 2010/10/27 04:46:52 $');
+my $version = cvs('$Revision: 1.157 $');
+my $date = cvs('$Date: 2011/04/18 20:00:10 $');
my $author = 'Heiko Oberdiek';
-my $copyright = "Copyright 2006-2010 $author";
+my $copyright = "Copyright 2006-2011 $author";
chomp(my $license = <<"END_LICENSE");
% $copyright
%
@@ -73,6 +73,7 @@ my $dir_license = 'license';
my $dir_tex = 'tex';
my $dir_patch = 'patch';
my $dir_distrib = 'distrib';
+my $dir_texmf = "texmf";
chomp(my $cwd = `pwd`);
my $jar_pdfbox_rewrite = "$cwd/$dir_lib/pdfbox-rewrite.jar";
@@ -110,6 +111,7 @@ my $prg_rm = "rm";
my $prg_rsync = "rsync";
my $prg_sed = "sed";
my $prg_sort = "sort";
+my $prg_texhash = "texhash";
my $prg_unzip = 'unzip';
my $prg_weave = 'weave';
my $prg_wget = 'wget';
@@ -121,6 +123,12 @@ $ENV{'BSTINPUTS'} = '.:texmf/bibtex//:'; # amslatex
$ENV{'TFMFONTS'} = 'texmf/fonts/tfm//:'; # psnfss
$ENV{'VFFONTS'} = 'texmf/fonts/vf//:'; # psnfss
$ENV{'INDEXSTYLE'} = '.:texmf/makeindex//:'; # babel
+if ($ENV{'TEXMFHOME'}) {
+ $ENV{'TEXMFHOME'} = "$cwd/$dir_texmf:${'TEXMFHOME'}";
+}
+else {
+ $ENV{'TEXMFHOME'} = "$cwd/$dir_texmf:";
+}
sub install ($@);
sub final_begin ();
@@ -253,6 +261,7 @@ if (@list_modules > 0) {
download_err('lb2');
download_err('lgc2');
download_err('tlc2');
+ download_ctan_file('armtex.zip', 'language/armenian');
}
### Remove previous build
@@ -338,6 +347,9 @@ section('Unpacking');
"$dir_incoming_ctan/doc.zip",
"$dir_build/base");
run("$prg_cp -p $dir_build/base/doc/*.tex $dir_build/base/");
+ unpacking('base',
+ "$dir_incoming_ctan/armtex.zip",
+ "$dir_build/base");
}
map { unpack_ctan($_); } @required_list;
if ($modules{'amslatex'}) {
@@ -578,6 +590,7 @@ section('Patches after source install');
patch('base/encguide.tex');
patch('base/source2e.tex');
patch('base/utf8ienc.dtx');
+ patch('base/lppl.tex');
}
if ($modules{'knuth'}) {
@@ -617,6 +630,13 @@ section('Docstrip');
docstrip('graphics', 'graphics-drivers');
docstrip('tools', 'tools');
docstrip('babel', 'babel');
+
+ # patch for amsthm.sty, part 1/2
+ if ($modules{'amslatex'}) {
+ chdir "$dir_build/amslatex/amscls";
+ run("$prg_docstrip ams-c1.ins");
+ chdir $cwd;
+ }
}
section('TDS cleanup');
@@ -793,6 +813,15 @@ section('Install tex doc');
]);
chdir $cwd;
}
+
+ # patch for amsthm.sty, part 2/2
+ if ($modules{'amslatex'}) {
+ chdir "$dir_build/amslatex/amscls";
+ my $dest_dir = '../texmf/tex/latex/amscls';
+ ensure_directory($dest_dir);
+ install($dest_dir, 'amsthm.sty');
+ chdir $cwd;
+ }
my $dummy = <<'END_DUMMY';
if ($modules{'babel'}) {
@@ -812,6 +841,21 @@ my $dummy = <<'END_DUMMY';
END_DUMMY
}
+### Preparation for documentation
+if ($modules{'base'}) {
+ my $dir_src = "$dir_build/base/armtex";
+ my $tds_mf = "$dir_texmf/fonts/source/public/armtex";
+ my $tds_tfm = "$dir_texmf/fonts/tfm/public/armtex";
+ my $tds_latex = "$dir_texmf/tex/latex/armtex";
+ my @tds_mf = map {chomp;$_} glob "$dir_src/mf/*.mf";
+ my @tds_tfm = map {chomp;$_} glob "$dir_src/tfm/*.tfm";
+ my @tds_latex = map {chomp;$_} glob "$dir_src/latex/*.*";
+ install($tds_mf, @tds_mf);
+ install($tds_tfm, @tds_tfm);
+ install($tds_latex, @tds_latex);
+ run("$prg_texhash $dir_texmf");
+}
+
### Generate documentation for base
if ($modules{'base'}) {
section('Documenation: base');