From: Mauro Carvalho Chehab Date: Mon, 22 Apr 2019 11:42:02 +0000 (-0300) Subject: scripts/documentation-file-ref-check: don't parse Next/ dir X-Git-Tag: v5.15~6391^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fe3e4b9c6364d3aa69eb30f44d1a44bc90f99924;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Jonathan Corbet --- diff --git a/scripts/documentation-file-ref-check b/scripts/documentation-file-ref-check index ad9db68..bd7d9ab 100755 --- a/scripts/documentation-file-ref-check +++ b/scripts/documentation-file-ref-check @@ -38,6 +38,9 @@ while () { 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$/);