diff options
author | Jesse Luehrs <doy@tozt.net> | 2012-08-20 02:01:05 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2012-08-20 02:01:25 -0500 |
commit | d3a006d5f0619ca9ffba4111124c402b4eb6a9c4 (patch) | |
tree | e02ea1b199f91f1f66e7851e51d7e87f84679466 | |
parent | af43fb989b3b907e6d9f2d9ec99f683bf61d9514 (diff) | |
download | fun-d3a006d5f0619ca9ffba4111124c402b4eb6a9c4.tar.gz fun-d3a006d5f0619ca9ffba4111124c402b4eb6a9c4.zip |
forgot to include this
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | inc/MakeMaker.pm | 20 |
2 files changed, 20 insertions, 1 deletions
@@ -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; |