X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=maint%2FMakefile.PL.inc%2F12_authordeps.pl;h=7068fcbead079513e49cf219f03fdb62cfb677e0;hb=906c03556a6c5584b3f2f18eb7501cc4c48704a1;hp=1083b7eaee6b7be3dfc69f99148168cbf8fed70f;hpb=65a231a8160a23779d1683dc76d4a453aa19af1c;p=dbsrgits%2FDBIx-Class.git diff --git a/maint/Makefile.PL.inc/12_authordeps.pl b/maint/Makefile.PL.inc/12_authordeps.pl index 1083b7e..7068fcb 100644 --- a/maint/Makefile.PL.inc/12_authordeps.pl +++ b/maint/Makefile.PL.inc/12_authordeps.pl @@ -24,7 +24,7 @@ else { ****************************************************************************** *** *** *** AUTHOR MODE: all optional test dependencies converted to hard requires *** -*** ( to disable re-run Makefile.PL with --skip_author_deps ) *** +*** ( to disable re-run Makefile.PL with --skip-author-deps ) *** *** *** ****************************************************************************** ****************************************************************************** @@ -66,6 +66,9 @@ EOW # this will run after the Makefile is written and the main Makefile.PL terminates # END { + # shit already hit the fan + return if $?; + # Re-write META.yml at the end to _exclude_ all forced build-requires (we do not # want to ship this) We are also not using M::I::AuthorRequires as this will be # an extra dep, and deps in Makefile.PL still suck @@ -91,6 +94,12 @@ END { Meta->write; } + # strip possible crlf from META + if ($^O eq 'MSWin32' or $^O eq 'cygwin') { + local $ENV{PERLIO} = 'unix'; + system( $^X, qw( -MExtUtils::Command -e dos2unix -- META.yml), ); + } + # test that we really took things away (just in case, happened twice somehow) if (! -f 'META.yml') { warn "No META.yml generated?! aborting...\n";