lkml.org 
[lkml]   [2014]   [Oct]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] checkpatch: fix use via symlink, make missing spelling file non-fatal
From
Date
On Fri, 2014-10-24 at 10:02 +0100, Andy Whitcroft wrote:
> On Thu, Oct 23, 2014 at 10:29:11AM -0700, Joe Perches wrote:
>
> [...]
> > my $P = $0;
> > -$P =~ s@(.*)/@@g;
> > -my $D = $1;
> > +my $D = dirname(abs_path($P));
>
> That changes the value of $P, I don't know if that is intended:
>
> my $D = dirname(abs_path($0));
>
> or
>
> my $D = abs_path($1);
>
> perhaps to keep $P as it was.

I did it to show the executable passed on the cmdline better.

It changes --help and some warn/die messages.

It's not particularly important either way.



\
 
 \ /
  Last update: 2014-10-24 12:01    [W:1.796 / U:0.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site