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

Skip to content

Commit 376f0ef

Browse files
committed
Clean up some files that LaTeX2HTML drops in the HTML output directory
sometimes.
1 parent 8b19a93 commit 376f0ef

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Doc/tools/mkhowto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,11 @@ class Job:
443443
self.run("%s %s *.html" % (PERL_BINARY, NODE2LABEL_SCRIPT))
444444
finally:
445445
os.chdir(pwd)
446+
# These files need to be cleaned up here since builddir there
447+
# can be more than one, so we clean each of them.
448+
if self.options.discard_temps:
449+
for fn in ("images.tex", "images.log", "images.aux"):
450+
safe_unlink(os.path.join(builddir, fn))
446451

447452
def build_text(self, tempdir=None):
448453
if tempdir is None:

0 commit comments

Comments
 (0)