diff options
author | Steve Chamberlain <steve@cygnus> | 1991-08-17 00:16:57 +0000 |
---|---|---|
committer | Steve Chamberlain <steve@cygnus> | 1991-08-17 00:16:57 +0000 |
commit | 90f3f3e2b046a492b08d8802fd6e2055508b795e (patch) | |
tree | 2cee2df785574d5200035c64b9a81a09036ec9e4 /bfd/awkscan | |
parent | 3a26c0cd00b712a85b63ad962ff72d125154b1bc (diff) | |
download | gdb-90f3f3e2b046a492b08d8802fd6e2055508b795e.zip gdb-90f3f3e2b046a492b08d8802fd6e2055508b795e.tar.gz gdb-90f3f3e2b046a492b08d8802fd6e2055508b795e.tar.bz2 |
Initial revision
Diffstat (limited to 'bfd/awkscan')
-rwxr-xr-x | bfd/awkscan | 12 |
1 files changed, 12 insertions, 0 deletions
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 } |