From: Martin Hořeňovský Date: Tue, 10 Sep 2013 14:48:32 +0000 (+0200) Subject: Adds automatic update of copyright notice. X-Git-Tag: fix-allnoconfig~145 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-benchmark.git/commitdiff_plain/649e797da150105d81f2bd2affcbfc604de28f9b Adds automatic update of copyright notice. Everytime the HTML pages are remade, current year is taken and substituted into the copyright string. --- diff --git a/gw-tests/genhtml/genhtml.py b/gw-tests/genhtml/genhtml.py index 051e034..811b735 100755 --- a/gw-tests/genhtml/genhtml.py +++ b/gw-tests/genhtml/genhtml.py @@ -6,8 +6,9 @@ import sys; import urllib import traceback import glob +import datetime -html_copyright = """
Authors: Michal Sojka, Pavel Píša, Copyright © 2010, 2011 Czech Technical University in Prague
""" +html_copyright = """
Authors: Michal Sojka, Pavel Píša, Copyright © 2010-%d Czech Technical University in Prague
""" % datetime.date.today().year class DimValue(object): def __new__(cls, dim, value):