From 06bc980aebf49a717bf9e46fc816ca14ae4740cc Mon Sep 17 00:00:00 2001 From: Lionel Orry Date: Fri, 29 Apr 2011 15:53:21 +0800 Subject: 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. --- tools/extract-api.sh | 5 +++++ 1 file changed, 5 insertions(+) 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) # -- cgit v1.1-2-g2b99