summaryrefslogtreecommitdiffstats
path: root/tools/sed-functions
diff options
context:
space:
mode:
Diffstat (limited to 'tools/sed-functions')
-rw-r--r--tools/sed-functions8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/sed-functions b/tools/sed-functions
new file mode 100644
index 0000000..bcd57d0
--- /dev/null
+++ b/tools/sed-functions
@@ -0,0 +1,8 @@
+
+# if return type on single line, append next line
+/EAPI.*[^;] *$/ { N; s/\n/ / }
+# while unfinished argument list, append next line
+:loop
+/,$/ { N; s/\n/ /; t loop }
+s/ \{2,\}/ /g
+s/^ *EAPI/EAPI/p