From: liyingjun Date: Fri, 23 Jan 2015 06:26:20 +0000 (+0800) Subject: Fixes a small issue in find_autodoc_modules.sh X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=05a6ad4b4fc07c38fd07ea806c020bb185fc5d55;p=openstack-build%2Fcinder-build.git Fixes a small issue in find_autodoc_modules.sh When generating docs, the modules listed under api all seem to be missing the first letter after "cinder." at the beginning. Change-Id: I924e55642350d3bb813ebab7cb978915fdd8b964 Closes-bug: #1408828 --- diff --git a/doc/find_autodoc_modules.sh b/doc/find_autodoc_modules.sh index 9da7a40df..fb7e451a0 100755 --- a/doc/find_autodoc_modules.sh +++ b/doc/find_autodoc_modules.sh @@ -8,7 +8,7 @@ for x in `find ${CINDER_DIR} -name '*.py' | grep -v cinder/tests`; do if [ `basename ${x} .py` == "__init__" ] ; then continue fi - relative=cinder.`echo ${x} | sed -e 's$^'${CINDER_DIR}'$$' -e 's/.py$//' -e 's$/$.$g' -e 's$^.$$'` + relative=cinder.`echo ${x} | sed -e 's$^'${CINDER_DIR}'$$' -e 's/.py$//' -e 's$/$.$g'` modules="${modules} ${relative}" done