summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/latex-tds/lib
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2008-04-06 15:08:30 +0000
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2008-04-06 15:08:30 +0000
commitdfa4a295dfc9d12a504a36a7534b7778d37e1050 (patch)
tree8a92f6a87fdb1a3bfc482885148cc2aa8d7f7f9e /Master/texmf-dist/source/latex/latex-tds/lib
parente951c402754fccfe6fc18cfd43531323e7f2a5db (diff)
latex-tds
git-svn-id: svn://tug.org/texlive/trunk@7332 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/latex-tds/lib')
-rwxr-xr-xMaster/texmf-dist/source/latex/latex-tds/lib/adjust_checksum.pl42
1 files changed, 38 insertions, 4 deletions
diff --git a/Master/texmf-dist/source/latex/latex-tds/lib/adjust_checksum.pl b/Master/texmf-dist/source/latex/latex-tds/lib/adjust_checksum.pl
index 9998a886c69..e690fb84057 100755
--- a/Master/texmf-dist/source/latex/latex-tds/lib/adjust_checksum.pl
+++ b/Master/texmf-dist/source/latex/latex-tds/lib/adjust_checksum.pl
@@ -26,17 +26,21 @@ $^W=1; # turn warning on
#
my $file = "adjust_checksum.pl";
my $program = uc($&) if $file =~ /^\w+/;
-my $version = "1.1";
-my $date = "2006/02/12";
+my $version = "1.3";
+my $date = "2007/09/25";
my $author = "Heiko Oberdiek";
-my $copyright = "Copyright (c) 2002, 2006 by $author.";
+my $copyright = "Copyright (c) 2002, 2006, 2007 by $author.";
#
# Reqirements: Perl5, Linux
# History:
# 2002/03/15 v1.0: First release.
# 2006/02/12 v1.1: Fix for \Checksum{0}.
+# 2007/06/15 v1.2: -draftmode added.
+# 2007/09/25 v1.3: ltxdoc.cfg added to speed up.
#
+my $prg_latex = 'latex -draftmode';
+
my $tempdir = "tmp_\L$program\E_$$";
### program identification
@@ -79,9 +83,39 @@ $tempdtxfile = $tempdir . "/" . $tempdtxfile;
system("cp $dtxfile $tempdtxfile");
-f $tempdtxfile or die "$Error Cannot copy dtx file!\n";
+### create ltxdoc.cfg
+my $ltxdocfile = $tempdir . "/" . 'ltxdoc.cfg';
+open(OUT, '>', $ltxdocfile)
+ or die "!!! Error: Cannot open file `$ltxdocfile'!\n";
+print OUT <<'__END__LTXDOC_CFG__';
+\typeout{* version for adjust_checksum}
+\AtEndOfClass{%
+ \DontCheckModules
+ \DisableCrossrefs
+ \def\DisableCrossrefs{\@bsphack\@esphack}%
+ \let\EnableCrossrefs\DisableCrossrefs
+ \let\CodelineIndex\relax
+ \let\PageIndex\relax
+ \let\CodelineNumbered\relax
+ \let\PrintChanges\relax
+ \let\PrintIndex\relax
+ \let\tableofcontents\relax
+ \PassOptionsToPackage{hyperref}{bookmarks=false}%
+ \PassOptionsToPackage{hypdoc}{numbered}%
+ \expandafter\xdef\csname ver@hypdoc.sty\endcsname{}%
+ \expandafter\xdef\csname ver@bmhydoc.sty\endcsname{}%
+ \nofiles
+ \hfuzz\maxdimen
+ \pretolerance10000 %
+ \tolerance10000 %
+}
+\endinput
+__END__LTXDOC_CFG__
+close(OUT);
+
### run latex
print "*** Running LaTeX ...\n";
-system("(cd $tempdir; latex --interaction=batchmode $latexfile)");
+system("(cd $tempdir; $prg_latex --interaction=batchmode $latexfile)");
my $logfile = $tempdtxfile;
$logfile =~ s/\.[^\.]+$//;