Merge "Allow overriding of openstack-manuals dir"
This commit is contained in:
commit
04d9d3b7d1
@ -28,6 +28,7 @@ MANUALS_PROJECTS="openstack-manuals"
|
|||||||
BRANCH=master
|
BRANCH=master
|
||||||
FAST=0
|
FAST=0
|
||||||
QUIET=0
|
QUIET=0
|
||||||
|
CLONE_MANUALS=1
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "Wrapper for autohelp.py"
|
echo "Wrapper for autohelp.py"
|
||||||
@ -49,6 +50,8 @@ usage() {
|
|||||||
echo " -e PATH: Create the virtualenv in PATH"
|
echo " -e PATH: Create the virtualenv in PATH"
|
||||||
echo " -v LEVEL: Verbose message (1 or 2)"
|
echo " -v LEVEL: Verbose message (1 or 2)"
|
||||||
echo " (check various python modules imported or not)"
|
echo " (check various python modules imported or not)"
|
||||||
|
echo " -o OUTDIR: Path to output openstack-manuals directory "
|
||||||
|
echo " (defaults to ./sources/openstack-manuals)"
|
||||||
}
|
}
|
||||||
|
|
||||||
setup_venv() {
|
setup_venv() {
|
||||||
@ -101,7 +104,7 @@ setup_tools() {
|
|||||||
pip install -rrequirements.txt
|
pip install -rrequirements.txt
|
||||||
}
|
}
|
||||||
|
|
||||||
while getopts :b:g:e:v:cfq opt; do
|
while getopts :b:g:e:o:v:cfq opt; do
|
||||||
case $opt in
|
case $opt in
|
||||||
b)
|
b)
|
||||||
BRANCH=$OPTARG
|
BRANCH=$OPTARG
|
||||||
@ -115,6 +118,11 @@ while getopts :b:g:e:v:cfq opt; do
|
|||||||
e)
|
e)
|
||||||
VENVDIR=$OPTARG
|
VENVDIR=$OPTARG
|
||||||
;;
|
;;
|
||||||
|
o)
|
||||||
|
MANUALSREPO=$OPTARG
|
||||||
|
MAPPINGS_DIR=$OPTARG/tools/autogenerate-config-flagmappings
|
||||||
|
CLONE_MANUALS=0
|
||||||
|
;;
|
||||||
f)
|
f)
|
||||||
FAST=1
|
FAST=1
|
||||||
;;
|
;;
|
||||||
@ -166,7 +174,9 @@ fi
|
|||||||
RELEASE=$(echo $BRANCH | sed 's,^stable.,,')
|
RELEASE=$(echo $BRANCH | sed 's,^stable.,,')
|
||||||
|
|
||||||
if [ "$FAST" -eq 0 ] ; then
|
if [ "$FAST" -eq 0 ] ; then
|
||||||
|
if [ "$CLONE_MANUALS" -eq 1 ] ; then
|
||||||
get_project openstack-manuals
|
get_project openstack-manuals
|
||||||
|
fi
|
||||||
|
|
||||||
for project in $PROJECTS; do
|
for project in $PROJECTS; do
|
||||||
setup_venv $project
|
setup_venv $project
|
||||||
|
Loading…
Reference in New Issue
Block a user