diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-03-07 15:08:59 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-03-07 15:08:59 +0100 |
commit | bb0216db8e023ad51b7a1942a5a9b21ba89f28c9 (patch) | |
tree | 084e057d5360a2c26198c59c9ed5db7228fb2773 /tools/sed-variables | |
parent | 6501d13c9b8e7eb03cff342440f482dd8ef0fb5c (diff) | |
download | ffi-efl-bb0216db8e023ad51b7a1942a5a9b21ba89f28c9.zip ffi-efl-bb0216db8e023ad51b7a1942a5a9b21ba89f28c9.tar.gz |
tools/sed-*: first eat all comments
Diffstat (limited to 'tools/sed-variables')
-rw-r--r-- | tools/sed-variables | 7 |
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 |