diff options
author | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-06-14 10:06:08 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-06-15 17:10:01 -0400 |
commit | a78513c670ac5b5aa1244f93b1833c3e7d5433df (patch) | |
tree | 86991c41e58384264ab314e449c211876303b87c /scripts/documentation-file-ref-check | |
parent | 2d69708f9c08067735672908507894374bebb379 (diff) |
scripts/documentation-file-ref-check: check tools/*/Documentation
Some files, like tools/memory-model/README has references to
a Documentation file that is locale to it. Handle references
that are relative to them too.
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Acked-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'scripts/documentation-file-ref-check')
-rwxr-xr-x | scripts/documentation-file-ref-check | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/documentation-file-ref-check b/scripts/documentation-file-ref-check index 047f463cdf4b..078999a3fdff 100755 --- a/scripts/documentation-file-ref-check +++ b/scripts/documentation-file-ref-check | |||
@@ -78,6 +78,13 @@ while (<IN>) { | |||
78 | # Check if exists, evaluating wildcards | 78 | # Check if exists, evaluating wildcards |
79 | next if (grep -e, glob("$ref $fulref")); | 79 | next if (grep -e, glob("$ref $fulref")); |
80 | 80 | ||
81 | # Accept relative Documentation patches for tools/ | ||
82 | if ($f =~ m/tools/) { | ||
83 | my $path = $f; | ||
84 | $path =~ s,(.*)/.*,$1,; | ||
85 | next if (grep -e, glob("$path/$ref $path/$fulref")); | ||
86 | } | ||
87 | |||
81 | if ($fix) { | 88 | if ($fix) { |
82 | if (!($ref =~ m/(scripts|Kconfig|Kbuild)/)) { | 89 | if (!($ref =~ m/(scripts|Kconfig|Kbuild)/)) { |
83 | $broken_ref{$ref}++; | 90 | $broken_ref{$ref}++; |