diff options
Diffstat (limited to 'template/perl/base-make.pl')
-rw-r--r-- | template/perl/base-make.pl | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/template/perl/base-make.pl b/template/perl/base-make.pl new file mode 100644 index 0000000..e696b6e --- /dev/null +++ b/template/perl/base-make.pl @@ -0,0 +1,19 @@ +use strict; +use ExtUtils::MakeMaker; + +my %clean = ( + 'FILES' => '$(DISTVNAME).tar$(SUFFIX) *.ppd' +); + +my %dist = ( + PREOP => 'perldoc -t {{_define_:modulepm:(split(substitute(glob("lib/*.pm"),"\\","/","g"),"\n")+[''])[0]}} > README', +); + +WriteMakefile( + 'NAME' => '{{_expr_:fnamemodify(sonictemplate#getvar("modulepm"),":t:r")}}', + 'AUTHOR' => 'Your Name <you@cpan.org>', + 'ABSTRACT_FROM' => '{{_var_:modulepm}}', + 'VERSION_FROM' => '{{_var_:modulepm}}', + 'clean' => \%clean, + 'dist' => \%dist, +); |