diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2013-12-03 00:04:11 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2013-12-03 00:05:30 +0100 |
commit | ab327d12ebf90a352f5db0a4e434464b0e576863 (patch) | |
tree | 7b73ab646f28f60b05316ecb72fb7da692af6ca4 /tools/extract-api.sh | |
parent | c17a4211cb2ef132b049ea841fd50c99681d2080 (diff) | |
download | ffi-efl-ab327d12ebf90a352f5db0a4e434464b0e576863.zip ffi-efl-ab327d12ebf90a352f5db0a4e434464b0e576863.tar.gz |
parse elm headers *_common.h *_legacy.h if exists and concat
Diffstat (limited to 'tools/extract-api.sh')
-rwxr-xr-x | tools/extract-api.sh | 4 |
1 files changed, 4 insertions, 0 deletions
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) |