[Python-checkins] CVS: python/dist/src/Doc/tools mkhowto,1.17,1.18

Fred L. Drake python-dev@python.org
Thu, 2 Nov 2000 18:57:35 -0800


Update of /cvsroot/python/python/dist/src/Doc/tools
In directory slayer.i.sourceforge.net:/tmp/cvs-serv3491/tools

Modified Files:
	mkhowto 
Log Message:

Make sure we clean up the index data each time it is written by LaTeX.


Index: mkhowto
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/tools/mkhowto,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -r1.17 -r1.18
*** mkhowto	2000/09/20 05:49:09	1.17
--- mkhowto	2000/11/03 02:57:31	1.18
***************
*** 280,284 ****
--- 280,286 ----
              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))
***************
*** 296,302 ****
                  self.run("%s -s %s mod%s.idx"
                           % (MAKEINDEX_BINARY, ISTFILE, self.doc))
!             if os.path.isfile(self.doc + ".idx"):
                  self.run("%s -s %s %s.idx"
                           % (MAKEINDEX_BINARY, ISTFILE, self.doc))
              self.process_synopsis_files()
          #
--- 298,305 ----
                  self.run("%s -s %s mod%s.idx"
                           % (MAKEINDEX_BINARY, ISTFILE, self.doc))
!             if use_indfix:
                  self.run("%s -s %s %s.idx"
                           % (MAKEINDEX_BINARY, ISTFILE, self.doc))
+                 indfix.process(self.doc + ".ind")
              self.process_synopsis_files()
          #