diff options
author | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-05-29 19:09:29 -0400 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2019-05-30 12:40:24 -0400 |
commit | 4904aeed9f686c90dba72980f0067ac1a7dbbfb6 (patch) | |
tree | b41ae02a422dd507c53bacc3da46eb56db84e22d /scripts/documentation-file-ref-check | |
parent | aeaacbfed853c17b8ac5e73c21f54d7f0805d899 (diff) |
scripts/documentation-file-ref-check: improve tools ref handling
There's a false positive on perf/util:
tools/perf/util/s390-cpumsf.c: Documentation/perf.data-file-format.txt
The file is there at tools/perf/Documentation/, but the logic
with detects relative documentation references inside tools is
not capable of detecting it.
So, improve it.
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'scripts/documentation-file-ref-check')
-rwxr-xr-x | scripts/documentation-file-ref-check | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/documentation-file-ref-check b/scripts/documentation-file-ref-check index 05235775cc71..5d775ca7469b 100755 --- a/scripts/documentation-file-ref-check +++ b/scripts/documentation-file-ref-check | |||
@@ -127,7 +127,7 @@ while (<IN>) { | |||
127 | if ($f =~ m/tools/) { | 127 | if ($f =~ m/tools/) { |
128 | my $path = $f; | 128 | my $path = $f; |
129 | $path =~ s,(.*)/.*,$1,; | 129 | $path =~ s,(.*)/.*,$1,; |
130 | next if (grep -e, glob("$path/$ref $path/$fulref")); | 130 | next if (grep -e, glob("$path/$ref $path/../$ref $path/$fulref")); |
131 | } | 131 | } |
132 | 132 | ||
133 | # Discard known false-positives | 133 | # Discard known false-positives |