summaryrefslogtreecommitdiffstats
path: root/tools/sed-variables
diff options
context:
space:
mode:
Diffstat (limited to 'tools/sed-variables')
-rw-r--r--tools/sed-variables7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/sed-variables b/tools/sed-variables
index 36c612f..e5fbd12 100644
--- a/tools/sed-variables
+++ b/tools/sed-variables
@@ -1,2 +1,9 @@
+# eat all comments
+/^\s*\/\*/ {
+ :comment
+ /\*\/\s*$/ { n; b nocomment }
+ n; b comment
+}
+:nocomment
# variable should be EAPI extern word word;;
s/^\s*(EAPI\s+extern\s+\w+\s+\*?\w+\s*;).*$/\1/p