]> rtime.felk.cvut.cz Git - can-benchmark.git/commitdiff
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 051e034ec5c0894085a3cb92c7b440fb9458c254..811b7359e6634b10a7487e3b423825d3793bd97f 100755 (executable)
@@ -6,8 +6,9 @@ import sys;
 import urllib
 import traceback
 import glob
 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):
 
 class DimValue(object):
     def __new__(cls, dim, value):