1# Avoid using git to auto-bump the addon version
2# DOCS https://github.com/sbidoul/whool/?tab=readme-ov-file#configuration
3whool-post-version-strategy-hook() {
4 # DOCS https://stackoverflow.com/a/13864829/1468388
5 if [ -z ${WHOOL_POST_VERSION_STRATEGY_OVERRIDE+x} ]; then
6 echo Setting WHOOL_POST_VERSION_STRATEGY_OVERRIDE to none
7 export WHOOL_POST_VERSION_STRATEGY_OVERRIDE=none
8 fi
9
10 # Make sure you can import the built addon
11 for manifest in $(find -L . -name __manifest__.py); do
12 export pythonImportsCheck="$pythonImportsCheck odoo.addons.$(basename $(dirname $(realpath $manifest)))"
13 done
14}
15
16preBuildHooks+=(whool-post-version-strategy-hook)