Normalize -'s and _'s in maint names and Makefile options
Peter Rabbitson [Sat, 4 Feb 2012 16:19:27 +0000 (17:19 +0100)]
Makefile.PL
maint/Makefile.PL.inc/11_authortests.pl
maint/Makefile.PL.inc/12_authordeps.pl
maint/gen_pod_index [moved from maint/gen-pod-index.pl with 100% similarity]
maint/gen_schema [moved from maint/gen-schema.pl with 100% similarity]

index 290045d..28d5dac 100644 (file)
@@ -128,7 +128,9 @@ if ($Module::Install::AUTHOR  and ! $ENV{MAKELEVEL}) {
   my $args = {
     skip_author_deps => undef,
   };
-  $getopt->getoptions($args, 'skip_author_deps');
+  $getopt->getoptions($args, qw/
+    skip_author_deps|skip-author-deps
+  /);
   if (@ARGV) {
     warn "\nIgnoring unrecognized option(s): @ARGV\n\n";
   }
index ebcda2d..b8f00b4 100644 (file)
@@ -12,7 +12,7 @@ eval {
 
     # better error message in case of missing dep
     eval { require Module::Install::AuthorTests }
-      || die "\nYou need Module::Install::AuthorTests installed to run this Makefile.PL in author mode (or supply --skip_author_deps):\n\n$@\n";
+      || die "\nYou need Module::Install::AuthorTests installed to run this Makefile.PL in author mode (or add --skip-author-deps):\n\n$@\n";
 
     die $err;
   }
index 1083b7e..c4944d0 100644 (file)
@@ -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 )        ***
 ***                                                                        ***
 ******************************************************************************
 ******************************************************************************
similarity index 100%
rename from maint/gen-pod-index.pl
rename to maint/gen_pod_index
similarity index 100%
rename from maint/gen-schema.pl
rename to maint/gen_schema