Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f3d4127

Browse files
committed
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.
1 parent aaa2385 commit f3d4127

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Doc/tools/mkhowto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,9 @@ class Job:
349349
# build the command line and run LaTeX2HTML:
350350
if not os.path.isdir(builddir):
351351
os.mkdir(builddir)
352+
else:
353+
for fname in glob.glob(os.path.join(builddir, "*.html")):
354+
os.unlink(fname)
352355
args = [LATEX2HTML_BINARY,
353356
"-init_file", self.l2h_aux_init_file,
354357
"-dir", builddir,

0 commit comments

Comments
 (0)