build: remove absolute path to perl and replace with /usr/bin/env perl
authorBastian Köcher <git@kchr.de>
Mon, 27 Mar 2017 15:21:12 +0000 (17:21 +0200)
committerFelix Fietkau <nbd@nbd.name>
Tue, 2 May 2017 12:33:58 +0000 (14:33 +0200)
Signed-off-by: Bastian Köcher <git@kchr.de>
scripts/checkpatch.pl
scripts/cleanfile
scripts/cleanpatch
scripts/flashing/adsl2mue_flash.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;
index cefd29e5229880ce1dfb5b6ef64be1393b34380a..64507c488f0aed8d33d5c013d2e07257b3a5a69b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 #
 # Clean a text file -- or directory of text files -- of stealth whitespace.
 # WARNING: this can be a highly destructive operation.  Use with caution.
@@ -6,6 +6,7 @@
 
 use bytes;
 use File::Basename;
+use warnings;
 
 # Default options
 $max_width = 79;
index 9680d03ad2b8e5dfb23b45079999382abba3fe85..ab5ebddded201747ad9b2bc416e523c46610f894 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl 
 #
 # Clean a patch file -- or directory of patch files -- of stealth whitespace.
 # WARNING: this can be a highly destructive operation.  Use with caution.
@@ -6,6 +6,7 @@
 
 use bytes;
 use File::Basename;
+use warnings;
 
 # Default options
 $max_width = 79;
index c206c471fd8cf5d438039a03de320a7133bf1438..0162eaf35b64b44f1218d002837b64d2f54290e7 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 #   Linksys ADSL2MUE Flash utility.
 #