zephyr/doc/scripts
Marc Herbert c1f6c7d19e doc: extract_content.py: support multiple build directories
Exclude (other) build directories with a CMakeCache.txt file as they
typically contain previous output from ourselves.

One key feature of 'out of source" builds offered by CMake is allowing
multiple build directories. For instance to build different
configurations without starting from scratch. Unfortunately, the
extract_content.py code had a severe issue with multiple build
directories with an interesting effect on build times, see simple
reproduction below:

cd doc/
cmake -B _build/
cmake -B _b2

 # Repeat these a couple times
make -C _build content
make -C _b2 content

find -name rst
./_b2/rst
./_b2/rst/doc/_build/rst
./_b2/rst/doc/_build/rst/doc/_b2/rst
./_b2/rst/doc/_build/rst/doc/_b2/rst/doc/_build/rst

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2020-10-21 06:27:22 -05:00
..
extract_content.py doc: extract_content.py: support multiple build directories 2020-10-21 06:27:22 -05:00
fix_tex.py doc: fix_tex: Remove redundant 'return' 2019-03-26 07:47:20 -05:00
genrest.py doc: add --no-index-modules option to genrest.py 2020-06-19 18:14:18 +02:00
restore_modification_times.py doc: fix incremental build by fixing doxygen output mtime 2019-02-13 06:58:52 -06:00