From 9dce7b3737c456f3c6f56f1f57c29b3c3b6b20aa Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Fri, 3 Nov 2000 02:57:31 +0000 Subject: Make sure we clean up the index data each time it is written by LaTeX. --- Doc/tools/mkhowto | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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: -- cgit v0.12