Skip to contentSkip to conversation

scripts/get_abi.pl: Ignore hidden files

PATCH New Jonathan Neuschäfer 1 participant 1 message Jan 29, 2022 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 scripts/get_abi.pl: Ignore hidden files

get_abi.pl currently collects every file in Documentation/ABI. This causes a UnicodeDecodeError in Documentation/sphinx/kernel_abi.py, when it finds my Vim swap files (.foo.swp) in the directory.

To avoid such issues, ignore hidden files in get_abi.pl.

---

v2:
- Fix abi->api typo
- Add R-b tag

---
 scripts/get_abi.pl | 1 +
 1 file changed, 1 insertion(+)
scripts/get_abi.pl +1 -0
index 6212f58b69c61..47b7eca5b0b71 100755
@@ -92,6 +92,7 @@ sub parse_abi {
 	my $mode = (stat($file))[2];
 	return if ($mode & S_IFDIR);
 	return if ($file =~ m,/README,);
+	return if ($file =~ m,/\.,);
 
 	my $name = $file;
 	$name =~ s,.*/,,;

--
2.34.1