Adds automatic update of copyright notice.
authorMartin Hořeňovský <Martin.Horenovsky@gmail.com>
Tue, 10 Sep 2013 14:48:32 +0000 (16:48 +0200)
committerMartin Hořeňovský <Martin.Horenovsky@gmail.com>
Tue, 10 Sep 2013 14:48:32 +0000 (16:48 +0200)
Everytime the HTML pages are remade, current year is taken and substituted into the copyright string.

gw-tests/genhtml/genhtml.py

index 051e034..811b735 100755 (executable)
@@ -6,8 +6,9 @@ import sys;
 import urllib
 import traceback
 import glob
+import datetime
 
-html_copyright = """<div style="font-size: small; color: gray; margin-top: 1em;">Authors: Michal Sojka, Pavel Píša, Copyright © 2010, 2011 Czech Technical University in Prague</div>"""
+html_copyright = """<div style="font-size: small; color: gray; margin-top: 1em;">Authors: Michal Sojka, Pavel Píša, Copyright © 2010-%d Czech Technical University in Prague</div>""" % datetime.date.today().year
 
 class DimValue(object):
     def __new__(cls, dim, value):