public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] checkpatch.pl: Do not hardcode perl path
@ 2013-06-16  7:16 Jagannadha Sutradharudu Teki
  2013-06-16  7:30 ` Sumit Gemini
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Jagannadha Sutradharudu Teki @ 2013-06-16  7:16 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-06-17 14:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox