From 49a8beb1ba8d07be5c2dd6c7e7d793790e665406 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 7 Jan 2011 18:22:59 -0600 Subject: initial implementation --- lib/ExtUtils/MakeMaker/Dist/Zilla.pm | 64 ++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) (limited to 'lib') diff --git a/lib/ExtUtils/MakeMaker/Dist/Zilla.pm b/lib/ExtUtils/MakeMaker/Dist/Zilla.pm index e69de29..25f46cb 100644 --- a/lib/ExtUtils/MakeMaker/Dist/Zilla.pm +++ b/lib/ExtUtils/MakeMaker/Dist/Zilla.pm @@ -0,0 +1,64 @@ +package ExtUtils::MakeMaker::Dist::Zilla; +use strict; +use warnings; + +use ExtUtils::MakeMaker (); + +sub import { + 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 + + ExtUtils::MakeMaker->export_to_level(1, @_); +} + +{ + package MY; + + use Config; + + my $message; + BEGIN { + $message = <<'MESSAGE'; + + ********************************* ERROR ************************************ + + This module uses Dist::Zilla for development. This Makefile.PL will let you + run the tests, but should not be used for installation or building dists. + Building a dist should be done with 'dzil build', installation should be + done with 'dzil install', and releasing should be done with 'dzil release'. + + **************************************************************************** + +MESSAGE + $message =~ s/^(.*)$/\t\$(NOECHO) echo "$1";/mg; + } + + sub install { + return <