From: Jagannadha Sutradharudu Teki <jagannadha.sutradharudu-teki@xilinx.com>
To: <linux-kernel@vger.kernel.org>
Cc: Joe Perches <joe@perches.com>, Andy Whitcroft <apw@canonical.com>,
Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Subject: [PATCH] checkpatch: Do not hardcode perl path
Date: Thu, 5 Dec 2013 16:53:36 +0530 [thread overview]
Message-ID: <b26e8934-caba-4385-bd32-8f48e2e99826@VA3EHSMHS026.ehs.local> (raw)
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 <jaganna@xilinx.com>
---
scripts/checkpatch.pl | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 9c98100..241bb11 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/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;
use POSIX;
--
1.8.3
next reply other threads:[~2013-12-05 11:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-05 11:23 Jagannadha Sutradharudu Teki [this message]
2013-12-05 19:51 ` Joe Perches
2013-12-06 6:04 ` Jagannadha Sutradharudu Teki
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=b26e8934-caba-4385-bd32-8f48e2e99826@VA3EHSMHS026.ehs.local \
--to=jagannadha.sutradharudu-teki@xilinx.com \
--cc=apw@canonical.com \
--cc=jaganna@xilinx.com \
--cc=joe@perches.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®