#!/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