blob: 1a1eed5c3e000a793777e0ed6b51e795de4cc035 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;
|