From: Steffen Mueller Date: Thu, 3 Sep 2009 12:22:07 +0000 (+0200) Subject: Move autouse from lib to ext X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=34c716a1bfb8a5ea74e130083c2e997aaecb4d63;p=p5sagit%2Fp5-mst-13.2.git Move autouse from lib to ext --- diff --git a/MANIFEST b/MANIFEST index a1b56d3..bd45358 100644 --- a/MANIFEST +++ b/MANIFEST @@ -81,6 +81,8 @@ ext/Attribute-Handlers/t/linerep.t See if Attribute::Handlers works ext/Attribute-Handlers/t/multi.t See if Attribute::Handlers works ext/attributes/attributes.pm For "sub foo : attrlist" ext/attributes/attributes.xs For "sub foo : attrlist" +ext/autouse/lib/autouse.pm Load and call a function only when it's used +ext/autouse/t/autouse.t See if autouse works ext/base/Changes base.pm changelog ext/base/lib/base.pm Establish IS-A relationship at compile time ext/base/lib/fields.pm Set up object field names for pseudo-hash-using classes @@ -2037,8 +2039,6 @@ lib/AutoLoader.pm Autoloader base class lib/AutoLoader/t/01AutoLoader.t See if AutoLoader works lib/AutoLoader/t/02AutoSplit.t See if AutoSplit works lib/AutoSplit.pm Split up autoload functions -lib/autouse.pm Load and call a function only when it's used -lib/autouse.t See if autouse works lib/Benchmark.pm Measure execution time lib/Benchmark.t See if Benchmark works lib/bigfloat.pl An arbitrary precision floating point package diff --git a/Porting/Maintainers.pl b/Porting/Maintainers.pl index 3db0351..956bcd9 100755 --- a/Porting/Maintainers.pl +++ b/Porting/Maintainers.pl @@ -2005,6 +2005,8 @@ package Maintainers; { 'MAINTAINER' => 'p5p', 'FILES' => q[ + ext/autouse/lib + ext/autouse/t ext/B/B.pm ext/B/typemap ext/B/Makefile.PL @@ -2144,7 +2146,6 @@ package Maintainers; lib/User/pwent.{pm,t} lib/abbrev.pl lib/assert.pl - lib/autouse.{pm,t} lib/bigfloat{.pl,pl.t} lib/bigint{.pl,pl.t} lib/bigrat.pl diff --git a/ext/.gitignore b/ext/.gitignore index 3208b4b..775a62b 100644 --- a/ext/.gitignore +++ b/ext/.gitignore @@ -14,6 +14,7 @@ ppport.h !/XS-Typemap/stdio.c /Attribute-Handlers/Makefile.PL /attributes/Makefile.PL +/autouse/Makefile.PL /base/Makefile.PL /B-Debug/Makefile.PL /B-Deparse/Makefile.PL diff --git a/lib/autouse.pm b/ext/autouse/lib/autouse.pm similarity index 100% rename from lib/autouse.pm rename to ext/autouse/lib/autouse.pm diff --git a/lib/autouse.t b/ext/autouse/t/autouse.t similarity index 93% rename from lib/autouse.t rename to ext/autouse/t/autouse.t index d4ca15a..42caf17 100644 --- a/lib/autouse.t +++ b/ext/autouse/t/autouse.t @@ -1,10 +1,8 @@ #!./perl BEGIN { - chdir 't' if -d 't'; - @INC = '../lib'; require Config; - if (($Config::Config{'extensions'} !~ m!\bList/Util\b!) ){ + if ($Config::Config{'extensions'} !~ m!\bList/Util\b!){ print "1..0 # Skip -- Perl configured without List::Util module\n"; exit 0; } diff --git a/lib/.gitignore b/lib/.gitignore index 9e3fc80..9076d3d 100644 --- a/lib/.gitignore +++ b/lib/.gitignore @@ -1,4 +1,5 @@ /Attribute +/autouse.pm /B.pm /B /Compress