From: "Jonathan Neuschäfer" <j.neuschaefer@gmx.net>
To: "Jonathan Neuschäfer" <j.neuschaefer@gmx.net>
Cc: linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org,
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Jonathan Corbet <corbet@lwn.net>
Subject: Re: [PATCH] scripts/get_abi.pl: Ignore hidden files
Date: Fri, 28 Jan 2022 21:45:52 +0100 [thread overview]
Message-ID: <YfRWAP2OoW4t8juH@latitude> (raw)
In-Reply-To: <20220128201354.1928412-1-j.neuschaefer@gmx.net>
[-- Attachment #1: Type: text/plain, Size: 957 bytes --]
On Fri, Jan 28, 2022 at 09:13:53PM +0100, Jonathan Neuschäfer wrote:
> get_abi.pl currently collects every file in Documentation/ABI. This
> causes a UnicodeDecodeError in Documentation/sphinx/kernel_api.py,
Ooops, this should be kernel_abi.py.
> when it finds my Vim swap files (.foo.swp) in the directory.
>
> To avoid such issues, ignore hidden files in get_api.pl.
... and get_abi.pl.
>
> Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
> ---
> scripts/get_abi.pl | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/scripts/get_abi.pl b/scripts/get_abi.pl
> index 6212f58b69c61..47b7eca5b0b71 100755
> --- a/scripts/get_abi.pl
> +++ b/scripts/get_abi.pl
> @@ -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
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2022-01-28 20:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-28 20:13 Jonathan Neuschäfer
2022-01-28 20:45 ` Jonathan Neuschäfer [this message]
2022-01-28 21:00 ` Mauro Carvalho Chehab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YfRWAP2OoW4t8juH@latitude \
--to=j.neuschaefer@gmx.net \
--cc=corbet@lwn.net \
--cc=gregkh@linuxfoundation.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mchehab+huawei@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome