~rlane/nova/ldapimprovements

« back to all changes in this revision

Viewing changes to doc/find_autodoc_modules.sh

  • Committer: Ryan Lane
  • Date: 2010-11-24 15:46:32 UTC
  • mfrom: (382.48.1 trunk)
  • Revision ID: laner@controller-20101124154632-zh7kwjuyyd02a2lh
MergeĀ fromĀ trunk

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'`; 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