https://metacpan.org/pod/Module::Build::Cookbook#Adding-new-file-types-to-the-build-process
$builder->add_build_element(q/pl/);
$ module-starter --module DotPlInLib --email email --author author --v
+erbose --mb
Created DotPlInLib
Created DotPlInLib\lib
Created DotPlInLib\lib\DotPlInLib.pm
Created DotPlInLib\t
Created DotPlInLib\t\pod-coverage.t
Created DotPlInLib\t\pod.t
Created DotPlInLib\t\manifest.t
Created DotPlInLib\t\00-load.t
Created DotPlInLib\xt
Created DotPlInLib\xt\boilerplate.t
Created DotPlInLib\ignore.txt
Created DotPlInLib\Build.PL
Created DotPlInLib\Changes
Created DotPlInLib\README
Added to MANIFEST: Build.PL
Added to MANIFEST: Changes
Added to MANIFEST: ignore.txt
Added to MANIFEST: lib/DotPlInLib.pm
Added to MANIFEST: MANIFEST
Added to MANIFEST: README
Added to MANIFEST: t/00-load.t
Added to MANIFEST: t/manifest.t
Added to MANIFEST: t/pod-coverage.t
Added to MANIFEST: t/pod.t
Added to MANIFEST: xt/boilerplate.t
Created DotPlInLib\MANIFEST
Created starter directories and files
$ cd DotPlInLib
$ md lib\DotPlInLib\
$ echo sub yo { 42 } > lib\yo.pl
$ echo sub yo { 42 } > lib\DotPlInLib\yo.pl
$ echo sub no { 42 } > no.pl
$ perl -pi.orig -e "s{^(\$builder->)}{${1}add_build_element(q/pl/);;$1
+} " Build.PL
$ perl Build.PL --install_base .deleteme/
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'DotPlInLib' version '0.01'
$ perl Build install
Building DotPlInLib
Installing .deleteme\lib\perl5\DotPlInLib.pm
Installing .deleteme\lib\perl5\yo.pl
Installing .deleteme\lib\perl5\DotPlInLib\yo.pl
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|