Skip to content
Snippets Groups Projects
Commit e70200748888 authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

create module doc script WIP

parent 62efab96d1b4
No related branches found
No related tags found
No related merge requests found
#!/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment