diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-04-16 09:57:18 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-04-16 09:57:18 +0200 |
commit | b8fb8382d1d472199970241900a30384a71b8060 (patch) | |
tree | 1cb6b415b98020922bf23f96c1f2967c6cc1eca0 /tools/sed-functions | |
parent | 4b845a0950d2e17fa18c36ca3c399b7ca3a70fac (diff) | |
download | ffi-efl-b8fb8382d1d472199970241900a30384a71b8060.zip ffi-efl-b8fb8382d1d472199970241900a30384a71b8060.tar.gz |
extract-api.sh uses external sed scripts
Diffstat (limited to 'tools/sed-functions')
-rw-r--r-- | tools/sed-functions | 8 |
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 |