linux-doc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] scripts/get_abi.pl: ignore some temp files
@ 2023-12-28 23:31 Randy Dunlap
  2024-01-03 21:03 ` Jonathan Corbet
  0 siblings, 1 reply; 7+ messages in thread
From: Randy Dunlap @ 2023-12-28 23:31 UTC (permalink / raw)
  To: linux-kernel
  Cc: Randy Dunlap, Greg Kroah-Hartman, Jonathan Corbet, linux-doc,
	Mauro Carvalho Chehab

When there are filenames of the form ".orig" or ".rej" in
the Documenatation/ABI/ subdirectories, there can be confusing or
erroneous output generated. Example: the file
Documenation/ABI/testing/sysfs-bus-papr-pmem.orig causes this
warning message:

Documentation/ABI/testing/sysfs-bus-papr-pmem:2: WARNING: unknown document: '/powerpc/papr_hcalls'

Prevent this by skipping over filenames that may be created by
patch/diff tools etc.

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: linux-doc@vger.kernel.org
Acked-by: Mauro Carvalho Chehab <mchehab@kernel.org>
---
 scripts/get_abi.pl |    1 +
 1 file changed, 1 insertion(+)

diff -- a/scripts/get_abi.pl b/scripts/get_abi.pl
--- a/scripts/get_abi.pl
+++ b/scripts/get_abi.pl
@@ -93,6 +93,7 @@ sub parse_abi {
 	return if ($mode & S_IFDIR);
 	return if ($file =~ m,/README,);
 	return if ($file =~ m,/\.,);
+	return if ($file =~ m,\.(rej|org|orig|bak)$,);
 
 	my $name = $file;
 	$name =~ s,.*/,,;

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-01-04 23:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-28 23:31 [PATCH] scripts/get_abi.pl: ignore some temp files Randy Dunlap
2024-01-03 21:03 ` Jonathan Corbet
2024-01-03 22:06   ` Randy Dunlap
2024-01-04 11:03   ` Jani Nikula
2024-01-04 14:59     ` Jonathan Corbet
2024-01-04 15:57       ` Jonathan Corbet
2024-01-04 23:37         ` Mauro Carvalho Chehab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).