Commit a78513c6 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

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: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Acked-by: default avatarJonathan Corbet <corbet@lwn.net>
parent 2d69708f
...@@ -78,6 +78,13 @@ while (<IN>) { ...@@ -78,6 +78,13 @@ while (<IN>) {
# Check if exists, evaluating wildcards # Check if exists, evaluating wildcards
next if (grep -e, glob("$ref $fulref")); next if (grep -e, glob("$ref $fulref"));
# Accept relative Documentation patches for tools/
if ($f =~ m/tools/) {
my $path = $f;
$path =~ s,(.*)/.*,$1,;
next if (grep -e, glob("$path/$ref $path/$fulref"));
}
if ($fix) { if ($fix) {
if (!($ref =~ m/(scripts|Kconfig|Kbuild)/)) { if (!($ref =~ m/(scripts|Kconfig|Kbuild)/)) {
$broken_ref{$ref}++; $broken_ref{$ref}++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment