Make openstack-doc-tools can be used in the individual client repos
Change-Id: Ia9ca6bff1d779370a0e1394a7211452f04a7dd1c
This commit is contained in:
parent
c3bf1aa507
commit
5f4394cc5f
|
@ -69,11 +69,11 @@ mkdir output
|
||||||
OS_VOLUME_API_VERSION=3.latest \
|
OS_VOLUME_API_VERSION=3.latest \
|
||||||
openstack-auto-commands --output-dir output $project
|
openstack-auto-commands --output-dir output $project
|
||||||
|
|
||||||
if [[ ! -e openstack-manuals ]]; then
|
if [[ ! -e "python-${project}client" ]]; then
|
||||||
git clone git://git.openstack.org/openstack/openstack-manuals
|
git clone git://git.openstack.org/openstack/python-${project}client
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd openstack-manuals
|
cd python-${project}client
|
||||||
|
|
||||||
( git remote -v | grep -q gerrit ) || git review -s
|
( git remote -v | grep -q gerrit ) || git review -s
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ git pull
|
||||||
branch=cli-reference
|
branch=cli-reference
|
||||||
git branch --list $branch && git branch -D $branch
|
git branch --list $branch && git branch -D $branch
|
||||||
git checkout -b $branch
|
git checkout -b $branch
|
||||||
mv ../output/${project}.rst "doc/cli-reference/source"
|
mv ../output/${project}.rst "doc/source/cli/details.rst"
|
||||||
rm -rf ../output
|
rm -rf ../output
|
||||||
version=$($project --version 2>&1)
|
version=$($project --version 2>&1)
|
||||||
version=${version##*\)}
|
version=${version##*\)}
|
||||||
|
|
Loading…
Reference in New Issue