Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/zsh
# vim: set shiftwidth=4 softtabstop=4:
#
# This script generates documentation in all submodules.
# It needs:
# - openerp to be installed
#
# Version 2.7
here=$(dirname $0)
project_home=$(cd $here && cd .. && echo $PWD)
python=python
format=html
out_dir=${project_home}/_build/$format
pushd $project_home
# for dir in $module_dirs; do
for dir in $($python -B -c "import ConfigParser ; c = ConfigParser.ConfigParser() ; c.read('${project_home}/setup.cfg') ; print(' '.join(c.get('odoo_scripts', 'addon_dirs', '').split()))") ; do
pushd $dir
for module in * ; do
if [[ -d "$module" ]] ; then
echo $dir/$module
pushd $module
for doc_dir in doc* ; do
echo ${YELLOW}INFO ${RESET} - Found doc dir $dir/$module/$doc_dir
if [[ -e makefile ]]; then
echo ${YELLOW}INFO ${RESET} - Makefile found
fi
done
fi
done
popd
done
popd