Break out B::Lint into its own directory in ext.
Nicholas Clark [Sun, 30 Aug 2009 11:30:40 +0000 (12:30 +0100)]
MANIFEST
Porting/Maintainers.pl
ext/B-Lint/lib/B/Lint.pm [moved from ext/B/B/Lint.pm with 100% similarity]
ext/B-Lint/lib/B/Lint/Debug.pm [moved from ext/B/B/Lint/Debug.pm with 100% similarity]
ext/B-Lint/t/lint.t [moved from ext/B/t/lint.t with 95% similarity]
ext/B-Lint/t/pluglib/B/Lint/Plugin/Test.pm [moved from ext/B/t/pluglib/B/Lint/Plugin/Test.pm with 100% similarity]

index 789e822..ef4f43d 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
@@ -84,8 +84,6 @@ ext/attributes/attributes.xs          For "sub foo : attrlist"
 ext/B/B/Concise.pm     Compiler Concise backend
 ext/B/B/Debug.pm       Compiler Debug backend
 ext/B/B/Deparse.pm     Compiler Deparse backend
-ext/B/B/Lint/Debug.pm  Adds debugging stringification to B::
-ext/B/B/Lint.pm                Compiler Lint backend
 ext/B/B.pm             Compiler backend support functions and methods
 ext/B/B/Showlex.pm     Compiler Showlex backend
 ext/B/B/Terse.pm       Compiler Terse backend
@@ -94,6 +92,10 @@ ext/B/B.xs           Compiler backend external subroutines
 ext/B/defsubs_h.PL     Generator for constant subroutines
 ext/B/hints/darwin.pl  Hints for named architecture
 ext/B/hints/openbsd.pl Hints for named architecture
+ext/B-Lint/lib/B/Lint/Debug.pm Adds debugging stringification to B::
+ext/B-Lint/lib/B/Lint.pm       Compiler Lint backend
+ext/B-Lint/t/lint.t            See if B::Lint works
+ext/B-Lint/t/pluglib/B/Lint/Plugin/Test.pm     See if B::Lint works
 ext/B/Makefile.PL      Compiler backend makefile writer
 ext/B/O.pm             Compiler front-end module (-MO=...)
 ext/B/t/b.t            See if B works
@@ -105,7 +107,6 @@ ext/B/t/f_map                       code from perldoc -f map
 ext/B/t/f_map.t                        converted to optreeCheck()s
 ext/B/t/f_sort                 optree test raw material
 ext/B/t/f_sort.t               optree test raw material
-ext/B/t/lint.t         See if B::Lint works
 ext/B/t/OptreeCheck.pm         optree comparison tool
 ext/B/t/optree_check.t         test OptreeCheck apparatus
 ext/B/t/optree_concise.t       more B::Concise tests
@@ -116,7 +117,6 @@ ext/B/t/optree_sort.t               inplace sort optimization regression
 ext/B/t/optree_specials.t      BEGIN, END, etc code
 ext/B/t/optree_varinit.t       my,our,local var init optimization
 ext/B/t/o.t            See if O works
-ext/B/t/pluglib/B/Lint/Plugin/Test.pm  See if B::Lint works
 ext/B/t/pragma.t       See if user pragmas work.
 ext/B/t/showlex.t      See if B::ShowLex works
 ext/B/t/terse.t                See if B::Terse works
index 6c84da8..f83ad7d 100755 (executable)
@@ -274,15 +274,8 @@ package Maintainers;
        {
        'MAINTAINER'    => 'jjore',
        'DISTRIBUTION'  => 'JJORE/B-Lint-1.11.tar.gz',
-       'FILES'         => q[ext/B/B/Lint.pm
-                            ext/B/t/lint.t
-                            ext/B/B/Lint/Debug.pm
-                            ext/B/t/pluglib/B/Lint/Plugin/Test.pm
-                           ],
+       'FILES'         => q[ext/B-Lint],
        'EXCLUDED'      => [ qw( t/test.pl ) ],
-       'MAP'           => { 'lib/B/'   => 'ext/B/B/',
-                            't/'       => 'ext/B/t/',
-                          },
        'CPAN'          => 1,
        'UPSTREAM'      => undef,
        },
similarity index 100%
rename from ext/B/B/Lint.pm
rename to ext/B-Lint/lib/B/Lint.pm
similarity index 95%
rename from ext/B/t/lint.t
rename to ext/B-Lint/t/lint.t
index efe4ff7..0727114 100644 (file)
@@ -1,14 +1,8 @@
 #!./perl -w
 
 BEGIN {
-    if ( $ENV{PERL_CORE} ) {
-        chdir('t') if -d 't';
-        @INC = ( '.', '../lib' );
-    }
-    else {
-        unshift @INC, 't';
-        push @INC, "../../t";
-    }
+    unshift @INC, 't';
+    push @INC, "../../t";
     require Config;
     if ( ( $Config::Config{'extensions'} !~ /\bB\b/ ) ) {
         print "1..0 # Skip -- Perl configured without B module\n";