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.pl46
1 files changed, 27 insertions, 19 deletions
diff --git a/Master/texmf-dist/source/latex/latex-tds/build.pl b/Master/texmf-dist/source/latex/latex-tds/build.pl
index 547c78e1d1c..21a5cada682 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.168 $');
-my $date = cvs('$Date: 2011/11/14 02:55:08 $');
+my $version = cvs('$Revision: 1.172 $');
+my $date = cvs('$Date: 2012/05/12 11:13:32 $');
my $author = 'Heiko Oberdiek';
-my $copyright = "Copyright 2006-2011 $author";
+my $copyright = "Copyright 2006-2012 $author";
chomp(my $license = <<"END_LICENSE");
% $copyright
%
@@ -25,7 +25,7 @@ chomp(my $license = <<"END_LICENSE");
%
% The Current Maintainer of this work is Heiko Oberdiek.
%
-% See `readme.txt' for a list of all files belonging to the
+% See `README' for a list of all files belonging to the
% project `$prj' and additional information.
%
END_LICENSE
@@ -55,10 +55,10 @@ my @pkg_list = (
);
my $zip_comment = <<'END_ZIP_COMMENT';
-**************************************************
-* This file is part of project 'latex-tds', see *
-* CTAN:macros/latex/contrib/latex-tds/readme.txt *
-**************************************************
+*************************************************
+* This file is part of project 'latex-tds', see *
+* CTAN:macros/latex/contrib/latex-tds/README *
+*************************************************
END_ZIP_COMMENT
my $error = "!!! Error:";
@@ -253,7 +253,7 @@ if (@list_modules > 0) {
download_ctan('babel', 'macros/latex/required');
download_ctan('amslatex', 'macros/latex/required');
download_ctan('amsrefs', 'macros/latex/contrib');
- download_ctan('amsrefs.tds', 'install/macros/latex/contrib');
+ # download_ctan('amsrefs.tds', 'install/macros/latex/contrib');
download_ctan('amscls.tds', 'install/macros/latex/required/amslatex');
download_ctan('psnfss', 'macros/latex/required');
download_ctan('tds', '');
@@ -272,6 +272,7 @@ if (@list_modules > 0) {
# download_ams('amslatex', '');
# download_ams('amsrefs-tds', 'amslatex/amsrefs');
# download_ams('amsrefs-ctan', 'amslatex/amsrefs');
+ download_ams('amsrefs', 'amsrefs');
download_err('manual');
download_err('lb2');
download_err('lgc2');
@@ -369,16 +370,19 @@ section('Unpacking');
map { unpack_ctan($_); } @required_list;
if ($modules{'amslatex'}) {
unpack_ams('amscls', "$dir_incoming_ctan/amscls.tds.zip");
- unpack_ams('amsrefs', "$dir_incoming_ctan/amsrefs.tds.zip");
+ #unpack_ams('amsrefs', "$dir_incoming_ctan/amsrefs.tds.zip");
+ unpack_ams('amsrefs', "$dir_incoming_ams/amsrefs.zip");
unpack_ams('amsmath', "$dir_incoming_ams/amsmath.zip");
# because of 00readme.txt and amsrefs.dtx
+ # 2012-05-08: 00readme.txt is renamed to README.
+ # 2012-05-08: amsrefs.dtx is fixed on CTAN.
unpacking('amslatex',
"$dir_incoming_ctan/amsrefs.zip",
"$dir_build/amslatex/ctan");
- run("$prg_cp $dir_build/amslatex/ctan/amsrefs/00readme.txt "
- . "$dir_build/amslatex/texmf/source/latex/amsrefs/00readme.txt");
- run("$prg_cp $dir_build/amslatex/ctan/amsrefs/amsrefs.dtx "
- . "$dir_build/amslatex/texmf/source/latex/amsrefs/amsrefs.dtx");
+ run("$prg_cp $dir_build/amslatex/ctan/amsrefs/README "
+ . "$dir_build/amslatex/texmf/source/latex/amsrefs/README");
+ # run("$prg_cp $dir_build/amslatex/ctan/amsrefs/amsrefs.dtx "
+ # . "$dir_build/amslatex/texmf/source/latex/amsrefs/amsrefs.dtx");
}
unpack_psnfss('lw35nfss');
unpack_psnfss('freenfss');
@@ -608,6 +612,10 @@ section('Patches after source install');
close(IN);
}
+ # fix CR/LF line endings of tlc2.err (2012-05-12)
+ run("$prg_zip -ll tlc2.zip tlc2.err");
+ run("$prg_unzip -o tlc2.zip");
+
chdir $cwd;
patch('base/encguide.tex');
@@ -636,7 +644,7 @@ section('Patches after source install');
patch("amslatex/amsrefs/changes.tex");
run("$prg_recode latin1..utf8 $dir_build/amslatex/amsrefs/changes.tex");
}
-
+
if ($modules{'babel'}) {
patch("babel/hebrew.fdd");
}
@@ -1696,7 +1704,7 @@ if ($modules{'source'}) {
install $dir_dest, qw[
build.pl
- readme.txt
+ README
];
install "$dir_dest/tex", glob("$dir_tex/*.*");
install "$dir_dest/patch", glob("$dir_patch/*.*");
@@ -1704,7 +1712,7 @@ if ($modules{'source'}) {
install "$dir_dest/lib", $file_adjust_checksum;
install "$dir_dest/license", "$dir_license/lppl.txt";
install "$dir_dest/license/ziptimetree", "$dir_license/ziptimetree/lgpl.txt";
- install $dir_distrib, 'readme.txt';
+ install $dir_distrib, 'README';
}
### Module latex-tds
@@ -1753,7 +1761,7 @@ section('Distrib');
if ($opt_all) {
chdir $dir_distrib;
- my $cmd = "$prg_zip -0 $file_ctan_distrib readme.txt";
+ my $cmd = "$prg_zip -0 $file_ctan_distrib README";
for my $pkg (sort @pkg_list) {
$cmd .= " $pkg.tds.zip";
}
@@ -1775,7 +1783,7 @@ END_CACHE
my $file = "$dir_distrib/$pkg.tds.zip";
if (-f $file) {
system("$prg_ls -l $file");
- system("$prg_ls -l $dir_distrib/readme.txt")if $pkg eq 'source';
+ system("$prg_ls -l $dir_distrib/README")if $pkg eq 'source';
}
else {
print "!!! Warning: Missing distribution for `$pkg'!\n";