nova/doc/find_autodoc_modules.sh
Lorin Hochstein dcb8678715 Fix to a documentation generation script.
Filenames no longer have two dots in them
source/api/nova..adminclient.rst -> source/api/nova.adminclient.rst

Fixes bug 882889

Change-Id: I71132962fb934e35efbe956b25e68982a5a34ad1
2011-10-27 23:49:32 -04:00

21 lines
438 B
Bash
Executable File

#!/bin/bash
NOVA_DIR='../nova/' # include trailing slash
DOCS_DIR='source'
modules=''
for x in `find ${NOVA_DIR} -name '*.py'`; do
if [ `basename ${x} .py` == "__init__" ] ; then
continue
fi
relative=nova`echo ${x} | sed -e 's$^'${NOVA_DIR}'$$' -e 's/.py$//' -e 's$/$.$g'`
modules="${modules} ${relative}"
done
for mod in ${modules} ; do
if [ ! -f "${DOCS_DIR}/${mod}.rst" ];
then
echo ${mod}
fi
done