From: Fred Drake Date: Thu, 14 Sep 2000 22:25:47 +0000 (+0000) Subject: Before running LaTeX2HTML, remove all the HTML files from the output X-Git-Tag: v2.0b2~315 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f3d41272c6c5d576471f5c80108a96386bc51558;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Doc/tools/mkhowto b/Doc/tools/mkhowto index de59602d4cb1..7edf5ffb5221 100755 --- a/Doc/tools/mkhowto +++ b/Doc/tools/mkhowto @@ -349,6 +349,9 @@ class Job: # build the command line and run LaTeX2HTML: 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, "-dir", builddir,