diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-04-19 01:18:06 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-04-19 01:18:06 +0200 |
commit | c1f521cbc9ab6631ba82c5b709d444d91c23a913 (patch) | |
tree | f2b34269f1f089b6f91a2c00e3f83b53f8c7c2ef /tools/extract-api.sh | |
parent | 039ece9d20908a7cac0dc5a45d27b55703c6605c (diff) | |
download | ffi-efl-c1f521cbc9ab6631ba82c5b709d444d91c23a913.zip ffi-efl-c1f521cbc9ab6631ba82c5b709d444d91c23a913.tar.gz |
fix sed-callbacks, update extract-api.sh, add genruby.rb
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 # |