Add this script to the growing collection of documentation tools.
Unified · Split
| @@ -8,7 +8,7 @@ subdir- := devicetree/bindings · 7 unmodified lines | ||
| 8 | 8 | ifneq ($(MAKECMDGOALS),cleandocs) |
| 9 | 9 | # Check for broken documentation file references |
| 10 | 10 | ifeq ($(CONFIG_WARN_MISSING_DOCUMENTS),y) |
| 11 | −$(shell $(srctree)/scripts/documentation-file-ref-check --warn) | |
| 11 | +$(shell $(srctree)/tools/docs/documentation-file-ref-check --warn) | |
| 12 | 12 | endif |
| 13 | 13 | |
| 14 | 14 | # Check for broken ABI files |
| @@ -78,7 +78,7 @@ htmldocs-redirects: $(srctree)/Documentation/.renames.txt · 63 unmodified lines | ||
| 78 | 78 | @tools/docs/gen-redirects.py --output $(BUILDDIR) < $< |
| 79 | 79 | |
| 80 | 80 | refcheckdocs: |
| 81 | − $(Q)cd $(srctree);scripts/documentation-file-ref-check | |
| 81 | + $(Q)cd $(srctree); tools/docs/documentation-file-ref-check | |
| 82 | 82 | |
| 83 | 83 | cleandocs: |
| 84 | 84 | $(Q)rm -rf $(BUILDDIR) |
| @@ -7411,7 +7411,6 @@ S: Maintained · 7410 unmodified lines | ||
| 7411 | 7411 | P: Documentation/doc-guide/maintainer-profile.rst |
| 7412 | 7412 | T: git git://git.lwn.net/linux.git docs-next |
| 7413 | 7413 | F: Documentation/ |
| 7414 | −F: scripts/documentation-file-ref-check | |
| 7415 | 7414 | F: scripts/get_abi.py |
| 7416 | 7415 | F: scripts/kernel-doc* |
| 7417 | 7416 | F: scripts/lib/abi/* |
| @@ -7451,7 +7450,6 @@ M: Mauro Carvalho Chehab <mchehab@kernel.org> · 33 unmodified lines | ||
| 7451 | 7450 | L: linux-doc@vger.kernel.org |
| 7452 | 7451 | S: Maintained |
| 7453 | 7452 | F: Documentation/sphinx/parse-headers.pl |
| 7454 | −F: scripts/documentation-file-ref-check | |
| 7455 | 7453 | F: tools/docs/sphinx-pre-install |
| 7456 | 7454 | |
| 7457 | 7455 | DOCUMENTATION/ITALIAN |
| @@ -17,7 +17,7 @@ my %false_positives = ( · 16 unmodified lines | ||
| 17 | 17 | ); |
| 18 | 18 | |
| 19 | 19 | my $scriptname = $0; |
| 20 | −$scriptname =~ s,.*/([^/]+/),$1,; | |
| 20 | +$scriptname =~ s,tools/docs/([^/]+/),$1,; | |
| 21 | 21 | |
| 22 | 22 | # Parse arguments |
| 23 | 23 | my $help = 0; |
| @@ -313,7 +313,7 @@ class MissingCheckers(AncillaryMethods): · 312 unmodified lines | ||
| 313 | 313 | Right now, we still need Perl for doc build, as it is required |
| 314 | 314 | by some tools called at docs or kernel build time, like: |
| 315 | 315 | |
| 316 | − scripts/documentation-file-ref-check | |
| 316 | + tools/docs/documentation-file-ref-check | |
| 317 | 317 | |
| 318 | 318 | Also, checkpatch is on Perl. |
| 319 | 319 | """ |