aboutsummaryrefslogtreecommitdiff
path: root/todostat.awk
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2013-01-23 00:29:05 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2013-01-23 00:31:17 +0200
commitf2ab0dc448c3700a851ee6905e6bf8947ccf85c9 (patch)
tree5314160ca35c024f61372fa3614732672a7affc3 /todostat.awk
parent01151a67eb86c9068612b7f893e586f04f634aee (diff)
downloadeclat-f2ab0dc448c3700a851ee6905e6bf8947ccf85c9.tar.gz
eclat-f2ab0dc448c3700a851ee6905e6bf8947ccf85c9.tar.bz2
Some housekeeping.
* grecs: Updgrade. * todostat.awk: New file.
Diffstat (limited to 'todostat.awk')
-rw-r--r--todostat.awk14
1 files changed, 14 insertions, 0 deletions
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);
+}
+

Return to:

Send suggestions and report system problems to the System administrator.