From e73acbaab6434b1c0bea3733a2e9281f1527694f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 4 Nov 2013 13:18:01 +0100 Subject: [PATCH] daca2-report: graphical updates. write date when each 'folder' is updated. write some more description about the project. try to fix problem that & is not displayed properly --- tools/daca2-report.py | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/tools/daca2-report.py b/tools/daca2-report.py index fd56e5dd9..54f3ca2b8 100644 --- a/tools/daca2-report.py +++ b/tools/daca2-report.py @@ -37,10 +37,21 @@ if len(sys.argv) == 2: mainpage = open(path + '/daca2.html', 'wt') mainpage.write('\n') -mainpage.write('DACA2\n') +mainpage.write('\n') +mainpage.write('\n') +mainpage.write('DACA2\n') +mainpage.write('\n') +mainpage.write('\n') mainpage.write('\n') mainpage.write('

DACA2

\n') -mainpage.write('

Results when running latest Cppcheck on Debian.

\n') +mainpage.write( + '

Results when running latest (git head) Cppcheck on Debian.

\n') +mainpage.write( + '

For performance reasons the analysis is limited. Files larger than 100kb are skipped. If analysis of a file takes more than 10 minutes it may be stopped.

\n') +mainpage.write('

The hardware running the analysis is a Raspberry PI.

\n') +mainpage.write('\n') +mainpage.write( + '\n') lastupdate = None recent = [] @@ -64,9 +75,9 @@ for lib in range(2): recent.append(a) mainpage.write( - '' + a + '
\n') + '\n') - data = data.replace('&', ' ') + data = data.replace('&', '&') data = data.replace('<', '<') data = data.replace('>', '>') data = data.replace('\'', ''') @@ -84,6 +95,8 @@ for lib in range(2): f.write('\n') f.close() +mainpage.write('
Name Date
' + a + '' + datestr + '
\n') + if lastupdate: mainpage.write('

Last update: ' + lastupdate + '

') allrecent = ''