Răsfoiți Sursa

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

Signed-off-by: Bastian Köcher <[email protected]>
Bastian Köcher 8 ani în urmă
părinte
comite
5378c85677
4 a modificat fișierele cu 7 adăugiri și 4 ștergeri
  1. 2 1
      scripts/checkpatch.pl
  2. 2 1
      scripts/cleanfile
  3. 2 1
      scripts/cleanpatch
  4. 1 1
      scripts/flashing/adsl2mue_flash.pl

+ 2 - 1
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 <[email protected]> (the ugly bit)
 # (c) 2007,2008, Andy Whitcroft <[email protected]> (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;

+ 2 - 1
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;

+ 2 - 1
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;

+ 1 - 1
scripts/flashing/adsl2mue_flash.pl

@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 #   Linksys ADSL2MUE Flash utility.
 #