get_reviewer.pl: improve portability
authorAlyssa Ross <hi@alyssa.is>
Fri, 19 Apr 2019 18:14:37 +0000 (18:14 +0000)
committerEric Engestrom <eric.engestrom@intel.com>
Fri, 3 May 2019 13:32:44 +0000 (14:32 +0100)
Not all package managers / users will install perl into /usr/bin,
but /usr/bin/env /should/ always be present.

Using /usr/bin/env means that we can't give the -w argument to Perl,
so I added `use warnings' in the script.

Reviewed-by: Rob Clark <robclark@freedesktop.org>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
scripts/get_reviewer.pl

index 62deb922800308906c02e78efce5fed3e4f489a9..1677495ad6dd704bd985979143fd77edd8c3c7d9 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 # (c) 2007, Joe Perches <joe@perches.com>
 #           created from checkpatch.pl
 #
@@ -14,6 +14,7 @@
 # Licensed under the terms of the GNU GPL License version 2
 
 use strict;
+use warnings;
 
 my $P = $0;
 my $V = '0.26';