[Python-checkins] CVS: python/dist/src/Doc/tools mkhowto,1.15,1.16

Fred L. Drake python-dev@python.org
Thu, 14 Sep 2000 15:25:49 -0700


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

Modified Files:
	mkhowto 
Log Message:

Before running LaTeX2HTML, remove all the HTML files from the output
directory.  This avoids acretion of HTML from previous runs which may
have a new name; this would have avoided a lot of the packaging problems
related to changing labels from the old distutils documentation.


Index: mkhowto
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/tools/mkhowto,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -r1.15 -r1.16
*** mkhowto	2000/09/05 21:45:11	1.15
--- mkhowto	2000/09/14 22:25:47	1.16
***************
*** 350,353 ****
--- 350,356 ----
          if not os.path.isdir(builddir):
              os.mkdir(builddir)
+         else:
+             for fname in glob.glob(os.path.join(builddir, "*.html")):
+                 os.unlink(fname)
          args = [LATEX2HTML_BINARY,
                  "-init_file", self.l2h_aux_init_file,