jeyzu pushed a commit to branch master.

http://git.enlightenment.org/bindings/ruby/ffi-efl.git/commit/?id=ab327d12ebf90a352f5db0a4e434464b0e576863

commit ab327d12ebf90a352f5db0a4e434464b0e576863
Author: Jérémy Zurcher <[email protected]>
Date:   Tue Dec 3 00:04:11 2013 +0100

    parse elm headers *_common.h *_legacy.h if exists and concat
---
 tools/extract-api.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tools/extract-api.sh b/tools/extract-api.sh
index 1827b49..c6033c9 100755
--- a/tools/extract-api.sh
+++ b/tools/extract-api.sh
@@ -167,10 +167,14 @@ for header in \
     #
     DIR=$(dirname $header)
     FILE=$(basename $header)
+    BASE=${header%.h}
     #
     for what in functions enums types callbacks variables; do
         F=$FILE-$what
         sed -r -n -f "$P/sed-$what" $header > $NEXT/$F
+        for more_header in "${BASE}_common.h" "${BASE}_legacy.h"; do
+            [ -e $more_header ] && sed -r -n -f "$P/sed-$what" $more_header >> 
$NEXT/$F
+        done
         if [ -f $PREV/$F ]; then
             diff -u0 $PREV/$F $NEXT/$F > $P/$F-diff
             N=$(cat $P/$F-diff | wc -l)

-- 


Reply via email to