X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Makefile.PL;h=539884e6d8a1dafb2072d9821ff468491f21d18c;hb=f067fa817eb9eedd084d756ece046b67b23fb657;hp=35a30594bdf3a58a971dd4ca2b1bbb2e248acf94;hpb=a4ea0141e593c7b7afc86b15fb96d7f0ec5ab38a;p=perl%2Fmodules%2FSub-Op.git diff --git a/Makefile.PL b/Makefile.PL index 35a3059..539884e 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -14,6 +14,7 @@ $file = "lib/$file.pm"; my %PREREQ_PM = ( 'B::Hooks::EndOfScope' => 0, 'DynaLoader' => 0, + 'Scalar::Util' => 0, 'Variable::Magic' => '0.39', ); @@ -60,7 +61,7 @@ WriteMakefile( AUTHOR => 'Vincent Pit ', LICENSE => 'perl', VERSION_FROM => $file, -# ABSTRACT_FROM => $file, + ABSTRACT_FROM => $file, PL_FILES => {}, PREREQ_PM => \%PREREQ_PM, MIN_PERL_VERSION => 5.010, @@ -79,6 +80,7 @@ WriteMakefile( open my $fh, '>', $args_dat or die "open(>$args_dat): $!"; for (@ARGV) { my $arg = $_; + $arg =~ s{\s*(['"])\s*(.*)\s*\1\s*$}{$2}s; $arg =~ s{([^=/.a-zA-Z0-9-])}{sprintf "[%d]", ord $1}ge; print $fh "$arg\n"; } @@ -88,11 +90,11 @@ sub MY::postamble { <<' POSTAMBLE'; configure_test.pl: args.dat -t/Sub-Op-Test/Makefile: configure_test.pl +t/Sub-Op-LexicalSub/Makefile: configure_test.pl $(FULLPERLRUN) configure_test.pl -all clean:: t/Sub-Op-Test/Makefile - cd t/Sub-Op-Test && $(MAKE) $@ +all clean:: t/Sub-Op-LexicalSub/Makefile + cd t/Sub-Op-LexicalSub && $(MAKE) $@ clean:: $(RM_RF) args.dat