From: Vincent Pit Date: Mon, 20 Aug 2012 07:50:50 +0000 (+0200) Subject: Make sure no literal 'package FOO' appears in samples/generate.pl X-Git-Tag: v0.930.1~8 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=bd5859258397f7af2e5df2c5f02f2bd1dd652fbe;p=perl%2Fmodules%2FTask-Devel-Cover-Recommended.git Make sure no literal 'package FOO' appears in samples/generate.pl In hope it will no longer be picked up as documentation by search.cpan.org and metacpan. --- diff --git a/lib/Task/Devel/Cover/Recommended.pm b/lib/Task/Devel/Cover/Recommended.pm index cf8ce76..357ff31 100644 --- a/lib/Task/Devel/Cover/Recommended.pm +++ b/lib/Task/Devel/Cover/Recommended.pm @@ -9,11 +9,11 @@ Task::Devel::Cover::Recommended - Install Devel::Cover and its recommended depen =head1 VERSION -Version v0.930.0 +Version v0.930.1 =cut -our $VERSION = 'v0.930.0'; +our $VERSION = 'v0.930.1'; =head1 SYNOPSIS diff --git a/samples/generate.pl b/samples/generate.pl index 0c5307c..13d8db9 100644 --- a/samples/generate.pl +++ b/samples/generate.pl @@ -207,10 +207,15 @@ sub sorthr ($) { map { $_ => $hr->{$_} } sort keys %$hr; } +# Make sure no package FOO statement appears in this file. +my $package_statement = join ' ', 'package', + $task_pkg; + my %vars = ( TARGET_PKG => $target_pkg, TARGET_VERSION => $target_version, TASK_PKG => $task_pkg, + PACKAGE_TASK_PKG => $package_statement, TASK_VERSION => $new_task_version, PERL_PREREQ => $prereqs{perl}, CONFIGURE_PREREQS_POD => deplist_to_pod(sorthr $prereqs{configure}), @@ -234,7 +239,7 @@ my %vars = ( my %templates = ( $task_file => <<'TEMPLATE', -package __TASK_PKG__; +__PACKAGE_TASK_PKG__; use strict; use warnings;