fi
me=$(basename $0)
-path=${0%%/$me}
-current=$(pwd) # current path
+current=$(pwd)/${0%%/$me} # current path
-#gccxmloutput="$current/$gccxmloutput"
+gccxmloutput="$current/$gccxmloutput"
cd @top_srcdir@/include # go to wx include folder
# can be passed to ifacecheck to aid the comparison
echo "Running gccxml's preprocessor on the $allheaders file... results in $preprocoutput"
gccxml -E -dM $flags >$preprocoutput
+if [[ $? != 0 ]]; then
+ echo "Errors running gccxml preprocessor... aborting."
+ exit
+fi
# cleanup
rm $allheaders