Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb77f0d6 authored by Kamil Rytarowski's avatar Kamil Rytarowski Committed by Masahiro Yamada
Browse files

scripts: Switch to more portable Perl shebang



The default NetBSD package manager is pkgsrc and it installs Perl
along other third party programs under custom and configurable prefix.
The default prefix for binary prebuilt packages is /usr/pkg, and the
Perl executable lands in /usr/pkg/bin/perl.

This change switches "/usr/bin/perl" to "/usr/bin/env perl" as it's
the most portable solution that should work for almost everybody.
Perl's executable is detected automatically.

This change switches -w option passed to the executable with more
modern "use warnings;" approach. There is no functional change to the
default behavior.

While there, drop "require 5" from scripts/namespace.pl (Perl from 1994?).

Signed-off-by: default avatarKamil Rytarowski <n54@gmx.com>
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent 2ea659a9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
#!/usr/bin/perl
#!/usr/bin/env perl

# Copyright 2008, Intel Corporation
#
+1 −1
Original line number Diff line number Diff line
#!/usr/bin/perl
#!/usr/bin/env perl
#
# checkincludes: find/remove files included more than once
#
+2 −1
Original line number Diff line number Diff line
#!/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)
@@ -6,6 +6,7 @@
# Licensed under the terms of the GNU GPL License version 2

use strict;
use warnings;
use POSIX;
use File::Basename;
use Cwd 'abs_path';
+1 −1
Original line number Diff line number Diff line
#!/usr/bin/perl
#!/usr/bin/env perl

#	Check the stack usage of functions
#
+1 −1
Original line number Diff line number Diff line
#! /usr/bin/perl
#! /usr/bin/env perl
#
# checkversion find uses of LINUX_VERSION_CODE or KERNEL_VERSION
# without including <linux/version.h>, or cases of
Loading