skip pyramid generation if output is up-to-date.

This commit is contained in:
Anthony Baxter 2006-03-27 05:46:54 +00:00
parent 47e612f17c
commit db65e33fef
1 changed files with 5 additions and 0 deletions

View File

@ -361,6 +361,11 @@ def make_html(inpath, verbose=0):
return None return None
destDir, needSvn, pepnum = set_up_pyramid(inpath) destDir, needSvn, pepnum = set_up_pyramid(inpath)
outpath = os.path.join(destDir, 'body.html') outpath = os.path.join(destDir, 'body.html')
if (os.path.exists(outpath) and
os.stat(inpath).st_mtime <= os.stat(outpath).st_mtime):
if verbose:
print "Skipping %s (outfile up to date)"%(inpath)
return
if verbose: if verbose:
print inpath, "(%s)" % pep_type, "->", outpath print inpath, "(%s)" % pep_type, "->", outpath
sys.stdout.flush() sys.stdout.flush()