* [PATCH] scripts/documentation-file-ref-check: don't parse Next/ dir
@ 2019-04-22 11:42 Mauro Carvalho Chehab
2019-05-03 12:39 ` Jonathan Corbet
0 siblings, 1 reply; 2+ messages in thread
From: Mauro Carvalho Chehab @ 2019-04-22 11:42 UTC (permalink / raw)
To: Linux Doc Mailing List
Cc: Mauro Carvalho Chehab, Mauro Carvalho Chehab, linux-kernel,
Jonathan Corbet
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>
---
scripts/documentation-file-ref-check | 3 +++
1 file changed, 3 insertions(+)
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>) {
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$/);
--
2.20.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] scripts/documentation-file-ref-check: don't parse Next/ dir
2019-04-22 11:42 [PATCH] scripts/documentation-file-ref-check: don't parse Next/ dir Mauro Carvalho Chehab
@ 2019-05-03 12:39 ` Jonathan Corbet
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Corbet @ 2019-05-03 12:39 UTC (permalink / raw)
To: Mauro Carvalho Chehab
Cc: Linux Doc Mailing List, Mauro Carvalho Chehab, linux-kernel
On Mon, 22 Apr 2019 08:42:02 -0300
Mauro Carvalho Chehab <mchehab+samsung@kernel.org> wrote:
> 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>
Applied, thanks.
jon
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-05-03 12:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-22 11:42 [PATCH] scripts/documentation-file-ref-check: don't parse Next/ dir Mauro Carvalho Chehab
2019-05-03 12:39 ` Jonathan Corbet
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.