Initial revision

This commit is contained in:
Steve Chamberlain
1991-08-17 00:16:57 +00:00
parent 3a26c0cd00
commit 90f3f3e2b0
13 changed files with 275 additions and 0 deletions

12
bfd/awkscan Executable file
View File

@ -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 }