summaryrefslogtreecommitdiffstats
path: root/Doc/tools
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2003-01-17 21:25:04 (GMT)
committerFred Drake <fdrake@acm.org>2003-01-17 21:25:04 (GMT)
commit376f0ef30c74bf0834f313ee8add8993993cb4a8 (patch)
treecc7530ed7345c065ba68dcc1b6586f6e98f7f734 /Doc/tools
parent8b19a93b87d6514fec9918cd0b13cefbaca83950 (diff)
downloadcpython-376f0ef30c74bf0834f313ee8add8993993cb4a8.zip
cpython-376f0ef30c74bf0834f313ee8add8993993cb4a8.tar.gz
cpython-376f0ef30c74bf0834f313ee8add8993993cb4a8.tar.bz2
Clean up some files that LaTeX2HTML drops in the HTML output directory
sometimes.
Diffstat (limited to 'Doc/tools')
-rwxr-xr-xDoc/tools/mkhowto5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/tools/mkhowto b/Doc/tools/mkhowto
index 4ce126b..7163974 100755
--- a/Doc/tools/mkhowto
+++ b/Doc/tools/mkhowto
@@ -443,6 +443,11 @@ class Job:
self.run("%s %s *.html" % (PERL_BINARY, NODE2LABEL_SCRIPT))
finally:
os.chdir(pwd)
+ # These files need to be cleaned up here since builddir there
+ # can be more than one, so we clean each of them.
+ if self.options.discard_temps:
+ for fn in ("images.tex", "images.log", "images.aux"):
+ safe_unlink(os.path.join(builddir, fn))
def build_text(self, tempdir=None):
if tempdir is None: