summaryrefslogtreecommitdiffstats
path: root/Doc/tools/mkhowto
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-11-03 02:57:31 (GMT)
committerFred Drake <fdrake@acm.org>2000-11-03 02:57:31 (GMT)
commit9dce7b3737c456f3c6f56f1f57c29b3c3b6b20aa (patch)
tree41aa1c5c864f96be253008ae0af0115feeac03c9 /Doc/tools/mkhowto
parent4bc0aed3a646685780fd5dc10bb396d9b0f060c0 (diff)
downloadcpython-9dce7b3737c456f3c6f56f1f57c29b3c3b6b20aa.zip
cpython-9dce7b3737c456f3c6f56f1f57c29b3c3b6b20aa.tar.gz
cpython-9dce7b3737c456f3c6f56f1f57c29b3c3b6b20aa.tar.bz2
Make sure we clean up the index data each time it is written by LaTeX.
Diffstat (limited to 'Doc/tools/mkhowto')
-rwxr-xr-xDoc/tools/mkhowto5
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/tools/mkhowto b/Doc/tools/mkhowto
index 1537bd0..0cb788f 100755
--- a/Doc/tools/mkhowto
+++ b/Doc/tools/mkhowto
@@ -279,7 +279,9 @@ class Job:
if self.latex_runs < 2:
if os.path.isfile("mod%s.idx" % self.doc):
self.run("%s mod%s.idx" % (MAKEINDEX_BINARY, self.doc))
+ use_indfix = 0
if os.path.isfile(self.doc + ".idx"):
+ use_indfix = 1
# call to Doc/tools/fix_hack omitted; doesn't appear necessary
self.run("%s %s.idx" % (MAKEINDEX_BINARY, self.doc))
import indfix
@@ -295,9 +297,10 @@ class Job:
if os.path.isfile("mod%s.idx" % self.doc):
self.run("%s -s %s mod%s.idx"
% (MAKEINDEX_BINARY, ISTFILE, self.doc))
- if os.path.isfile(self.doc + ".idx"):
+ if use_indfix:
self.run("%s -s %s %s.idx"
% (MAKEINDEX_BINARY, ISTFILE, self.doc))
+ indfix.process(self.doc + ".ind")
self.process_synopsis_files()
#
# and now finish it off: