summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorLionel Orry <lionel.orry@gmail.com>2011-04-29 09:53:21 +0200
committerjeremyz <jeremy@asynk.ch>2011-04-29 15:46:12 +0200
commit06bc980aebf49a717bf9e46fc816ca14ae4740cc (patch)
tree5c57d87445892dfaa7c68ae0a18c7a0e73dc4784 /tools
parent337135de8eac4c155051849805c5a0abde704c8f (diff)
downloadffi-efl-06bc980aebf49a717bf9e46fc816ca14ae4740cc.zip
ffi-efl-06bc980aebf49a717bf9e46fc816ca14ae4740cc.tar.gz
Nicely continue when a header is not found.
This is needed because depending on the efl configuration, some header files may not be installed. We show a message to indicate no bindings will be generated though.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/extract-api.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/extract-api.sh b/tools/extract-api.sh
index 29844aa..254a693 100755
--- a/tools/extract-api.sh
+++ b/tools/extract-api.sh
@@ -37,6 +37,11 @@ for header in \
"${INCLUDE}/elementary-0/Elementary.h" \
; do
#
+ if [ ! -e "$header" ]; then
+ echo "$header not found, we won't generate bindings for this header."
+ continue
+ fi
+ #
DIR=$(dirname $header)
FILE=$(basename $header)
#