mirror-linux/tools/docs
Haoyang LIU fcbf51dd16 tools/docs/checktransupdate.py: add support for scanning directory
Origin script can only accept a file as parameter, this commit enables
it to scan a directory.

Usage example:
./scripts/checktransupdate.py Documentation/translations/zh_CN/dev-tools

And it will output something like:
"""
[1772967203.351603] Documentation/translations/zh_CN/dev-tools/kmemleak.rst
[1772967205.074201] commit 7591c127f3 ("kmemleak: iommu/iova: fix transient kmemleak false positive")
[1772967205.074337] 1 commits needs resolving in total

[1772967205.301705] Documentation/translations/zh_CN/dev-tools/index.rst
[1772967206.912395] commit a592a36e49 ("Documentation: use a source-read extension for the index link boilerplate")
[1772967206.921424] commit 6eac13c876 ("Documentation: dev-tools: add container.rst page")
[1772967206.930220] commit 8f32441d7a ("Documentation: Add documentation for Compiler-Based Context Analysis")
[1772967206.939002] commit 1e9ddbb2cd ("docs: Pull LKMM documentation into dev-tools book")
[1772967206.948636] commit d5af79c05e ("Documentation: move dev-tools debugging files to process/debugging/")
[1772967206.957562] commit d5dc958361 ("kbuild: Add Propeller configuration for kernel build")
[1772967206.966255] commit 315ad8780a ("kbuild: Add AutoFDO support for Clang build")
[1772967206.966410] 7 commits needs resolving in total
"""

Signed-off-by: Haoyang LIU <tttturtleruss@gmail.com>
[jc: tweaked coding style]
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <20260308111314.27333-1-tttturtleruss@gmail.com>
2026-03-09 10:06:22 -06:00
..
check-variable-fonts.py docs: bring some order to our Python module hierarchy 2025-11-18 09:22:40 -07:00
checktransupdate.py tools/docs/checktransupdate.py: add support for scanning directory 2026-03-09 10:06:22 -06:00
documentation-file-ref-check docs: move scripts/documentation-file-ref-check to tools/docs 2025-10-28 16:01:17 -06:00
features-refresh.sh docs: Move the "features" tools to tools/docs 2025-10-28 16:01:00 -06:00
find-unused-docs.sh docs: kdoc: move kernel-doc to tools/docs 2026-01-20 15:31:06 -07:00
gen-redirects.py docs: add tools/docs/gen-redirects.py 2025-09-09 13:37:16 -06:00
gen-renames.py docs: add tools/docs/gen-renames.py 2025-09-09 13:37:16 -06:00
get_abi.py docs: bring some order to our Python module hierarchy 2025-11-18 09:22:40 -07:00
get_feat.py tools/docs/get_feat.py: convert get_feat.pl to Python 2025-11-21 10:32:30 -07:00
kernel-doc docs: kdoc: improve description of MsgFormatter 2026-01-20 15:31:06 -07:00
list-arch.sh docs: Move the "features" tools to tools/docs 2025-10-28 16:01:00 -06:00
parse-headers.py docs: bring some order to our Python module hierarchy 2025-11-18 09:22:40 -07:00
sphinx-build-wrapper tools: sphinx-build-wrapper: improve its help message 2026-02-02 09:57:46 -07:00
sphinx-pre-install docs: bring some order to our Python module hierarchy 2025-11-18 09:22:40 -07:00
test_doc_build.py docs: move test_doc_build.py to tools/docs 2025-10-28 16:01:24 -06:00