skip pyramid generation if output is up-to-date.
This commit is contained in:
parent
47e612f17c
commit
db65e33fef
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue