summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2012-08-20 02:01:05 -0500
committerJesse Luehrs <doy@tozt.net>2012-08-20 02:01:25 -0500
commitd3a006d5f0619ca9ffba4111124c402b4eb6a9c4 (patch)
treee02ea1b199f91f1f66e7851e51d7e87f84679466
parentaf43fb989b3b907e6d9f2d9ec99f683bf61d9514 (diff)
downloadfun-d3a006d5f0619ca9ffba4111124c402b4eb6a9c4.tar.gz
fun-d3a006d5f0619ca9ffba4111124c402b4eb6a9c4.zip
forgot to include this
-rw-r--r--.gitignore1
-rw-r--r--inc/MakeMaker.pm20
2 files changed, 20 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index d56fd58..0fdb7db 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,7 +3,6 @@ META.*
MYMETA.*
Makefile
blib
-inc
pm_to_blib
MANIFEST
Makefile.old
diff --git a/inc/MakeMaker.pm b/inc/MakeMaker.pm
new file mode 100644
index 0000000..1a1eed5
--- /dev/null
+++ b/inc/MakeMaker.pm
@@ -0,0 +1,20 @@
+package inc::MakeMaker;
+use Moose;
+
+extends 'Dist::Zilla::Plugin::MakeMaker::Awesome';
+
+around _build_MakeFile_PL_template => sub {
+ my $orig = shift;
+ my $self = shift;
+ my $tmpl = $self->$orig;
+ return $tmpl . <<'TMPL'
+use Devel::CallParser 'callparser1_h';
+open my $fh, '>', 'callparser1.h' or die "Couldn't write to callparser1.h";
+$fh->print(callparser1_h);
+TMPL
+};
+
+__PACKAGE__->meta->make_immutable;
+no Moose;
+
+1;