summarize now generates a nicely formatted function status summary.

This commit is contained in:
Joel Sherrill
1998-03-16 17:06:12 +00:00
parent 4936b6545f
commit 53d804ff91
2 changed files with 13 additions and 3 deletions
+2 -1
View File
@@ -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
+11 -2
View File
@@ -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
}