summaryrefslogtreecommitdiffstats
path: root/doc/posix1003.1/summarize
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-03-14 18:05:51 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-03-14 18:05:51 +0000
commit22c9e0ece5fa9d5ba042f0506f24f8269502c8eb (patch)
treed5e186efe61ee2fc28b81a8e88974631e5b466a1 /doc/posix1003.1/summarize
parentAdded functions from POSIX standard. (diff)
downloadrtems-22c9e0ece5fa9d5ba042f0506f24f8269502c8eb.tar.bz2
New file.
Diffstat (limited to '')
-rwxr-xr-xdoc/posix1003.1/summarize33
1 files changed, 33 insertions, 0 deletions
diff --git a/doc/posix1003.1/summarize b/doc/posix1003.1/summarize
new file mode 100755
index 0000000000..397676c97d
--- /dev/null
+++ b/doc/posix1003.1/summarize
@@ -0,0 +1,33 @@
+#! /bin/sh
+#
+# Generate the summary chapter
+#
+# $Id$
+#
+
+echo "@c"
+echo "@c DO NOT EDIT -- AUTOMATICALLY GENERATED!!!"
+echo "@c"
+echo
+echo "@chapter Compliance Summary"
+echo
+
+summarize_chapter()
+{
+ grep "^@chapter" $1 | sed -e "s/^.chapter/@section/"
+ echo
+ num_functions=`grep "()" $1 | wc -l`
+ echo "Functions: ${num_functions}"
+ echo
+}
+
+chapters="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"
+for chapter in ${chapters}
+do
+ summarize_chapter $chapter
+done
+
+
+
+