aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2013-05-08 21:46:35 +0900
committermattn <mattn.jp@gmail.com>2013-05-08 21:46:35 +0900
commit00125ec7eaeb2251babf8136f3263285646a1859 (patch)
treeb4294b359f3e9b9f6bbe099be12d56a0ef392d4b /template
parent8a6affaaf1f01dd446da7dd45256301405058729 (diff)
downloadvim-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.pl19
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,
+);