mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 15:11:16 +00:00
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>
This commit is contained in:
parent
2d69708f9c
commit
a78513c670
1 changed files with 7 additions and 0 deletions
|
@ -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}++;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue