Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Removed print statements from build-html.py to silence cron. Also add…
…ed flag to rebuild all html.
  • Loading branch information
John Gabriele committed Apr 19, 2012
1 parent 037308c commit 9bc9428
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/build-html.py
Expand Up @@ -7,12 +7,14 @@

txt_files = glob.glob('*.txt')

DO_THEM_ALL = True

for txt_fn in txt_files:
html_fn = txt_fn[:-3] + 'html'
if not os.path.exists(html_fn) or os.path.getmtime(txt_fn) > os.path.getmtime(html_fn):
if DO_THEM_ALL or (not os.path.exists(html_fn)) or os.path.getmtime(txt_fn) > os.path.getmtime(html_fn):
if txt_fn == 'index.txt' or txt_fn == 'appendix-a-index.txt' or txt_fn == 'appendix-g-glossary.txt':
print "Processing:", txt_fn, '-->', html_fn
#print "Processing:", txt_fn, '-->', html_fn
os.system(pandoc_cmd2 % (html_fn, txt_fn))
else:
print "Processing:", txt_fn, '-->', html_fn
#print "Processing:", txt_fn, '-->', html_fn
os.system(pandoc_cmd % (html_fn, txt_fn))

0 comments on commit 9bc9428

Please sign in to comment.