scripts/documentation-file-ref-check: don't parse Next/ dir
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 22 Apr 2019 11:42:02 +0000 (08:42 -0300)
committerJonathan Corbet <corbet@lwn.net>
Fri, 3 May 2019 12:45:22 +0000 (06:45 -0600)
If one tries to run this script under linux-next, it would
hit lots of false-positives, due to the tree merges that
are stored under the Next/ directory.

So, add a logic to ignore it.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
scripts/documentation-file-ref-check

index ad9db68..bd7d9ab 100755 (executable)
@@ -38,6 +38,9 @@ while (<IN>) {
        my $f = $1;
        my $ln = $2;
 
+       # On linux-next, discard the Next/ directory
+       next if ($f =~ m,^Next/,);
+
        # Makefiles and scripts contain nasty expressions to parse docs
        next if ($f =~ m/Makefile/ || $f =~ m/\.sh$/);