From 5f4394cc5f5543457184c7ae404c150d7176ced7 Mon Sep 17 00:00:00 2001 From: chenxing Date: Wed, 26 Jul 2017 06:23:21 +0000 Subject: [PATCH] Make openstack-doc-tools can be used in the individual client repos Change-Id: Ia9ca6bff1d779370a0e1394a7211452f04a7dd1c --- bin/doc-tools-update-cli-reference | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/doc-tools-update-cli-reference b/bin/doc-tools-update-cli-reference index e9433ab2..7c578117 100755 --- a/bin/doc-tools-update-cli-reference +++ b/bin/doc-tools-update-cli-reference @@ -69,11 +69,11 @@ mkdir output OS_VOLUME_API_VERSION=3.latest \ openstack-auto-commands --output-dir output $project -if [[ ! -e openstack-manuals ]]; then - git clone git://git.openstack.org/openstack/openstack-manuals +if [[ ! -e "python-${project}client" ]]; then + git clone git://git.openstack.org/openstack/python-${project}client fi -cd openstack-manuals +cd python-${project}client ( git remote -v | grep -q gerrit ) || git review -s @@ -82,7 +82,7 @@ git pull branch=cli-reference git branch --list $branch && git branch -D $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 version=$($project --version 2>&1) version=${version##*\)}