diff options
author | ChristopherPrice <christopher.price@ericsson.com> | 2016-01-31 18:49:30 +0100 |
---|---|---|
committer | Christopher Price <christopher.price@ericsson.com> | 2016-02-01 11:02:09 +0000 |
commit | 145ed01de3d50f82a9ed25ec1421651b8248df63 (patch) | |
tree | 53caa93fde2f0ea9920f4bf6540cab30453b04f3 /build-composite.sh | |
parent | 00189df66bad2b629bfeda267d540ab10fcd047e (diff) |
Updating scripts including composite doc input.
Added functest repo to include validation text in userguide and configguide.
Also updated the script based on Ryota's input https://gerrit.opnfv.org/gerrit/8849
Ready to merge although another patch will be needed once the toolchain is
in place to continue to integrate content.
Change-Id: I4d7adbd174cea29aada99fcdbd42d4c182456739
Signed-off-by: ChristopherPrice <christopher.price@ericsson.com>
Diffstat (limited to 'build-composite.sh')
-rwxr-xr-x | build-composite.sh | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/build-composite.sh b/build-composite.sh index 1bc6ed330..5a961cadb 100755 --- a/build-composite.sh +++ b/build-composite.sh @@ -7,6 +7,7 @@ set -o xtrace GIT_CLONE_BASE=${GIT_CLONE_BASE:-ssh://gerrit.opnfv.org:29418} GERRIT_BRANCH=${GERRIT_BRANCH:-master} +WORKSPACE=${WORKSPACE:-/tmp} get_repo_names() { # NOTE: Not all repositories are ready for the composite docs, @@ -16,13 +17,16 @@ get_repo_names() { echo "sdnvpn" echo "fuel" echo "joid" + echo "functest" } git_clone() { _repo="$1" - [[ -d "$_repo" ]] && return 0 + [[ -d "$WORKSPACE/$_repo" ]] && return 0 + pushd $WORKSPACE git clone -b $GERRIT_BRANCH --depth 1 --quiet $GIT_CLONE_BASE/$_repo + popd } git_clone releng @@ -35,18 +39,16 @@ 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 - [[ -e $repo/docs ]] || continue - cp -r $repo/docs ../../docs/projects/$repo + [[ -e $WORKSPACE/$repo/docs ]] || continue + [[ -e docs/projects/$repo ]] && rm -rf docs/projects/$repo + cp -r $WORKSPACE/$repo/docs docs/projects/$repo done -popd # NOTE: Removing index.rst in project repos to reduce number of docs. -find docs_build/projects -type f -name 'index.rst' -print | xargs -I i rm -f i +find docs/projects -type f -name 'index.rst' -print | xargs -I i rm -f i # NOTE: automated link generation is not ready... #echo @@ -65,6 +67,6 @@ find docs_build/projects -type f -name 'index.rst' -print | xargs -I i rm -f i # done #done -./releng/utils/docs-build.sh +$WORKSPACE/releng/utils/docs-build.sh echo "Done" |