fix punctuation
[gitmo/Moose.git] / Makefile.PL
index 0a7006b..f0756cd 100644 (file)
@@ -1,26 +1,28 @@
 use strict;
 use warnings;
 
-use Config;
-use ExtUtils::MakeMaker;
+BEGIN {
+    eval { require ExtUtils::MakeMaker::Dist::Zilla::Develop };
+    if ($@) {
+        warn
+            "You need to install ExtUtils::MakeMaker::Dist::Zilla::Develop to run this Makefile.PL\n";
+        exit 1;
+    }
+
+    eval { require Test::Inline };
+    if ($@) {
+        warn "You need to install Test::Inline to run this Makefile.PL\n";
+        exit 1;
+    }
+
+    ExtUtils::MakeMaker::Dist::Zilla::Develop->import();
+}
 
 use lib 'inc';
 
 use MMHelper;
 use MyInline;
 
-warn <<'EOF';
-
-  ********************************* WARNING **********************************
-
-  This module uses Dist::Zilla for development. This Makefile.PL will let you
-  run the tests, but you are encouraged to install Dist::Zilla and the needed
-  plugins if you intend on doing any serious hacking.
-
-  ****************************************************************************
-
-EOF
-
 system( $^X, 'author/extract-inline-tests', '--quiet' );
 
 eval MMHelper::my_package_subs();