From: Tom Rini Date: Sun, 16 Jun 2013 09:42:10 -0400 Subject: [U-Boot] [PATCH] checkpatch.pl: Do not hardcode perl path In-Reply-To: References: Message-ID: <20130616134210.GC12509@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, Jun 16, 2013 at 12:46:37PM +0530, Jagannadha Sutradharudu Teki wrote: > From: Jagannadha Sutradharudu Teki > > 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 > --- > 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 (the ugly bit) > # (c) 2007,2008, Andy Whitcroft (new conditions, test suite) > # (c) 2008-2010 Andy Whitcroft > # 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: