From: Timo Mueller <timo.muel...@bmw-carit.de>

When building the plugin the matching documentation is automatically
generated and added to the user.doc plugin prior to the plugin build.

Signed-off-by: Timo Mueller <timo.muel...@bmw-carit.de>
---
 scripts/build.sh | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/scripts/build.sh b/scripts/build.sh
index 73bf889..a1b420c 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -130,6 +130,13 @@ git checkout origin/${BRANCH} || fail $? "git checkout 
origin/${BRANCH}"
 git checkout ${TAG} || fail $? "git checkout ${TAG}"
 cd ${TOP}
 
+# generate and add documentation
+if [ "${TAG}" = "HEAD" ]; then
+       ${GIT_DIR}/scripts/generate-doc.sh ${BRANCH} ${GIT_DIR}
+else
+       ${GIT_DIR}/scripts/generate-doc.sh -t ${TAG} ${GIT_DIR}
+fi
+
 #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"
 java -jar ${LAUNCHER} -application org.eclipse.ant.core.antRunner -buildfile 
${BUILDFILE} -DbaseLocation=${ECLIPSE_BASE} 
-Dbuilder=${GIT_DIR}/features/org.yocto.doc.headless.build 
-DbuildDirectory=${BUILD_DIR} -DotherSrcDirectory=${GIT_DIR} 
-DbuildId=${RELEASE} || fail $? "normal build"
-- 
1.7.11.7

_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to