Move Switch from lib to ext.
Nicholas Clark [Sun, 30 Aug 2009 08:25:11 +0000 (09:25 +0100)]
MANIFEST
Porting/Maintainers.pl
ext/Switch/Switch.pm [moved from lib/Switch.pm with 100% similarity]
ext/Switch/t/given.t [moved from lib/Switch/t/given.t with 98% similarity]
ext/Switch/t/nested.t [moved from lib/Switch/t/nested.t with 79% similarity]
ext/Switch/t/switch.t [moved from lib/Switch/t/switch.t with 98% similarity]

index 9c7e9cd..0c20ae4 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
@@ -1257,6 +1257,10 @@ ext/Storable/t/tied.t            See if Storable works
 ext/Storable/t/utf8hash.t      See if Storable works
 ext/Storable/t/utf8.t          See if Storable works
 ext/Storable/t/weak.t          Can Storable store weakrefs
+ext/Switch/Switch.pm           Switch for Perl
+ext/Switch/t/given.t           See if Perl 6 given (switch) works
+ext/Switch/t/nested.t          See if nested switch works
+ext/Switch/t/switch.t          See if Perl 5 switch works
 ext/Sys-Hostname/Hostname.pm   Sys::Hostname extension Perl module
 ext/Sys-Hostname/Hostname.xs   Sys::Hostname extension external subroutines
 ext/Sys-Hostname/t/Hostname.t  See if Sys::Hostname works
@@ -3119,10 +3123,6 @@ lib/strict.pm                    For "use strict"
 lib/strict.t                   See if strictures work
 lib/subs.pm                    Declare overriding subs
 lib/subs.t                     See if subroutine pseudo-importation works
-lib/Switch.pm                  Switch for Perl
-lib/Switch/t/given.t           See if Perl 6 given (switch) works
-lib/Switch/t/nested.t          See if nested switch works
-lib/Switch/t/switch.t          See if Perl 5 switch works
 lib/Symbol.pm                  Symbol table manipulation routines
 lib/Symbol.t                   See if Symbol works
 lib/syslog.pl                  Perl library supporting syslogging
index 72b72d3..8b2e4b5 100755 (executable)
@@ -1620,10 +1620,7 @@ package Maintainers;
        {
        'MAINTAINER'    => 'rgarcia',
        'DISTRIBUTION'  => 'RGARCIA/Switch-2.14.tar.gz',
-       'FILES'         => q[lib/Switch.pm lib/Switch],
-       'MAP'           => { ''  => 'lib/',
-                            't/'=> 'lib/Switch/t/',
-                          },
+       'FILES'         => q[ext/Switch],
        'CPAN'          => 1,
        'UPSTREAM'      => "blead",
        },
similarity index 100%
rename from lib/Switch.pm
rename to ext/Switch/Switch.pm
similarity index 98%
rename from lib/Switch/t/given.t
rename to ext/Switch/t/given.t
index c396c35..2b56151 100644 (file)
@@ -1,10 +1,3 @@
-BEGIN {
-    if ($ENV{PERL_CORE}) {
-        chdir('t') if -d 't';
-        @INC = qw(../lib);
-    }
-}
-
 use Carp;
 use Switch qw(Perl6 __ fallthrough);
 
similarity index 79%
rename from lib/Switch/t/nested.t
rename to ext/Switch/t/nested.t
index e7e520a..d10dff2 100644 (file)
@@ -1,10 +1,3 @@
-BEGIN {
-    if ($ENV{PERL_CORE}) {
-        chdir('t') if -d 't';
-        @INC = qw(../lib);
-    }
-}
-
 use Switch;
 
 print "1..4\n";
similarity index 98%
rename from lib/Switch/t/switch.t
rename to ext/Switch/t/switch.t
index ad0f958..280dcb2 100644 (file)
@@ -1,10 +1,3 @@
-BEGIN {
-    if ($ENV{PERL_CORE}) {
-        chdir('t') if -d 't';
-        @INC = qw(../lib);
-    }
-}
-
 use Carp;
 use Switch qw(__ fallthrough);