X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=scripts%2Fcheckpatch.pl;h=5224ea49c3b27985c3d15928c2748467dce4fdd4;hb=e2681eb06a7d482d0595bb0a58920bc5358c61f7;hp=c4b7437b90250990c0bc9227fb503591a6fda0d3;hpb=59261cbf38001b121f94642a4f225fbe082b1b7d;p=openwrt%2Fstaging%2Fmkresin.git diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index c4b7437b90..5224ea49c3 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -1,4 +1,4 @@ -#!/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) @@ -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; @@ -173,7 +174,7 @@ if ($tree) { } if (!defined $root) { - print "Must be run from the top-level dir. of a LEDE tree\n"; + print "Must be run from the top-level dir. of a OpenWrt tree\n"; exit(2); } }