[anjuta] bgo #782452 - Using #!/usr/bin/perl in scripts is not portable
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] bgo #782452 - Using #!/usr/bin/perl in scripts is not portable
- Date: Thu, 25 May 2017 18:48:32 +0000 (UTC)
commit 4b6601570bb20b78d9ff35ff8475b54590be2dd1
Author: Sébastien Granjoux <seb sfo free fr>
Date: Thu May 25 18:32:39 2017 +0200
bgo #782452 - Using #!/usr/bin/perl in scripts is not portable
libanjuta/interfaces/anjuta-idl-compiler.pl | 3 ++-
plugins/tools/scripts/find-fixmes.pl | 2 +-
plugins/tools/scripts/prepare-changelog.pl | 3 ++-
plugins/tools/scripts/translation-status.pl | 2 +-
po/status.pl | 2 +-
5 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/libanjuta/interfaces/anjuta-idl-compiler.pl b/libanjuta/interfaces/anjuta-idl-compiler.pl
index b6df84c..cb3d306 100755
--- a/libanjuta/interfaces/anjuta-idl-compiler.pl
+++ b/libanjuta/interfaces/anjuta-idl-compiler.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Copyright (C) 2004 Naba Kumar <naba gnome org>
#
@@ -17,6 +17,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
use strict;
+use warnings;
use Data::Dumper;
if (@ARGV != 1)
diff --git a/plugins/tools/scripts/find-fixmes.pl b/plugins/tools/scripts/find-fixmes.pl
index 6325656..c922975 100644
--- a/plugins/tools/scripts/find-fixmes.pl
+++ b/plugins/tools/scripts/find-fixmes.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
## find-fixmes.pl
## Copyright (C) Naba Kumar <naba gnome org>
diff --git a/plugins/tools/scripts/prepare-changelog.pl b/plugins/tools/scripts/prepare-changelog.pl
index f4a1752..f2295ac 100755
--- a/plugins/tools/scripts/prepare-changelog.pl
+++ b/plugins/tools/scripts/prepare-changelog.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# vim: ft=perl
# -*- Mode: perl; indent-tabs-mode: nil; c-basic-offset: 2 -*-
@@ -44,6 +44,7 @@
# the blank lines before it makes diff think you've changed the
# previous function.
+use warnings;
use diagnostics;
use strict;
diff --git a/plugins/tools/scripts/translation-status.pl b/plugins/tools/scripts/translation-status.pl
index ec38f9b..39f2c81 100755
--- a/plugins/tools/scripts/translation-status.pl
+++ b/plugins/tools/scripts/translation-status.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
## status.pl
## Copyright (C) Naba Kumar <naba gnome org>
diff --git a/po/status.pl b/po/status.pl
index b604bea..f1c6ec9 100755
--- a/po/status.pl
+++ b/po/status.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
## status.pl
## Copyright (C) 2000-2001 Kh. Naba Kumar Singh
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]