Skip to content

Commit 75ddc07

Browse files
rddunlapJonathan Corbet
authored andcommitted
scripts/get_abi.pl: ignore some temp files
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> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Link: https://lore.kernel.org/r/20231228233113.5218-1-rdunlap@infradead.org
1 parent 3231dd5 commit 75ddc07

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

scripts/get_abi.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ sub parse_abi {
9393
return if ($mode & S_IFDIR);
9494
return if ($file =~ m,/README,);
9595
return if ($file =~ m,/\.,);
96+
return if ($file =~ m,\.(rej|org|orig|bak)$,);
9697

9798
my $name = $file;
9899
$name =~ s,.*/,,;

0 commit comments

Comments
 (0)