123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- From 857c843d4bcf576467b505eb05a47f3e7d32caaa Mon Sep 17 00:00:00 2001
- From: Serhii Popovych <spopovyc@cisco.com>
- Date: Wed, 10 Feb 2016 17:07:32 +0000
- Subject: [PATCH] perl: Replace -w option in shebangs with modern "use
- warnings" In some builds we might provide ac_cv_path_PERL as /usr/bin/env
- perl to use newer version of the perl from users PATH rather than older from
- standard system path.
- However using /usr/bin/env perl -w from shebang line isn't
- possible because it translates to something like
- /usr/bin/env -w perl and env complains about illegal option.
- To address this we can remove -w option from perl shebang
- line and add "use warnings" statement.
- Upstream-Status: Pending
- Signed-off-by: Serhii Popovych <spopovyc@cisco.com>
- Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
- ---
- bin/aclocal.in | 3 ++-
- bin/automake.in | 3 ++-
- 2 files changed, 4 insertions(+), 2 deletions(-)
- diff --git a/bin/aclocal.in b/bin/aclocal.in
- index 9a20325..bd185d4 100644
- --- a/bin/aclocal.in
- +++ b/bin/aclocal.in
- @@ -1,4 +1,4 @@
- -#!@PERL@ -w
- +#!@PERL@
- # aclocal - create aclocal.m4 by scanning configure.ac -*- perl -*-
- # @configure_input@
- # Copyright (C) 1996-2020 Free Software Foundation, Inc.
- @@ -26,6 +26,7 @@ BEGIN
- }
-
- use strict;
- +use warnings;
-
- use Automake::Config;
- use Automake::General;
- diff --git a/bin/automake.in b/bin/automake.in
- index 5ed404a..d387b8e 100644
- --- a/bin/automake.in
- +++ b/bin/automake.in
- @@ -1,4 +1,4 @@
- -#!@PERL@ -w
- +#!@PERL@
- # automake - create Makefile.in from Makefile.am -*- perl -*-
- # @configure_input@
- # Copyright (C) 1994-2020 Free Software Foundation, Inc.
- @@ -23,6 +23,7 @@
- package Automake;
-
- use strict;
- +use warnings;
-
- BEGIN
- {
|