build: remove absolute path to perl and replace with /usr/bin/env perl
[openwrt/staging/florian.git] / scripts / checkpatch.pl
index c4b7437b90250990c0bc9227fb503591a6fda0d3..05fd772c91ffd99c36a6fc71817aba1f3129a155 100755 (executable)
@@ -1,4 +1,4 @@
-#!/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)
@@ -7,6 +7,7 @@
 # Licensed under the terms of the GNU GPL License version 2
 
 use strict;
+use warnings;
 
 my $P = $0;
 $P =~ s@.*/@@g;