File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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:
You can’t perform that action at this time.
0 commit comments