manila/doc/find_autodoc_modules.sh

21 lines
469 B
Bash
Raw Normal View History

2013-08-08 10:34:06 -04:00
#!/bin/bash
2013-09-17 10:57:47 +03:00
MANILA_DIR='manila/' # include trailing slash
2013-08-08 10:34:06 -04:00
DOCS_DIR='source'
modules=''
2013-09-17 10:57:47 +03:00
for x in `find ${MANILA_DIR} -name '*.py' | grep -v manila/tests`; do
2013-08-08 10:34:06 -04:00
if [ `basename ${x} .py` == "__init__" ] ; then
continue
fi
2013-09-17 10:57:47 +03:00
relative=manila.`echo ${x} | sed -e 's$^'${MANILA_DIR}'$$' -e 's/.py$//' -e 's$/$.$g'`
2013-08-08 10:34:06 -04:00
modules="${modules} ${relative}"
done
for mod in ${modules} ; do
if [ ! -f "${DOCS_DIR}/${mod}.rst" ];
then
echo ${mod}
fi
done