Open xsawyerx opened 9 years ago
RJBS - 2005-07-07 02:23:20
I agree with your comments, and want to address them soon.
sjn - 2006-09-04 11:49:33
On Ons. 06. Jul. 2005 22:23:20, RJBS wrote:
I agree with your comments, and want to address them soon.
How are things going with this? I'd like to see this kind of support too...
Right now I'm overriding create_MANIFEST with this (which, obviously, isn't a solution that should be necessary when using an open source tool.)
==============================8<------------------------ package Module::Starter::Plugin::Template::ManifestSkip;
sub createMANIFEST { my $self = shift; my @files = @;
push(@files, $self->create_MANIFEST_SKIP() );
$self->SUPER::create_MANIFEST(@files);
}
sub create_MANIFEST_SKIP { my $self = shift;
my $fname = File::Spec->catfile( $self->{basedir}, "MANIFEST.SKIP" );
open( my $fh, ">", $fname ) or die "Can't create $fname: $!\n";
print $fh $self->MANIFEST_SKIP_guts();
close $fh;
$self->progress( "Created $fname" );
return "MANIFEST.SKIP";
}
sub MANIFEST_SKIP_guts { my $self = shift; my %options;
my $template = $self->{templates}{"MANIFEST.SKIP"};
$self->render($template, \%options);
} --------------------->8==================================
A more general solution for adding files would be GREATLY appreciated! (hint, hint :)
https://rt.cpan.org/Ticket/Display.html?id=12017