aboutsummaryrefslogtreecommitdiff
path: root/bfd/startcom-p
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/startcom-p')
-rwxr-xr-xbfd/startcom-p12
1 files changed, 12 insertions, 0 deletions
diff --git a/bfd/startcom-p b/bfd/startcom-p
new file mode 100755
index 0000000..0748fad
--- /dev/null
+++ b/bfd/startcom-p
@@ -0,0 +1,12 @@
+# sed script for preprocessing BFD header files
+# <start comment> activity:
+/^\/\*$/{
+N
+# Delete empty comment blocks
+/^\/\*\n\*\/ *$/d
+# Transpose <start comment><blank line>
+s/^\/\*\n *$/\
+\/*/
+# merge <start comment> on line by itself with following line
+s/^\/\*\n\(.*\)/\/* \1/
+}