diff options
author | mattn <mattn.jp@gmail.com> | 2013-05-08 21:46:35 +0900 |
---|---|---|
committer | mattn <mattn.jp@gmail.com> | 2013-05-08 21:46:35 +0900 |
commit | 00125ec7eaeb2251babf8136f3263285646a1859 (patch) | |
tree | b4294b359f3e9b9f6bbe099be12d56a0ef392d4b /template | |
parent | 8a6affaaf1f01dd446da7dd45256301405058729 (diff) | |
download | vim-sonictemplate-00125ec7eaeb2251babf8136f3263285646a1859.tar.gz vim-sonictemplate-00125ec7eaeb2251babf8136f3263285646a1859.tar.bz2 vim-sonictemplate-00125ec7eaeb2251babf8136f3263285646a1859.zip |
Guess Makefile.PL
Diffstat (limited to 'template')
-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, +); |