Skip to contentSkip to conversation

scripts: additional failure checks

PATCH New Tim Orling 1 participant 1 message Jun 30, 2016

lore
Share & tools
lore

Tim Orling

author
#0 lore raw

PATCH 1/1 scripts: additional failure checks

[YOCTO #7533]

---
 scripts/build.sh        | 2 +-
 scripts/generate-doc.sh | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
scripts/build.sh +1 -1
index 97b6498..e289417 100755
@@ -130,7 +130,7 @@ cd ${TOP}
 
 # generate and add documentation
 echo -e "\nGenerate Yocto documentation\n"
-${GIT_DIR}/scripts/generate-doc.sh ${DOC_REF} ${GIT_DIR}
+${GIT_DIR}/scripts/generate-doc.sh ${DOC_REF} ${GIT_DIR} || fail $? "generate documentation"
 
 #build 
 java -jar ${LAUNCHER} -application org.eclipse.ant.core.antRunner -buildfile ${BUILDFILE} -DbaseLocation=${ECLIPSE_BASE} -Dbuilder=${GIT_DIR}/features/org.yocto.bc.headless.build -DbuildDirectory=${BUILD_DIR} -DotherSrcDirectory=${GIT_DIR} -DbuildId=${RELEASE} || fail $? "normal build"
scripts/generate-doc.sh +1 -1
index b817d4c..9753d7e 100755
@@ -82,7 +82,7 @@ fi
 # build and copy
 cd documentation
 for DOC in ${DOCS}; do
-	make DOC=${DOC} eclipse
+	make DOC=${DOC} eclipse || fail $? "make DOC=${DOC} eclipse"
 	cp -rf ${DOC}/eclipse/html/* ${DOC_HTML_DIR}
 	cp -f ${DOC}/eclipse/${DOC}-toc.xml ${DOC_HTML_DIR}
 done
Signature · 1 line
2.7.4