Skip to content

Commit 9dce7b3

Browse files
committed
Make sure we clean up the index data each time it is written by LaTeX.
1 parent 4bc0aed commit 9dce7b3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Doc/tools/mkhowto

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,9 @@ class Job:
279279
if self.latex_runs < 2:
280280
if os.path.isfile("mod%s.idx" % self.doc):
281281
self.run("%s mod%s.idx" % (MAKEINDEX_BINARY, self.doc))
282+
use_indfix = 0
282283
if os.path.isfile(self.doc + ".idx"):
284+
use_indfix = 1
283285
# call to Doc/tools/fix_hack omitted; doesn't appear necessary
284286
self.run("%s %s.idx" % (MAKEINDEX_BINARY, self.doc))
285287
import indfix
@@ -295,9 +297,10 @@ class Job:
295297
if os.path.isfile("mod%s.idx" % self.doc):
296298
self.run("%s -s %s mod%s.idx"
297299
% (MAKEINDEX_BINARY, ISTFILE, self.doc))
298-
if os.path.isfile(self.doc + ".idx"):
300+
if use_indfix:
299301
self.run("%s -s %s %s.idx"
300302
% (MAKEINDEX_BINARY, ISTFILE, self.doc))
303+
indfix.process(self.doc + ".ind")
301304
self.process_synopsis_files()
302305
#
303306
# and now finish it off:

0 commit comments

Comments
 (0)