diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2019-12-23 17:45:32 +0900 |
---|---|---|
committer | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2019-12-24 13:26:55 +0900 |
commit | ffd8575eb1099413a1bc248007737124f0859314 (patch) | |
tree | 9009843152852d4a8dadc4df95158712652a5805 | |
parent | dc71f3518c95f8d9d306e8a4e53bc9bd2e9928e3 (diff) |
chatlog: Auto update for Chat log
This patch adds chatlog.py and auto update Chat log.
Each leader need to do is just put chatlog under wiki/Chat_log
by this patch.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile | 9 | ||||
-rwxr-xr-x | scripts/chatlog.py | 60 | ||||
-rw-r--r-- | wiki/Chat_log.wiki | 97 | ||||
-rw-r--r-- | wiki/Chat_log/20160711-io-chatlog (renamed from wiki/Chat_log/20160711-io-MiniPeriPeriCon-log) | 0 |
5 files changed, 68 insertions, 99 deletions
@@ -2,4 +2,5 @@ scripts/__pycache__/ index.html html +wiki/Chat_log.wiki @@ -2,7 +2,7 @@ HTML = ./scripts/myhtml.py FIND = ./scripts/find.py ALLYAML = $(shell ${FIND} -all) PROJECT = $(subst ./,,$(shell cd ./projects; find -type d)) -WIKI = $(shell find wiki -name "*.wiki") +WIKI = $(shell ls wiki/*.wiki) WIKIDIR = html/wiki HTMLDIR = $(addprefix html/, ${PROJECT}) PRODIR = $(shell find ./projects -type d) @@ -11,7 +11,7 @@ MEMBER = BSP Geert Jacopo Kaneko Kieran Laurent Magnus Marek Morimoto Niklas Shi STATUS = New Active Blocked Paused Done Abandoned NOPARAM = menu subindex body index -all: +all: wiki/Chat_log.wiki @make -s .git/hooks/pre-commit @make -s ${HTMLDIR} ${WIKIDIR} @make -s LISTS="${MEMBER}" TARGET=finds EXP1=member EXP2=-a loop @@ -27,6 +27,10 @@ all: .git/hooks/pre-commit: @ln -s ../../scripts/pre-commit.sh .git/hooks/pre-commit +wiki/Chat_log.wiki: wiki/Chat_log + @echo $@ + @./scripts/chatlog.py > $@ + index.html: @ln html/index.html . @@ -58,3 +62,4 @@ wikis: clean: @rm -fr html @rm -fr *.html + @rm -fr wiki/Chatlog.wiki diff --git a/scripts/chatlog.py b/scripts/chatlog.py new file mode 100755 index 0000000..9a97880 --- /dev/null +++ b/scripts/chatlog.py @@ -0,0 +1,60 @@ +#! /usr/bin/env python3 +#=============================== +# +# chatlog +# +# 2019/12/23 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> +#=============================== +import sys +import os +import re +import glob + +import base +#==================================== +# +# log +# +#==================================== +class log(base.base): + + #-------------------- + # show + #-------------------- + def show(self): + print("h1. Chat Log\n") + + current="" + year="" + dir = "wiki/Chat_log" + + files = glob.glob("{}/{}/*-chatlog".format(self.top(), dir)) + files.sort(reverse=True) + + for file in files: + name = os.path.basename(file) + date = re.sub(r'(\d+)-\w*-.*', r'\1', name) + + y = date[0:4] + if (year != y): + year = y + print("\nh2. {}\n".format(year)) + print("|_. year|_. core|_. io|_. mm|") + + if (date != current): + current = date + + print("|{}-{}-{}".format(year, date[4:6], date[6:8]), end="") + for grp in ["core", "io", "mm"]: + print("|%s" %("\"{}\":../../{}/{}-{}-chatlog".format(grp, dir, date, grp) + if "{}/{}/{}-{}-chatlog".format(self.top(), dir, date, grp) in files + else ""), end="") + print("|") + +#==================================== +# +# As command +# +#==================================== +if __name__=='__main__': + log().show() diff --git a/wiki/Chat_log.wiki b/wiki/Chat_log.wiki deleted file mode 100644 index 5cef64a..0000000 --- a/wiki/Chat_log.wiki +++ /dev/null @@ -1,97 +0,0 @@ -h1. Chat Log - -|2019-12-19| core |"io":../../wiki/Chat_log/20191219-io-chatlog|mm| -|2019-11-28|"core":../../wiki/Chat_log/20191128-core-chatlog|"io":../../wiki/Chat_log/20191128-io-chatlog|mm| -|2019-11-07|"core":../../wiki/Chat_log/20191107-core-chatlog|"io":../../wiki/Chat_log/20191107-io-chatlog|mm| -|2019-10-10|"core":../../wiki/Chat_log/20191010-core-chatlog|"io":../../wiki/Chat_log/20191010-io-chatlog|"mm":../../wiki/Chat_log/20191010-mm-chatlog| -|2019-08-22|"core":../../wiki/Chat_log/20190822-core-chatlog|"io":../../wiki/Chat_log/20190822-io-chatlog|"mm":../../wiki/Chat_log/20190822-mm-chatlog| -|2019-08-01|"core":../../wiki/Chat_log/20190801-core-chatlog|"io":../../wiki/Chat_log/20190801-io-chatlog|mm| -|2019-06-20|"core":../../wiki/Chat_log/20190620-core-chatlog|"io":../../wiki/Chat_log/20190620-io-chatlog|"mm":../../wiki/Chat_log/20190618-mm-chatlog| -|2019-06-06|"core":../../wiki/Chat_log/20190606-core-chatlog|"io":../../wiki/Chat_log/20190606-io-chatlog|"mm":../../wiki/Chat_log/20190606-mm-chatlog| -|2019-05-23|"core":../../wiki/Chat_log/20190523-core-chatlog|"io":../../wiki/Chat_log/20190523-io-chatlog|"mm":../../wiki/Chat_log/20190523-mm-chatlog| -|2019-05-09|"core":../../wiki/Chat_log/20190509-core-chatlog|"io":../../wiki/Chat_log/20190509-io-chatlog|"mm":../../wiki/Chat_log/20190509-mm-chatlog| -|2019-04-18| core |"io":../../wiki/Chat_log/20190418-io-chatlog|"mm":../../wiki/Chat_log/20190418-mm-chatlog| -|2019-04-04|"core":../../wiki/Chat_log/20190404-core-chatlog|"io":../../wiki/Chat_log/20190404-io-chatlog|"mm":../../wiki/Chat_log/20190404-mm-chatlog| -|2019-03-07|"core":../../wiki/Chat_log/20190307-core-chatlog|"io":../../wiki/Chat_log/20190307-io-chatlog|"mm":../../wiki/Chat_log/20190307-mm-chatlog| -|2019-02-21|"core":../../wiki/Chat_log/20190221-core-chatlog|"io":../../wiki/Chat_log/20190221-io-chatlog|"mm":../../wiki/Chat_log/20190221-mm-chatlog| -|2019-01-24|"core":../../wiki/Chat_log/20190124-core-chatlog|"io":../../wiki/Chat_log/20190124-io-chatlog|"mm":../../wiki/Chat_log/20190124-mm-chatlog| -|2019-01-10|"core":../../wiki/Chat_log/20190110-core-chatlog| io |"mm":../../wiki/Chat_log/20190110-mm-chatlog| -|2018-12-20|"core":../../wiki/Chat_log/20181220-core-chatlog|"io":../../wiki/Chat_log/20181220-io-chatlog|"mm":../../wiki/Chat_log/20181220-mm-chatlog| -|2018-12-06|"core":../../wiki/Chat_log/20181206-core-chatlog|"io":../../wiki/Chat_log/20181206-io-chatlog|"mm":../../wiki/Chat_log/20181206-mm-chatlog| -|2018-11-22|"core":../../wiki/Chat_log/20181122-core-chatlog| io |"mm":../../wiki/Chat_log/20181122-mm-chatlog| -|2018-11-08|"core":../../wiki/Chat_log/20181108-core-chatlog|"io":../../wiki/Chat_log/20181108-io-chatlog|"mm":../../wiki/Chat_log/20181108-mm-chatlog| -|2018-10-18|"core":../../wiki/Chat_log/20181018-core-chatlog|"io":../../wiki/Chat_log/20181018-io-chatlog|"mm":../../wiki/Chat_log/20181018-mm-chatlog| -|2018-10-04|"core":../../wiki/Chat_log/20181004-core-chatlog|"io":../../wiki/Chat_log/20181004-io-chatlog|"mm":../../wiki/Chat_log/20181004-mm-chatlog| -|2018-09-20|"core":../../wiki/Chat_log/20180920-core-chatlog|"io":../../wiki/Chat_log/20180920-io-chatlog|"mm":../../wiki/Chat_log/20180920-mm-chatlog| -|2018-09-06|"core":../../wiki/Chat_log/20180906-core-chatlog|"io":../../wiki/Chat_log/20180906-io-chatlog|"mm":../../wiki/Chat_log/20180906-mm-chatlog| -|2018-08-23|"core":../../wiki/Chat_log/20180823-core-chatlog|"io":../../wiki/Chat_log/20180823-io-chatlog|"mm":../../wiki/Chat_log/20180823-mm-chatlog| -|2018-08-09|"core":../../wiki/Chat_log/20180809-core-chatlog|"io":../../wiki/Chat_log/20180809-io-chatlog|"mm":../../wiki/Chat_log/20180809-mm-chatlog| -|2018-07-26|"core":../../wiki/Chat_log/20180726-core-chatlog|"io":../../wiki/Chat_log/20180726-io-chatlog|"mm":../../wiki/Chat_log/20180726-mm-chatlog| -|2018-07-12|"core":../../wiki/Chat_log/20180712-core-chatlog|"io":../../wiki/Chat_log/20180712-io-chatlog|"mm":../../wiki/Chat_log/20180712-mm-chatlog| -|2018-06-07|"core":../../wiki/Chat_log/20180607-core-chatlog|"io":../../wiki/Chat_log/20180607-io-chatlog|"mm":../../wiki/Chat_log/20180607-mm-chatlog| -|2018-05-24|"core":../../wiki/Chat_log/20180524-core-chatlog|"io":../../wiki/Chat_log/20180524-io-chatlog|"mm":../../wiki/Chat_log/20180524-mm-chatlog| -|2018-05-09|"core":../../wiki/Chat_log/20180509-core-chatlog|"io":../../wiki/Chat_log/20180509-io-chatlog|"mm":../../wiki/Chat_log/20180509-mm-chatlog| -|2018-04-19|"core":../../wiki/Chat_log/20180419-core-chatlog|"io":../../wiki/Chat_log/20180419-io-chatlog|"mm":../../wiki/Chat_log/20180419-mm-chatlog| -|2018-04-05|"core":../../wiki/Chat_log/20180405-core-chatlog|"io":../../wiki/Chat_log/20180405-io-chatlog|"mm":../../wiki/Chat_log/20180405-mm-chatlog| -|2018-03-22|"core":../../wiki/Chat_log/20180322-core-chatlog|"io":../../wiki/Chat_log/20180322-io-chatlog|"mm":../../wiki/Chat_log/20180322-mm-chatlog| -|2018-03-01|"core":../../wiki/Chat_log/20180301-core-chatlog|"io":../../wiki/Chat_log/20180301-io-chatlog|"mm":../../wiki/Chat_log/20180301-mm-chatlog| -|2018-02-15|"core":../../wiki/Chat_log/20180215-core-chatlog|"io":../../wiki/Chat_log/20180215-io-chatlog|"mm":../../wiki/Chat_log/20180215-mm-chatlog| -|2018-01-25|"core":../../wiki/Chat_log/20180125-core-chatlog| io |"mm":../../wiki/Chat_log/20180125-mm-chatlog| -|2018-01-09|"core":../../wiki/Chat_log/20180109-core-chatlog|"io":../../wiki/Chat_log/20180109-io-chatlog|"mm":../../wiki/Chat_log/20180109-mm-chatlog| -|2017-12-14|"core":../../wiki/Chat_log/20171214-core-chatlog|"io":../../wiki/Chat_log/20171214-io-chatlog|"mm":../../wiki/Chat_log/20171214-mm-chatlog| -|2017-11-30|"core":../../wiki/Chat_log/20171130-core-chatlog|"io":../../wiki/Chat_log/20171130-io-chatlog|"mm":../../wiki/Chat_log/20171123-mm-chatlog| -|2017-11-09|"core":../../wiki/Chat_log/20171109-core-chatlog|"io":../../wiki/Chat_log/20171109-io-chatlog|"mm":../../wiki/Chat_log/20171109-mm-chatlog| -|2017-10-19|"core":../../wiki/Chat_log/20171019-core-chatlog|"io":../../wiki/Chat_log/20171019-io-chatlog|"mm":../../wiki/Chat_log/20171019-mm-chatlog| -|2017-10-05|"core":../../wiki/Chat_log/20171005-core-chatlog|"io":../../wiki/Chat_log/20171005-io-chatlog|"mm":../../wiki/Chat_log/20171005-mm-chatlog| -|2017-09-21|"core":../../wiki/Chat_log/20170921-core-chatlog|"io":../../wiki/Chat_log/20170921-io-chatlog|"mm":../../wiki/Chat_log/20170921-mm-chatlog| -|2017-09-06|"core":../../wiki/Chat_log/20170906-core-chatlog| io | mm| -|2017-08-17|"core":../../wiki/Chat_log/20170817-core-chatlog|"io":../../wiki/Chat_log/20170817-io-chatlog|"mm":../../wiki/Chat_log/20170817-mm-chatlog| -|2017-08-03| core |"io":../../wiki/Chat_log/20170803-io-chatlog|"mm":../../wiki/Chat_log/20170803-mm-chatlog| -|2017-07-20|"core":../../wiki/Chat_log/20170720-core-chatlog| io | mm| -|2017-07-06|"core":../../wiki/Chat_log/20170706-core-chatlog|"io":../../wiki/Chat_log/20170706-io-chatlog|"mm":../../wiki/Chat_log/20170706-mm-chatlog| -|2017-06-1x|"core":../../wiki/Chat_log/20170620-core-chatlog|"io":../../wiki/Chat_log/20170613-io-chatlog|"mm":../../wiki/Chat_log/20170621-mm-chatlog| -|2017-06-0x|"core":../../wiki/Chat_log/20170606-core-chatlog| io | mm| -|2017-05-1x|"core":../../wiki/Chat_log/20170523-core-chatlog|"io":../../wiki/Chat_log/20170516-io-chatlog|"mm":../../wiki/Chat_log/20170524-mm-chatlog| -|2017-05-0x|"core":../../wiki/Chat_log/20170509-core-chatlog| io |"mm":../../wiki/Chat_log/20170510-mm-chatlog| -|2017-04-1x|"core":../../wiki/Chat_log/20170425-core-chatlog|"io":../../wiki/Chat_log/20170418-io-chatlog|"mm":../../wiki/Chat_log/20170426-mm-chatlog| -|2017-04-1x|"core":../../wiki/Chat_log/20170411-core-chatlog| io |"mm":../../wiki/Chat_log/20170412-mm-chatlog| -|2017-03-2x|"core":../../wiki/Chat_log/20170329-core-chatlog| io |"mm":../../wiki/Chat_log/20170328-mm-chatlog| -|2017-03-0x|"core":../../wiki/Chat_log/20170314-core-chatlog|"io":../../wiki/Chat_log/20170307-io-chatlog|"mm":../../wiki/Chat_log/20170309-mm-chatlog| -|2017-02-2x|"core":../../wiki/Chat_log/20170228-core-chatlog| io |"mm":../../wiki/Chat_log/20170201-mm-chatlog| -|2017-01-1x|"core":../../wiki/Chat_log/20170117-core-chatlog|"io":../../wiki/Chat_log/20170116-io-chatlog|"mm":../../wiki/Chat_log/20170111-mm-chatlog| -|2016-12-2x|"core":../../wiki/Chat_log/20161220-core-chatlog| io |"mm":../../wiki/Chat_log/20161222-mm-chatlog| -|2016-12-1x|"core":../../wiki/Chat_log/20161206-core-chatlog|"io":../../wiki/Chat_log/20161214-io-chatlog|"mm":../../wiki/Chat_log/20161207-mm-chatlog| -|2016-11-2x|"core":../../wiki/Chat_log/20161122-core-chatlog| io |"mm":../../wiki/Chat_log/20161123-mm-chatlog| -|2016-11-1x|"core":../../wiki/Chat_log/20161108-core-chatlog|"io":../../wiki/Chat_log/20161110-io-chatlog|"mm":../../wiki/Chat_log/20161109-mm-chatlog| -|2016-10-2x|"core":../../wiki/Chat_log/20161025-core-chatlog| io |"mm":../../wiki/Chat_log/20161025-mm-chatlog| -|2016-10-0x| core | io |"mm":../../wiki/Chat_log/20161009-mm-chatlog| -|2016-09-2x|"core":../../wiki/Chat_log/20160927-core-chatlog|"io":../../wiki/Chat_log/20160921-io-chatlog|"mm":../../wiki/Chat_log/20160927-mm-chatlog| -|2016-09-1x|"core":../../wiki/Chat_log/20160913-core-chatlog| io |"mm":../../wiki/Chat_log/20160914-mm-chatlog| -|2016-09-0x|"core":../../wiki/Chat_log/20160830-core-chatlog|"io":../../wiki/Chat_log/20160901-io-chatlog|"mm":../../wiki/Chat_log/20160831-mm-chatlog| -|2016-08-1x|"core":../../wiki/Chat_log/20160809-core-chatlog|"io":../../wiki/Chat_log/20160811-io-chatlog|"mm":../../wiki/Chat_log/20160803-mm-chatlog| -|2016-07-2x| core |"io":../../wiki/Chat_log/20160726-io-chatlog| mm| -|2016-07-1x MiniPeriCon|core |"io":../../wiki/Chat_log/20160711-io-MiniPeriPeriCon-log|mm| -|2016-07-0x| core | io |"mm":../../wiki/Chat_log/20160706-mm-chatlog| -|2016-06-2x|"core":../../wiki/Chat_log/20160618-core-chatlog|"io":../../wiki/Chat_log/20160627-io-chatlog|"mm":../../wiki/Chat_log/20160622-mm-chatlog| -|2016-06-0x|"core":../../wiki/Chat_log/20160614-core-chatlog|"io":../../wiki/Chat_log/20160609-io-chatlog|"mm":../../wiki/Chat_log/20160608-mm-chatlog| -|2016-05-1x|"core":../../wiki/Chat_log/20160524-core-chatlog|"io":../../wiki/Chat_log/20160519-io-chatlog|"mm":../../wiki/Chat_log/20160525-mm-chatlog| -|2016-05-1x|"core":../../wiki/Chat_log/20160510-core-chatlog| io |"mm":../../wiki/Chat_log/20160511-mm-chatlog| -|2016-04-2x|"core":../../wiki/Chat_log/20160426-core-chatlog|"io":../../wiki/Chat_log/20160425-io-chatlog| mm| -|2016-04-1x|"core":../../wiki/Chat_log/20160412-core-chatlog|"io":../../wiki/Chat_log/20160411-io-chatlog|"mm":../../wiki/Chat_log/20160419-mm-chatlog| -|2016-03-1x|"core":../../wiki/Chat_log/20160315-core-chatlog|"io":../../wiki/Chat_log/20160314-io-chatlog|"mm":../../wiki/Chat_log/20160322-mm-chatlog| -|2016-03-0x|"core":../../wiki/Chat_log/20160301-core-chatlog| io |mm| -|2016-02-2x|"core":../../wiki/Chat_log/20160216-core-chatlog|"io":../../wiki/Chat_log/20160223-io-chatlog|mm| -|2016-01-2x|"core":../../wiki/Chat_log/20160119-core-chatlog|"io":../../wiki/Chat_log/20160127-io-chatlog|mm| -|2016-01-0x|"core":../../wiki/Chat_log/20160106-core-chatlog|"io":../../wiki/Chat_log/20160108-io-chatlog|mm| -|2015-12-2x|"core":../../wiki/Chat_log/20151215-core-chatlog|"io":../../wiki/Chat_log/20151221-io-chatlog|mm| -|2015-12-0x|"core":../../wiki/Chat_log/20151201-core-chatlog|"io":../../wiki/Chat_log/20151207-io-chatlog|mm| -|2015-11-1x|"core":../../wiki/Chat_log/20151117-core-chatlog|"io":../../wiki/Chat_log/20151119-io-chatlog|mm| -|2015-10-3x|"core":../../wiki/Chat_log/20191106-core-chatlog|"io":../../wiki/Chat_log/20151030-io-chatlog|mm| -|2015-10-1x| core |"io":../../wiki/Chat_log/20151015-io-chatlog|mm| -|2015-09-2x|"core":../../wiki/Chat_log/20150929-core-chatlog| io |mm| -|2015-09-1x|"core":../../wiki/Chat_log/20150914-core-chatlog|"io":../../wiki/Chat_log/20150915-io-chatlog|mm| -|2015-09-0x|"core":../../wiki/Chat_log/20150901-core-chatlog| io |mm| -|2015-08-2x| core |"io":../../wiki/Chat_log/20150826-io-chatlog|mm| -|2015-08-1x|"core":../../wiki/Chat_log/20150819-core-chatlog| io |mm| -|2015-08-0x|"core":../../wiki/Chat_log/20150805-core-chatlog|"io":../../wiki/Chat_log/20150804-io-chatlog|mm| -|2015-07-0x|"core":../../wiki/Chat_log/20150708-core-chatlog| io |mm|
\ No newline at end of file diff --git a/wiki/Chat_log/20160711-io-MiniPeriPeriCon-log b/wiki/Chat_log/20160711-io-chatlog index d167fe3..d167fe3 100644 --- a/wiki/Chat_log/20160711-io-MiniPeriPeriCon-log +++ b/wiki/Chat_log/20160711-io-chatlog |