diff options
author | Ryota MIBU <r-mibu@cq.jp.nec.com> | 2016-01-07 23:16:14 +0900 |
---|---|---|
committer | Ryota MIBU <r-mibu@cq.jp.nec.com> | 2016-01-07 23:17:19 +0900 |
commit | 3f87d011cc8a5e26282a59fb5be940c142168487 (patch) | |
tree | 81dc0f331b70ec8b996ef170682e8cefbe768d80 | |
parent | 6a37877ded28ced90927d3cdd6b937f506e6740b (diff) |
add build-composite.sh
Change-Id: I82440989202c8b0f5ff36b54965f3269c3ff2d66
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
-rwxr-xr-x | build-composite.sh | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/build-composite.sh b/build-composite.sh new file mode 100755 index 000000000..c524d8b96 --- /dev/null +++ b/build-composite.sh @@ -0,0 +1,57 @@ +#!/bin/bash + +set -o errexit +set -o nounset +set -o pipefail + +GIT_CLONE_BASE=${GIT_CLONE_BASE:-ssh://gerrit.opnfv.org:29418} +GERRIT_BRANCH=${GERRIT_BRANCH:-master} + + +git_clone() { + _repo="$1" + + [[ -d "$_repo" ]] && return 0 + git clone --depth 1 --quiet $GIT_CLONE_BASE/$_repo $GERRIT_BRANCH +} + + +git_clone releng + +repos=$(grep -v '^#' releng/jjb/opnfvdocs/project.cfg | sort) + +[[ -e docs/projects ]] && rm -rf docs/projects +mkdir -p docs/projects + +echo +echo "Cloning repos of participating OPNFV Projects and copying docs" +echo +mkdir -p docs_build/projects +pushd docs_build/projects +for repo in $repos; do + echo " $repo ($GERRIT_BRANCH)" + git_clone $repo + cp -r $repo/docs ../../docs/projects/$repo +done +popd + +# NOTE: automated link generation is not ready... +#echo +#echo "Creating document links" +#echo +#for guide in configguide userguide +#do +# link_list=$WORKSPACE/docs/$guide/projects-$guide.rst +# for repo in $repos +# do +# file=projects/$repo/$guide/$guide.rst +# [[ -e $WORKSPACE/docs/$file ]] || continue +# echo "" >> $link_list +# echo "$repo:" >> $link_list +# echo ".. include:: ../$file" >> $link_list +# done +#done + +./releng/utils/docs-build.sh + +echo "Done" |