summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-07-20 13:50:21 -0400
committerJesse Luehrs <doy@tozt.net>2013-07-20 13:50:21 -0400
commitde6aa8c1071b577032d1a36add399a5dbf906618 (patch)
tree8e16fc1c53b75a76f84e01c1c42d07293aad5be7
parentbe8cfb28cb18499cf6ddfff9eff256d08537dd18 (diff)
downloadparse-keyword-de6aa8c1071b577032d1a36add399a5dbf906618.tar.gz
parse-keyword-de6aa8c1071b577032d1a36add399a5dbf906618.zip
whoops, forgot 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 8a86c49..f1a39ed 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;