]> git.vpit.fr Git - perl/modules/Task-Devel-Cover-Recommended.git/commitdiff
Make sure no literal 'package FOO' appears in samples/generate.pl
authorVincent Pit <vince@profvince.com>
Mon, 20 Aug 2012 07:50:50 +0000 (09:50 +0200)
committerVincent Pit <vince@profvince.com>
Mon, 20 Aug 2012 07:50:57 +0000 (09:50 +0200)
In hope it will no longer be picked up as documentation by search.cpan.org
and metacpan.

lib/Task/Devel/Cover/Recommended.pm
samples/generate.pl

index cf8ce766e43d51a4723224854a4a0521794b1162..357ff31ec22c933ebb4e928806f7ff8c27f4edfd 100644 (file)
@@ -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
 
index 0c5307c073c0554f6b69387351f9e1f79303c569..13d8db9eb6767e71ac3689ca9756ac03a3df06e1 100644 (file)
@@ -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;