From ab327d12ebf90a352f5db0a4e434464b0e576863 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 3 Dec 2013 00:04:11 +0100 Subject: 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) -- cgit v1.1-2-g2b99