generate Takfile from SYNOPSIS in Tak.pm
[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
39e8cf77 8# rebuild the fatpacked lib/Tak/STDIONode.pm
51c8325b 9system("maint/mk-fat");
10
39e8cf77 11# rip the example Takfile out of the synopsis so I can play with it
12# more easily
13my $tak_pm = io('lib/Tak.pm')->all;
14
15my ($takfile) = $tak_pm =~ /( package Tak::MyScript.*? 1;\n)/s;
16
17$takfile =~ s/^ //mg;
18
19io('Takfile')->print($takfile);
20
51c8325b 211;