From 90f3f3e2b046a492b08d8802fd6e2055508b795e Mon Sep 17 00:00:00 2001 From: Steve Chamberlain Date: Sat, 17 Aug 1991 00:16:57 +0000 Subject: Initial revision --- bfd/awkscan | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 bfd/awkscan (limited to 'bfd/awkscan') diff --git a/bfd/awkscan b/bfd/awkscan new file mode 100755 index 0000000..69b0cea --- /dev/null +++ b/bfd/awkscan @@ -0,0 +1,12 @@ +# NOTE: BEGIN pattern gives errors if other than 1st line; +# END ditto if other than last. +BEGIN { print "@c ------------------------------START TEXT FROM " FILENAME } +# +# Keep /*doc* blocks (terminated by either */ or *-*/) +/^\/\*doc\*/,/^\*\/|^\*-\*\// +# +# Also keep two kinds of /*proto blocks +/^\/\*proto\*/,/^\*\/|^\*-\*\// +/^\/\*proto-internal\*/,/^\*\/|^\*-\*\// +# +END { print "@c ------------------------------END TEXT FROM " FILENAME } -- cgit v1.1