Module::New::Recipe::Dist - create a new distribution
From the shell/command line:
creates Module-Name directory for the distribution, and trunk, branches, tags directories there, and also several files and tests (including lib/Module/Name.pm) in the <Module-Name/trunk> directory.
Module-Name
trunk
branches
tags
lib/Module/Name.pm
module_new dist Module::Name --in t
creates a distribution in t/ directory, instead of the current directory.
t/
module_new dist Module::Name --no_dirs
doesn't creates Module-Name/trunk, Module-Name/branches, Module-Name/tags directories for subversion, and creates various files including lib/Module/Name.pm just under the Module-Name directory.
Module-Name/trunk
Module-Name/branches
Module-Name/tags
subversion
module_new dist Module::Name --xs
creates extra XS stuff like Name.xs, Name.h and ppport.h (if you have installed Devel::PPPort). Also, the content of lib/Module/Name.pm changes to load XSLoader.
Name.xs
Name.h
ppport.h
module_new dist Module::Name --make=ModuleBuild
by default, Module::New creates ExtUtils::MakeMaker::CPANfile-based Makefile.PL, but with this option, you can make it to create Build.PL to use Module::Build (set this to ModuleBuild or MB for shortcut), or Makefile.PL powered by ExtUtils::MakeMaker (set this to MakeMaker, or EUMM).
Makefile.PL
Build.PL
ModuleBuild
MB
MakeMaker
EUMM
module_new dist Module::Name --edit
If set to true, you can edit lib/Module/Name.pm you created.
Kenichi Ishigaki, <ishigaki@cpan.org>
Copyright (C) 2007-2009 by Kenichi Ishigaki.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Module::New, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Module::New
CPAN shell
perl -MCPAN -e shell install Module::New
For more information on module installation, please visit the detailed CPAN module installation guide.