]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - bfd/doc/awkscan
69b0ceaa3ba6ca346e90975cf5de22a6826c91c0
[thirdparty/binutils-gdb.git] / bfd / doc / awkscan
1 # NOTE: BEGIN pattern gives errors if other than 1st line;
2 # END ditto if other than last.
3 BEGIN { print "@c ------------------------------START TEXT FROM " FILENAME }
4 #
5 # Keep /*doc* blocks (terminated by either */ or *-*/)
6 /^\/\*doc\*/,/^\*\/|^\*-\*\//
7 #
8 # Also keep two kinds of /*proto blocks
9 /^\/\*proto\*/,/^\*\/|^\*-\*\//
10 /^\/\*proto-internal\*/,/^\*\/|^\*-\*\//
11 #
12 END { print "@c ------------------------------END TEXT FROM " FILENAME }