[source] build: remove absolute path to perl and replace with /usr/bin/env perl

LEDE Commits lede-commits at lists.infradead.org
Thu Dec 14 09:44:02 PST 2017


jow pushed a commit to source.git, branch lede-17.01:
https://git.lede-project.org/040ff6fdbd36d2a202765d241fcb3844851a0678

commit 040ff6fdbd36d2a202765d241fcb3844851a0678
Author: Bastian Köcher <git at kchr.de>
AuthorDate: Mon Mar 27 17:21:12 2017 +0200

    build: remove absolute path to perl and replace with /usr/bin/env perl
    
    Signed-off-by: Bastian Köcher <git at kchr.de>
    (cherry picked from commit 5378c856779c590e26910639e28b95a22aa2b9f5)
---
 scripts/checkpatch.pl              | 3 ++-
 scripts/cleanfile                  | 3 ++-
 scripts/cleanpatch                 | 3 ++-
 scripts/flashing/adsl2mue_flash.pl | 2 +-
 4 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index c4b7437..05fd772 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 <jschopp at austin.ibm.com> (the ugly bit)
 # (c) 2007,2008, Andy Whitcroft <apw at 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 at .*/@@g;
diff --git a/scripts/cleanfile b/scripts/cleanfile
index cefd29e..64507c4 100755
--- a/scripts/cleanfile
+++ b/scripts/cleanfile
@@ -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;
diff --git a/scripts/cleanpatch b/scripts/cleanpatch
index 9680d03..ab5ebdd 100755
--- a/scripts/cleanpatch
+++ b/scripts/cleanpatch
@@ -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;
diff --git a/scripts/flashing/adsl2mue_flash.pl b/scripts/flashing/adsl2mue_flash.pl
index c206c47..0162eaf 100755
--- a/scripts/flashing/adsl2mue_flash.pl
+++ b/scripts/flashing/adsl2mue_flash.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 #   Linksys ADSL2MUE Flash utility.
 #



More information about the lede-commits mailing list