summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2019-04-19 18:14:37 +0000
committerEric Engestrom <eric.engestrom@intel.com>2019-05-03 14:32:44 +0100
commite340d7beef9573facc53f3eeece640b2a14a15f5 (patch)
treea10206ebfa166b50035173604873fae2f6383e46 /scripts
parent80dc78407d0d1e03ceddf8889b217e8fd113568d (diff)
downloadmesa-e340d7beef9573facc53f3eeece640b2a14a15f5.tar.gz
mesa-e340d7beef9573facc53f3eeece640b2a14a15f5.tar.bz2
mesa-e340d7beef9573facc53f3eeece640b2a14a15f5.zip
get_reviewer.pl: improve portability
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>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/get_reviewer.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/get_reviewer.pl b/scripts/get_reviewer.pl
index 62deb922800..1677495ad6d 100755
--- a/scripts/get_reviewer.pl
+++ b/scripts/get_reviewer.pl
@@ -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';