diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-01-23 00:29:05 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-01-23 00:31:17 +0200 |
commit | f2ab0dc448c3700a851ee6905e6bf8947ccf85c9 (patch) | |
tree | 5314160ca35c024f61372fa3614732672a7affc3 | |
parent | 01151a67eb86c9068612b7f893e586f04f634aee (diff) | |
download | eclat-f2ab0dc448c3700a851ee6905e6bf8947ccf85c9.tar.gz eclat-f2ab0dc448c3700a851ee6905e6bf8947ccf85c9.tar.bz2 |
Some housekeeping.
* grecs: Updgrade.
* todostat.awk: New file.
m--------- | grecs | 0 | ||||
-rw-r--r-- | todostat.awk | 14 |
2 files changed, 14 insertions, 0 deletions
diff --git a/grecs b/grecs -Subproject 9cf45f0c658b583ee1ebdcb3d6345ad290993d6 +Subproject 5596f7cdcdc1983021185c5e0900d5fcba7f328 diff --git a/todostat.awk b/todostat.awk new file mode 100644 index 0000000..be29d8f --- /dev/null +++ b/todostat.awk @@ -0,0 +1,14 @@ +/^\+-/ { if (state < 3) state++; else state = -1; next } +/^\|/ { if (state == 1) state++; else state = -1; next } +state != 3 { next } +{ total++ } +$3=="[X]" { impl++; if ($4 != "[X]") print $1, "not documented"; } +$4=="[X]" { doc++; } +END { + if (!total) + exit(0); + printf("Total : %4d\n", total); + printf("Implemented: %4d / %3d%%\n", impl, impl * 100 / total); + printf("Documented : %4d / %3d%%\n", doc, doc * 100 / total); +} + |