[yocto] [RFC v4 12/13] scripts/build.sh: Add documentation generation to the default build
Timo Mueller
mail at timomueller.eu
Wed Jan 30 06:01:32 PST 2013
From: Timo Mueller <timo.mueller at 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.mueller at bmw-carit.de>
---
scripts/build.sh | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/scripts/build.sh b/scripts/build.sh
index 66973e9..41e6793 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
More information about the yocto
mailing list