cinder/doc/find_autodoc_modules.sh
2012-05-03 10:48:26 -07:00

21 lines
469 B
Bash
Executable File

#!/bin/bash
CINDER_DIR='cinder/' # include trailing slash
DOCS_DIR='source'
modules=''
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'`
modules="${modules} ${relative}"
done
for mod in ${modules} ; do
if [ ! -f "${DOCS_DIR}/${mod}.rst" ];
then
echo ${mod}
fi
done