summaryrefslogtreecommitdiffstats
path: root/Doc/tools/mkhowto
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-09-14 22:25:47 (GMT)
committerFred Drake <fdrake@acm.org>2000-09-14 22:25:47 (GMT)
commitf3d41272c6c5d576471f5c80108a96386bc51558 (patch)
tree9e70c2530d53f5db042b89a7e8b75d2d455c42d4 /Doc/tools/mkhowto
parentaaa238585f53c039ebb2ef4a442841e217db877e (diff)
downloadcpython-f3d41272c6c5d576471f5c80108a96386bc51558.zip
cpython-f3d41272c6c5d576471f5c80108a96386bc51558.tar.gz
cpython-f3d41272c6c5d576471f5c80108a96386bc51558.tar.bz2
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.
Diffstat (limited to 'Doc/tools/mkhowto')
-rwxr-xr-xDoc/tools/mkhowto3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/tools/mkhowto b/Doc/tools/mkhowto
index de59602..7edf5ff 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,