use strict; use warnings;
use Module::Build 0.3601;
my $builder = Module::Build->new(
module_name => 'Tie::Array::CSV',
dist_author => 'Joel Berger',
license => 'perl',
requires => {
'perl' => 5.006001,
'Tie::File' => 0,
'Text::CSV' => 0,
},
configure_requires => {
'Module::Build' => 0.3601,
},
meta_merge => {
resources => {
repository => "http://github.com/jberger/Tie-Array-CSV",
bugtracker => "http://github.com/jberger/Tie-Array-CSV/issues",
},
}
);
$builder->create_build_script;
ex/Build.PL
# prepare release
$ perl Build.PL
$ perl Build manifest
$ perl Build test
$ perl Build dist
$ perl Build distcheck
$ perl Build disttest
# release
$ perl Build realclean
$ perl-reversion -bump # from Perl::Version
$ podselect path/to/main.pm > README.pod
$ perl Build.PL
$ perl Build manifest
$ perl Build test
$ perl Build dist
$ perl Build distcheck
$ perl Build disttest
$ mojo cpanify -u JBERGER -p PASSWORD my-dist.tar.gz
$ perl Build realclean