diff options
Diffstat (limited to 'tools/extract-api.sh')
-rwxr-xr-x | tools/extract-api.sh | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/tools/extract-api.sh b/tools/extract-api.sh index 00c3a5d..d9141f8 100755 --- a/tools/extract-api.sh +++ b/tools/extract-api.sh @@ -1,7 +1,9 @@ #! /bin/bash # -CURRENT=$(dirname $0)/api -PREV=$(dirname $0)/api-prev +P=$(dirname $0) +# +CURRENT=$P/api +PREV=$P/api-prev INCLUDE=$(pkg-config --libs ecore |gawk '{ print substr($1,3) }' | sed s/lib/include/) # [ ! -d $PREV ] && mkdir $PREV @@ -9,6 +11,7 @@ INCLUDE=$(pkg-config --libs ecore |gawk '{ print substr($1,3) }' | sed s/lib/inc rm *-diff 2>/dev/null # for header in \ + "${INCLUDE}/eina-1/eina/eina_types.h" \ "${INCLUDE}/eet-1/Eet.h" \ "${INCLUDE}/edje-1/Edje.h" \ "${INCLUDE}/evas-1/Evas.h" \ @@ -16,6 +19,7 @@ for header in \ "${INCLUDE}/ecore-1/Ecore.h" \ "${INCLUDE}/ecore-1/Ecore_Con.h" \ "${INCLUDE}/ecore-1/Ecore_Input.h" \ + "${INCLUDE}/ecore-1/Ecore_Getopt.h" \ "${INCLUDE}/ecore-1/Ecore_Evas.h" \ "${INCLUDE}/ecore-1/Ecore_Fb.h" \ "${INCLUDE}/ecore-1/Ecore_File.h" \ @@ -29,11 +33,11 @@ for header in \ # for what in functions enums types callbacks; do F=$FILE-$what - cat $header | sed -r -n -f sed-$what > $CURRENT/$F + cat $header | sed -r -n -f $P/sed-$what > $CURRENT/$F if [ -f $PREV/$F ]; then - diff -u0 $PREV/$F $CURRENT/$F > $F-diff - N=$(cat $F-diff | wc -l) - [ $N -eq 0 ] && rm $F-diff + diff -u0 $PREV/$F $CURRENT/$F > $P/$F-diff + N=$(cat $P/$F-diff | wc -l) + [ $N -eq 0 ] && rm $P/$F-diff fi done # |