aboutsummaryrefslogtreecommitdiff
path: root/bfd/awkscan-p
diff options
context:
space:
mode:
authorSteve Chamberlain <steve@cygnus>1991-08-17 00:16:57 +0000
committerSteve Chamberlain <steve@cygnus>1991-08-17 00:16:57 +0000
commit90f3f3e2b046a492b08d8802fd6e2055508b795e (patch)
tree2cee2df785574d5200035c64b9a81a09036ec9e4 /bfd/awkscan-p
parent3a26c0cd00b712a85b63ad962ff72d125154b1bc (diff)
downloadgdb-90f3f3e2b046a492b08d8802fd6e2055508b795e.zip
gdb-90f3f3e2b046a492b08d8802fd6e2055508b795e.tar.gz
gdb-90f3f3e2b046a492b08d8802fd6e2055508b795e.tar.bz2
Initial revision
Diffstat (limited to 'bfd/awkscan-p')
-rwxr-xr-xbfd/awkscan-p8
1 files changed, 8 insertions, 0 deletions
diff --git a/bfd/awkscan-p b/bfd/awkscan-p
new file mode 100755
index 0000000..f7240dd
--- /dev/null
+++ b/bfd/awkscan-p
@@ -0,0 +1,8 @@
+# NOTE: BEGIN pattern gives errors if other than 1st line;
+# END ditto if other than last.
+BEGIN { print "/* ------------------------------START FROM " FILENAME "*/" }
+#
+# keep /*proto blocks
+/^\/\*proto\*/,/^\*\/|^\*-\*\//
+#
+END { print "/* --------------------------------END FROM " FILENAME "*/\n" }