nova/doc/find_autodoc_modules.sh
Monty Taylor 702a4743f0 Get rid of all of the autodoc import errors.
This hasn't worked right in a bazillion years.

Change-Id: I4db20ce97f920cdb7254d51e18a0630b0283b39d
2012-03-05 20:22:51 -08:00

21 lines
457 B
Bash
Executable File

#!/bin/bash
NOVA_DIR='nova/' # include trailing slash
DOCS_DIR='source'
modules=''
for x in `find ${NOVA_DIR} -name '*.py' | grep -v nova/tests`; 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