summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-07-31 17:47:49 (GMT)
committerFred Drake <fdrake@acm.org>2000-07-31 17:47:49 (GMT)
commit1915754ec900b95a28dd6ee9553309ad3d5cd641 (patch)
tree2567ad9171aece0cdb573467e6a60b7787c0bdb3
parent1e75e1776f3d2e35e02ccf7c31f6664381c84bc9 (diff)
downloadcpython-1915754ec900b95a28dd6ee9553309ad3d5cd641.zip
cpython-1915754ec900b95a28dd6ee9553309ad3d5cd641.tar.gz
cpython-1915754ec900b95a28dd6ee9553309ad3d5cd641.tar.bz2
Small changes to reflect changes in LaTeX2HTML support for newer versions
of LaTeX2HTML.
-rwxr-xr-xDoc/tools/mkhowto7
-rwxr-xr-xDoc/tools/mkhtml.sh4
2 files changed, 8 insertions, 3 deletions
diff --git a/Doc/tools/mkhowto b/Doc/tools/mkhowto
index 3dd744d..cf8a3cc 100755
--- a/Doc/tools/mkhowto
+++ b/Doc/tools/mkhowto
@@ -361,13 +361,16 @@ class Job:
def write_l2h_aux_init_file(self):
fp = open(self.l2h_aux_init_file, "w")
+ d = string_to_perl(os.path.dirname(L2H_INIT_FILE))
+ fp.write("package main;\n"
+ "push (@INC, '%s');\n"
+ "$mydir = '%s';\n"
+ % (d, d))
fp.write(open(L2H_INIT_FILE).read())
fp.write("\n"
"# auxillary init file for latex2html\n"
"# generated by mkhowto\n"
- "push (@INC, '%s');\n"
"$NO_AUTO_LINK = 1;\n"
- % os.path.dirname(L2H_INIT_FILE)
)
options = self.options
l2hoption(fp, "ABOUT_FILE", options.about_file)
diff --git a/Doc/tools/mkhtml.sh b/Doc/tools/mkhtml.sh
index 304839c..fcd2ea0 100755
--- a/Doc/tools/mkhtml.sh
+++ b/Doc/tools/mkhtml.sh
@@ -31,7 +31,9 @@ else
mkdir $part
fi
-echo "latex2html -init_file $srcdir/perl/l2hinit.perl -dir $part" \
+echo "latex2html -no_auto_link" \
+ "-up_url '../index.html' -up_title 'Documentation Index'" \
+ "-init_file $srcdir/perl/l2hinit.perl -dir $part" \
"${1:+$@} $srcdir/$part/$part.tex"
latex2html \
-no_auto_link \