fix up dist generation
[scpubgit/Tak.git] / maint / Makefile.PL.include
CommitLineData
51c8325b 1BEGIN { -e 'Distar' or system("git clone git://git.shadowcat.co.uk/p5sagit/Distar.git") }
2use lib 'Distar/lib';
3use Distar;
39e8cf77 4use IO::All;
51c8325b 5
6author 'mst - Matt S. Trout (cpan:MSTROUT) <mst@shadowcat.co.uk>';
7
d1cc69ab 8manifest_include bin => qr/[^.].*/;
9
39e8cf77 10# rebuild the fatpacked lib/Tak/STDIONode.pm
51c8325b 11system("maint/mk-fat");
12
39e8cf77 13# rip the example Takfile out of the synopsis so I can play with it
14# more easily
15my $tak_pm = io('lib/Tak.pm')->all;
16
17my ($takfile) = $tak_pm =~ /( package Tak::MyScript.*? 1;\n)/s;
18
19$takfile =~ s/^ //mg;
20
21io('Takfile')->print($takfile);
22
51c8325b 231;