From 53d804ff91d9f9efd08905023afd8f592ba7d522 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 16 Mar 1998 17:06:12 +0000 Subject: summarize now generates a nicely formatted function status summary. --- doc/posix1003.1/Makefile | 3 ++- doc/posix1003.1/summarize | 13 +++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/posix1003.1/Makefile b/doc/posix1003.1/Makefile index a5857ad760..0f978186f1 100644 --- a/doc/posix1003.1/Makefile +++ b/doc/posix1003.1/Makefile @@ -143,7 +143,8 @@ ch18.texi: ch18.t -n "Compliance Summary" ${*}.t ch19.t: ch01.t ch02.t ch03.t ch04.t ch05.t ch06.t ch07.t ch08.t ch09.t \ - ch10.t ch11.t ch12.t ch13.t ch14.t ch15.t ch16.t ch17.t ch18.t + ch10.t ch11.t ch12.t ch13.t ch14.t ch15.t ch16.t ch17.t ch18.t \ + summarize ./summarize >ch19.t ch19.texi: ch19.t diff --git a/doc/posix1003.1/summarize b/doc/posix1003.1/summarize index 989d4bfa2f..545d3e4700 100755 --- a/doc/posix1003.1/summarize +++ b/doc/posix1003.1/summarize @@ -18,8 +18,17 @@ summarize_chapter() sed -e "s/^.chapter/@section/" \ -e "s/$/ Chapter/" echo - num_functions=`grep "()" $1 | wc -l` - echo "Functions: ${num_functions}" + functions_total=`grep "()" $1 | wc -l` + functions_implemented=`grep "()" $1 | grep Implemented | wc -l` + functions_unimplemented=`grep "()" $1 | grep Unimplemented | wc -l` + functions_unmplementable=`grep "()" $1 | grep Unimplementable | wc -l` + + echo "@example" + echo "Total Number of Functions: ${functions_total} @*" + echo "Functions Implemented : ${functions_implemented} @*" + echo "Functions Unimplemented : ${functions_unimplemented} @*" + echo "Functions Unimplementable: ${functions_unmplementable} @*" + echo "@end example" echo } -- cgit v1.2.3