summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2012-08-20 02:01:58 -0500
committerJesse Luehrs <doy@tozt.net>2012-08-20 02:01:58 -0500
commit56c840e68aee035a63651b58f53135f6dd19301e (patch)
treedfc23dd0b2b187b59a566cdc8b2f99de703702d9
parent16c5bc16e116613f97b3607a847698024666f074 (diff)
downloadtry-56c840e68aee035a63651b58f53135f6dd19301e.tar.gz
try-56c840e68aee035a63651b58f53135f6dd19301e.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 a259cda..76ceb34 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;