From: Matt S Trout <mst@shadowcat.co.uk>
Date: Wed, 20 Feb 2013 19:55:36 +0000 (+0000)
Subject: setup Distar
X-Git-Tag: v0.001000~3
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f9b6d63700a512b5912ce85d661780d53312d02d;p=p5sagit%2Flib-with-preamble.git

setup Distar
---

diff --git a/Makefile.PL b/Makefile.PL
index e5eeda8..cfc4d6d 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -1,10 +1,12 @@
 use strict;
 use warnings FATAL => 'all';
+use 5.008001;
 use ExtUtils::MakeMaker;
+(do 'maint/Makefile.PL.include' or die $@) unless -f 'META.yml';
 
 WriteMakefile(
   NAME => 'lib-with-preamble',
-  VERSION => 0,
+  VERSION_FROM => 'lib/lib/with/preamble.pm',
   PM_FILTER => 'perl my/filter',
   PREREQ_PM => { 'PerlIO::via::dynamic' => 0.02 },
 );
diff --git a/maint/Makefile.PL.include b/maint/Makefile.PL.include
new file mode 100644
index 0000000..8f2298e
--- /dev/null
+++ b/maint/Makefile.PL.include
@@ -0,0 +1,9 @@
+BEGIN { -e 'Distar' or system("git clone git://git.shadowcat.co.uk/p5sagit/Distar.git") }
+use lib 'Distar/lib';
+use Distar;
+
+author 'mst - Matt S. Trout (cpan:MSTROUT) <mst@shadowcat.co.uk>';
+
+manifest_include my => qr{.*};
+
+1;