diff options
author | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-04-22 07:42:02 -0400 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2019-05-03 08:45:22 -0400 |
commit | fe3e4b9c6364d3aa69eb30f44d1a44bc90f99924 (patch) | |
tree | d1e1863032b7b32e862ed1b94c152e3c67300e6f /scripts/documentation-file-ref-check | |
parent | 62be257e986dab439537b3e1c19ef746a13e1860 (diff) |
scripts/documentation-file-ref-check: don't parse Next/ dir
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>
Diffstat (limited to 'scripts/documentation-file-ref-check')
-rwxr-xr-x | scripts/documentation-file-ref-check | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/documentation-file-ref-check b/scripts/documentation-file-ref-check index ad9db6821824..bd7d9ab63941 100755 --- a/scripts/documentation-file-ref-check +++ b/scripts/documentation-file-ref-check | |||
@@ -38,6 +38,9 @@ while (<IN>) { | |||
38 | my $f = $1; | 38 | my $f = $1; |
39 | my $ln = $2; | 39 | my $ln = $2; |
40 | 40 | ||
41 | # On linux-next, discard the Next/ directory | ||
42 | next if ($f =~ m,^Next/,); | ||
43 | |||
41 | # Makefiles and scripts contain nasty expressions to parse docs | 44 | # Makefiles and scripts contain nasty expressions to parse docs |
42 | next if ($f =~ m/Makefile/ || $f =~ m/\.sh$/); | 45 | next if ($f =~ m/Makefile/ || $f =~ m/\.sh$/); |
43 | 46 | ||