Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4904aeed authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab Committed by Jonathan Corbet
Browse files

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: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent aeaacbfe
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -127,7 +127,7 @@ while (<IN>) {
		if ($f =~ m/tools/) {
		if ($f =~ m/tools/) {
			my $path = $f;
			my $path = $f;
			$path =~ s,(.*)/.*,$1,;
			$path =~ s,(.*)/.*,$1,;
			next if (grep -e, glob("$path/$ref $path/$fulref"));
			next if (grep -e, glob("$path/$ref $path/../$ref $path/$fulref"));
		}
		}


		# Discard known false-positives
		# Discard known false-positives