diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2021-02-09 11:15:19 +0900 |
---|---|---|
committer | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2021-02-09 11:23:47 +0900 |
commit | 0e370113e7af1aea544c832fa5fa23bf255eefcc (patch) | |
tree | b3883321e8805eb541433315b6b460d373198828 /scripts/html_summary.py | |
parent | a176f6999a2d33163365602fb56cae8711875e06 (diff) |
scripts: add html_summary.py
Because current PeriJect is using scripts/myhtml.py to
creating all HTML files, all files will be re-created
if myhtml.py itself was updated.
It is very verbose. This patch separates "summary" from it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Diffstat (limited to 'scripts/html_summary.py')
-rwxr-xr-x | scripts/html_summary.py | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/scripts/html_summary.py b/scripts/html_summary.py new file mode 100755 index 0000000..0d92abf --- /dev/null +++ b/scripts/html_summary.py @@ -0,0 +1,47 @@ +#! /usr/bin/env python3 +#=============================== +# +# html_summary +# +# 2021/02/09 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> +#=============================== +import sys +import os + +import find +import view +import html_base +from html_base import html +#==================================== +# +# periject_html +# +#==================================== +class periject_html(html_base.myhtml): + + def __init__(self): + super().__init__() + + def print(self, argv): + # remove this script + argv.pop(0) + + dir = os.path.normpath(argv[0]) + + # ------- + # summary + # ------- + # + # ------- + self.print_css(dir) + with html("body"): + self.summary(dir, self.top() + "/" + dir, find.find([dir]).get()) + +#==================================== +# +# As command +# +#==================================== +if __name__=='__main__': + # html_summary.py projects/linux/io + periject_html().print(sys.argv) |