All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mchehab@kernel.org>
To: "Jonathan Neuschäfer" <j.neuschaefer@gmx.net>
Cc: linux-kernel@vger.kernel.org, linux-doc@vger.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 22:00:59 +0100	[thread overview]
Message-ID: <20220128220007.085021a8@coco.lan> (raw)
In-Reply-To: <YfRWAP2OoW4t8juH@latitude>

Em Fri, 28 Jan 2022 21:45:52 +0100
Jonathan Neuschäfer <j.neuschaefer@gmx.net> escreveu:

> 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.
> 

After addressing your comment about the kernel_abi.py file, feel free
to add:

Reviewed-by: Mauro Carvalho Chehab <mchehab@kernel.org>

> 
> > 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

Thanks,
Mauro

      reply	other threads:[~2022-01-28 21:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-28 20:13 [PATCH] scripts/get_abi.pl: Ignore hidden files Jonathan Neuschäfer
2022-01-28 20:45 ` Jonathan Neuschäfer
2022-01-28 21:00   ` Mauro Carvalho Chehab [this message]

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=20220128220007.085021a8@coco.lan \
    --to=mchehab@kernel.org \
    --cc=corbet@lwn.net \
    --cc=gregkh@linuxfoundation.org \
    --cc=j.neuschaefer@gmx.net \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.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 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.