Modified buid_examples.sh to handle new locations of examples

This commit is contained in:
Krzysztof Budzynski 2017-01-16 23:08:35 +01:00
parent 382999b378
commit f7a9a2f50b

View File

@ -15,7 +15,10 @@ FAILED_EXAMPLES=""
RESULT_WARNINGS=22 # magic number result code for "warnings found" RESULT_WARNINGS=22 # magic number result code for "warnings found"
for example in ${IDF_PATH}/examples/*; do # traverse categories
for category in ${IDF_PATH}/examples/*; do
# traverse examples within each category
for example in ${category}/*; do
[ -f ${example}/Makefile ] || continue [ -f ${example}/Makefile ] || continue
echo "Building ${example} as ${EXAMPLE_NUM}..." echo "Building ${example} as ${EXAMPLE_NUM}..."
mkdir -p example_builds/${EXAMPLE_NUM} mkdir -p example_builds/${EXAMPLE_NUM}
@ -43,6 +46,7 @@ for example in ${IDF_PATH}/examples/*; do
fi fi
rm -f $BUILDLOG rm -f $BUILDLOG
done
done done
if [ $RESULT -eq $RESULT_WARNINGS ]; then if [ $RESULT -eq $RESULT_WARNINGS ]; then