~ubuntu-branches/ubuntu/quantal/nova/quantal-proposed

« back to all changes in this revision

Viewing changes to doc/find_autodoc_modules.sh

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-08-16 14:04:11 UTC
  • mto: This revision was merged to the branch mainline in revision 84.
  • Revision ID: package-import@ubuntu.com-20120816140411-0mr4n241wmk30t9l
Tags: upstream-2012.2~f3
ImportĀ upstreamĀ versionĀ 2012.2~f3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/bash
2
 
 
3
 
NOVA_DIR='nova/' # include trailing slash
4
 
DOCS_DIR='source'
5
 
 
6
 
modules=''
7
 
for x in `find ${NOVA_DIR} -name '*.py' | grep -v nova/tests`; do
8
 
    if [ `basename ${x} .py` == "__init__" ] ; then
9
 
        continue
10
 
    fi
11
 
    relative=nova.`echo ${x} | sed -e 's$^'${NOVA_DIR}'$$' -e 's/.py$//' -e 's$/$.$g'`
12
 
    modules="${modules} ${relative}"
13
 
done
14
 
 
15
 
for mod in ${modules} ; do
16
 
  if [ ! -f "${DOCS_DIR}/${mod}.rst" ];
17
 
  then
18
 
    echo ${mod}
19
 
  fi
20
 
done