summaryrefslogtreecommitdiffstats
path: root/build-composite.sh
diff options
context:
space:
mode:
authorRyota MIBU <r-mibu@cq.jp.nec.com>2016-02-12 18:36:22 +0900
committerRyota MIBU <r-mibu@cq.jp.nec.com>2016-02-12 19:06:26 +0900
commite0a0a51fd5a903f184be9bf78051b8bec4ab6a2a (patch)
tree42ae278514af795f219cf28853668381c5d81110 /build-composite.sh
parent6bd42c59ae30c30b460f6e69171e71a4e4f9c541 (diff)
script: fix auto feature config builder
Change-Id: Ifa7249ceed9f803e3bb7fbe79caa05705e7fd42f Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
Diffstat (limited to 'build-composite.sh')
-rwxr-xr-xbuild-composite.sh25
1 files changed, 14 insertions, 11 deletions
diff --git a/build-composite.sh b/build-composite.sh
index 574c4ecd9..a4012a129 100755
--- a/build-composite.sh
+++ b/build-composite.sh
@@ -22,17 +22,17 @@ get_repo_names() {
# so we have the repo name list here to add project docs
# one by one. This will be replaced by the list in project.cfg .
# grep -v '^#' releng/jjb/opnfvdocs/project.cfg | sort
- echo "sdnvpn"
+ echo "apex"
+ echo "copper"
+ echo "doctor"
+ echo "fastpathmetrics"
echo "fuel"
+ echo "functest"
echo "ipv6"
echo "joid"
- echo "functest"
- echo "apex"
echo "promise"
- echo "copper"
- echo "doctor"
+ echo "sdnvpn"
echo "vswitchperf"
- echo "fastpathmetrics"
}
git_clone() {
@@ -79,17 +79,20 @@ echo
for guide in configguide/feature-config.rst
do
mainfile="$WORKSPACE/docs/$guide"
+ basefilename=$(basename ${guide/-/})
for repo in $repos
do
- projectfile="projects/$repo/${guide//-/}"
- projectlink="${mainfile%/*}/featureconfig-$repo.rst"
- [[ -e "$WORKSPACE/docs/$projectfile" ]] || continue
+ targetfile="$WORKSPACE/docs/projects/$repo/${guide/-/}"
+ targetlink="../projects/$repo/${guide/-/}"
+ projectfilename="${basefilename/.rst/-$repo.rst}"
+ projectfile="$(dirname $mainfile)/$projectfilename"
+ [[ -e "$targetfile" ]] || continue
echo "Adding $repo to $guide ..."
echo "" >> $mainfile
echo ".. toctree::" >> $mainfile
echo "" >> $mainfile
- echo " $projectlink" >> $mainfile
- echo ".. include:: ../$projectfile" >> $projectlink
+ echo " $projectfilename" >> $mainfile
+ echo ".. include:: $targetlink" > $projectfile
done
echo
echo "Generated $guide:"