aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/extension-convert.pl')
-rwxr-xr-xcontrib/extension-convert.pl10
1 files changed, 8 insertions, 2 deletions
diff --git a/contrib/extension-convert.pl b/contrib/extension-convert.pl
index 457f40f07..91a77b839 100755
--- a/contrib/extension-convert.pl
+++ b/contrib/extension-convert.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -6,8 +6,10 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0.
+use 5.10.1;
use strict;
use warnings;
+
use lib qw(. lib);
use Bugzilla;
@@ -68,6 +70,8 @@ my ($modules, $subs) = code_files_to_subroutines($to_dir);
my $config_pm = <<END;
package Bugzilla::Extension::$extension_name;
use strict;
+use warnings;
+
use constant NAME => '$extension_name';
$install_requirements
__PACKAGE__->NAME;
@@ -76,7 +80,9 @@ END
my $extension_pm = <<END;
package Bugzilla::Extension::$extension_name;
use strict;
-use base qw(Bugzilla::Extension);
+use warnings;
+
+use parent qw(Bugzilla::Extension);
$modules