From: Tom Rini <trini@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] checkpatch.pl: Do not hardcode perl path
Date: Sun, 16 Jun 2013 09:42:10 -0400 [thread overview]
Message-ID: <20130616134210.GC12509@bill-the-cat> (raw)
In-Reply-To: <d25ec307-4f3d-49fc-9af6-e77ec9782553@CH1EHSMHS024.ehs.local>
On Sun, Jun 16, 2013 at 12:46:37PM +0530, Jagannadha Sutradharudu Teki wrote:
> From: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
>
> checkpatch.pl requires perl v5.10.0 to run but it
> doesn't require to place in /usr/bin/perl
> Use env to ensure that the interpreter used is the
> first one on environment's $PATH on system with
> several versions of perl installed.
>
> Signed-off-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
> ---
> tools/checkpatch.pl | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/tools/checkpatch.pl b/tools/checkpatch.pl
> index 896e2bc..8dc5b9c 100755
> --- a/tools/checkpatch.pl
> +++ b/tools/checkpatch.pl
> @@ -1,10 +1,11 @@
> -#!/usr/bin/perl -w
> +#!/usr/bin/env perl
> # (c) 2001, Dave Jones. (the file handling bit)
> # (c) 2005, Joel Schopp <jschopp@austin.ibm.com> (the ugly bit)
> # (c) 2007,2008, Andy Whitcroft <apw@uk.ibm.com> (new conditions, test suite)
> # (c) 2008-2010 Andy Whitcroft <apw@canonical.com>
> # Licensed under the terms of the GNU GPL License version 2
>
> +use warnings;
> use strict;
>
> my $P = $0;
Lets get this to come in via the kernel please, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130616/38b704a3/attachment.pgp>
next prev parent reply other threads:[~2013-06-16 13:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-16 7:16 [U-Boot] [PATCH] checkpatch.pl: Do not hardcode perl path Jagannadha Sutradharudu Teki
2013-06-16 7:30 ` Sumit Gemini
2013-06-16 10:25 ` Michael Trimarchi
2013-06-16 13:42 ` Tom Rini [this message]
2013-06-16 15:44 ` Joel A Fernandes
2013-06-16 16:10 ` Jagannadha Sutradharudu Teki
2013-06-17 6:38 ` Andreas Bießmann
2013-06-17 14:47 ` Joel A Fernandes
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=20130616134210.GC12509@bill-the-cat \
--to=trini@ti.com \
--cc=u-boot@lists.denx.de \
/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