Disallow creating dist with extra author mode deps
Dagfinn Ilmari Mannsåker [Thu, 25 Feb 2016 12:36:35 +0000 (12:36 +0000)]
Makefile.PL

index dae8d9d..4d33fed 100644 (file)
@@ -104,6 +104,14 @@ if ($Module::Install::AUTHOR && ! $args->{skip_author_deps}) {
     author_tests( 'xt' );
     readme_from( 'lib/DBIx/Class/Schema/Loader.pm' );
     realclean_files( qw[README MANIFEST lib/DBIx/Class/Schema/Loader/Optional/Dependencies.pod] );
+    postamble <<EOP;
+create_distdir: author_stop_distdir_creation
+author_stop_distdir_creation:
+\t\$(NOECHO) \$(ECHO) Creation of dist with author mode deps not allowed
+\t\$(NOECHO) \$(ECHO) Please re-run Makefile.PL with --skip_author_deps
+\t\$(NOECHO) \$(FALSE)
+EOP
+
 }
 
 tests_recursive;