aboutsummaryrefslogtreecommitdiff
path: root/bfd/doc/awkscan
blob: 69b0ceaa3ba6ca346e90975cf5de22a6826c91c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
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 }