diff --git a/create_module_documentation b/create_module_documentation new file mode 100755 index 0000000000000000000000000000000000000000..e70200748888449965909888f92dbd0e70a2afae_Y3JlYXRlX21vZHVsZV9kb2N1bWVudGF0aW9u --- /dev/null +++ b/create_module_documentation @@ -0,0 +1,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