This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Reuinte File::Spec with the rest of the PathTools distribution in ext.
authorNicholas Clark <nick@ccl4.org>
Sat, 19 Sep 2009 10:53:11 +0000 (11:53 +0100)
committerNicholas Clark <nick@ccl4.org>
Sat, 19 Sep 2009 10:53:11 +0000 (11:53 +0100)
It can't really be renamed from ext/Cwd to ext/PathTools, because Configure and
Makefile.SH need to know the name of the shared object produced, and they infer
this from the name of the directory.

This concludes the migration of modules from lib to ext. Exporter and version
remain in lib, but I don't think that there is any benefit in trying to move
either of them.

21 files changed:
MANIFEST
Makefile.SH
Porting/Maintainers.pl
ext/Cwd/lib/File/Spec.pm [moved from lib/File/Spec.pm with 100% similarity]
ext/Cwd/lib/File/Spec/Cygwin.pm [moved from lib/File/Spec/Cygwin.pm with 100% similarity]
ext/Cwd/lib/File/Spec/Epoc.pm [moved from lib/File/Spec/Epoc.pm with 100% similarity]
ext/Cwd/lib/File/Spec/Functions.pm [moved from lib/File/Spec/Functions.pm with 100% similarity]
ext/Cwd/lib/File/Spec/Mac.pm [moved from lib/File/Spec/Mac.pm with 100% similarity]
ext/Cwd/lib/File/Spec/OS2.pm [moved from lib/File/Spec/OS2.pm with 100% similarity]
ext/Cwd/lib/File/Spec/Unix.pm [moved from lib/File/Spec/Unix.pm with 100% similarity]
ext/Cwd/lib/File/Spec/VMS.pm [moved from lib/File/Spec/VMS.pm with 100% similarity]
ext/Cwd/lib/File/Spec/Win32.pm [moved from lib/File/Spec/Win32.pm with 100% similarity]
ext/Cwd/t/Functions.t [moved from lib/File/Spec/t/Functions.t with 100% similarity]
ext/Cwd/t/Spec.t [moved from lib/File/Spec/t/Spec.t with 100% similarity]
ext/Cwd/t/crossplatform.t [moved from lib/File/Spec/t/crossplatform.t with 100% similarity]
ext/Cwd/t/rel2abs2rel.t [moved from lib/File/Spec/t/rel2abs2rel.t with 100% similarity]
ext/Cwd/t/tmpdir.t [moved from lib/File/Spec/t/tmpdir.t with 100% similarity]
make_ext.pl
vms/descrip_mms.template
win32/Makefile
win32/makefile.mk

index f7354a7..d83a984 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
@@ -554,13 +554,27 @@ ext/CPAN/t/02nox.t                See if CPAN::Nox works
 ext/CPAN/t/03pkgs.t            See if CPAN::Version works
 ext/CPAN/t/10version.t         See if CPAN the module works
 ext/CPAN/t/11mirroredby.t              See if CPAN::Mirrored::By works
-ext/Cwd/Changes                        Cwd extension Changelog
-ext/Cwd/Cwd.pm                 Various cwd routines (getcwd, fastcwd, chdir)
-ext/Cwd/Cwd.xs                 Cwd extension external subroutines
-ext/Cwd/Makefile.PL            Cwd extension makefile maker
-ext/Cwd/t/cwd.t                        See if Cwd works
-ext/Cwd/t/taint.t              See if Cwd works with taint
-ext/Cwd/t/win32.t              See if Cwd works on Win32
+ext/Cwd/Changes                                Cwd extension Changelog
+ext/Cwd/Cwd.pm                         Various cwd routines (getcwd, fastcwd, chdir)
+ext/Cwd/Cwd.xs                         Cwd extension external subroutines
+ext/Cwd/lib/File/Spec/Cygwin.pm                portable operations on Cygwin file names
+ext/Cwd/lib/File/Spec/Epoc.pm          portable operations on EPOC file names
+ext/Cwd/lib/File/Spec/Functions.pm     Function interface to File::Spec object methods
+ext/Cwd/lib/File/Spec/Mac.pm           portable operations on Mac file names
+ext/Cwd/lib/File/Spec/OS2.pm           portable operations on OS2 file names
+ext/Cwd/lib/File/Spec.pm               portable operations on file names
+ext/Cwd/lib/File/Spec/Unix.pm          portable operations on Unix file names
+ext/Cwd/lib/File/Spec/VMS.pm           portable operations on VMS file names
+ext/Cwd/lib/File/Spec/Win32.pm         portable operations on Win32 and NetWare file names
+ext/Cwd/Makefile.PL                    Cwd extension makefile maker
+ext/Cwd/t/crossplatform.t              See if File::Spec works crossplatform
+ext/Cwd/t/cwd.t                                See if Cwd works
+ext/Cwd/t/Functions.t                  See if File::Spec::Functions works
+ext/Cwd/t/rel2abs2rel.t                        See if File::Spec->rel2abs/abs2rel works
+ext/Cwd/t/Spec.t                       See if File::Spec works
+ext/Cwd/t/taint.t                      See if Cwd works with taint
+ext/Cwd/t/tmpdir.t                     See if File::Spec->tmpdir() works
+ext/Cwd/t/win32.t                      See if Cwd works on Win32
 ext/Data-Dumper/Changes                Data pretty printer, changelog
 ext/Data-Dumper/Dumper.pm      Data pretty printer, module
 ext/Data-Dumper/Dumper.xs      Data pretty printer, externals
@@ -3396,20 +3410,6 @@ lib/File/Find/t/find.t           See if File::Find works
 lib/File/Find/t/taint.t                See if File::Find works with taint
 lib/FileHandle.pm              Backward-compatible front end to IO extension
 lib/FileHandle.t               See if FileHandle works
-lib/File/Spec/Cygwin.pm                portable operations on Cygwin file names
-lib/File/Spec/Epoc.pm          portable operations on EPOC file names
-lib/File/Spec/Functions.pm     Function interface to File::Spec object methods
-lib/File/Spec/Mac.pm           portable operations on Mac file names
-lib/File/Spec/OS2.pm           portable operations on OS2 file names
-lib/File/Spec.pm               portable operations on file names
-lib/File/Spec/t/crossplatform.t        See if File::Spec works crossplatform
-lib/File/Spec/t/Functions.t    See if File::Spec::Functions works
-lib/File/Spec/t/rel2abs2rel.t  See if File::Spec->rel2abs/abs2rel works
-lib/File/Spec/t/Spec.t         See if File::Spec works
-lib/File/Spec/t/tmpdir.t       See if File::Spec->tmpdir() works
-lib/File/Spec/Unix.pm          portable operations on Unix file names
-lib/File/Spec/VMS.pm           portable operations on VMS file names
-lib/File/Spec/Win32.pm         portable operations on Win32 and NetWare file names
 lib/File/stat.pm               By-name interface to Perl's builtin stat
 lib/File/stat.t                        See if File::stat works
 lib/filetest.pm                        For "use filetest"
index a049953..b29542a 100644 (file)
@@ -468,7 +468,7 @@ obj = $(ndt_obj) $(DTRACE_O)
 perltoc_pod_prereqs = extra.pods pod/perlapi.pod pod/perldelta.pod pod/perlintern.pod pod/perlmodlib.pod
 generated_pods = pod/perltoc.pod $(perltoc_pod_prereqs)
 
-Icwd = -Iext/Cwd
+Icwd = -Iext/Cwd -Iext/Cwd/lib
 
 lintflags = \
     -b \
index 18e3d4e..ca00b58 100755 (executable)
@@ -1120,9 +1120,7 @@ use File::Glob qw(:case);
        {
        'MAINTAINER'    => 'kwilliams',
        'DISTRIBUTION'  => 'SMUELLER/PathTools-3.30.tar.gz',
-       'FILES'         => q[lib/File/Spec.pm
-                            lib/File/Spec
-                            ext/Cwd
+       'FILES'         => q[ext/Cwd
                            ],
        # XXX note that the CPAN and blead Makefile.PL are totally
        # unrelated. The blead one is described as 'core-only'.
@@ -1130,13 +1128,6 @@ use File::Glob qw(:case);
        # to harmonize them?
        
        'EXCLUDED'      => [ qr{^t/lib/Test/} ],
-       'MAP'           => { 'lib/'      => 'lib/',
-                            ''          => 'ext/Cwd/',
-                            't/'        => 'lib/File/Spec/t/',
-                            't/cwd.t'   => 'ext/Cwd/t/cwd.t',
-                            't/taint.t' => 'ext/Cwd/t/taint.t',
-                            't/win32.t' => 'ext/Cwd/t/win32.t',
-                          },
        'CPAN'          => 1,
        'UPSTREAM'      => "cpan",
        },
similarity index 100%
rename from lib/File/Spec.pm
rename to ext/Cwd/lib/File/Spec.pm
similarity index 100%
rename from lib/File/Spec/t/Spec.t
rename to ext/Cwd/t/Spec.t
similarity index 100%
rename from lib/File/Spec/t/tmpdir.t
rename to ext/Cwd/t/tmpdir.t
index 9263945..373f739 100644 (file)
@@ -14,7 +14,7 @@ use Cwd;
 # After which, all nonxs modules are in lib, which was always sufficient to
 # allow miniperl to build everything else.
 
-my @toolchain = qw(ext/constant/lib ext/Cwd ext/ExtUtils-Command/lib
+my @toolchain = qw(ext/constant/lib ext/Cwd ext/Cwd/lib ext/ExtUtils-Command/lib
                   ext/ExtUtils-Install/lib ext/ExtUtils-MakeMaker/lib
                   ext/ExtUtils-Manifest/lib ext/Text-ParseWords/lib
        ext/File-Path/lib ext/AutoLoader/lib);
index 8a2f2d9..b4e1478 100644 (file)
@@ -241,7 +241,7 @@ NOOP = continue
 # Macros to invoke a copy of miniperl during the build.  Targets which
 # are built using these macros should depend on $(MINIPERL_EXE)
 MINIPERL_EXE = Sys$Disk:[]miniperl$(E)
-MINIPERL = MCR $(MINIPERL_EXE) "-I[.lib]" "-I[.ext.Cwd]"
+MINIPERL = MCR $(MINIPERL_EXE) "-I[.lib]" "-I[.ext.Cwd]" "-I[.ext.Cwd.lib]"
 MINIPERLQ = MCR $(MINIPERL_EXE) ""-I[.lib]""
 XSUBPP = $(MINIPERL) "-I[.ext.re]" [.lib.extutils]xsubpp -noprototypes
 # Macro to invoke a preexisting copy of Perl.  This is used to regenerate
index e3348f5..77ac9b2 100644 (file)
@@ -650,7 +650,7 @@ DEL         = del
 #
 # filenames given to xsubpp must have forward slashes (since it puts
 # full pathnames in #line strings)
-XSUBPP         = ..\$(MINIPERL) -I..\..\lib -I..\Cwd ..\$(EXTUTILSDIR)\xsubpp \
+XSUBPP         = ..\$(MINIPERL) -I..\..\lib -I..\Cwd -I..\Cwd\lib ..\$(EXTUTILSDIR)\xsubpp \
                -C++ -prototypes
 
 MICROCORE_SRC  =               \
@@ -829,7 +829,7 @@ CFG_VARS    =                                       \
                "LINK_FLAGS=$(LINK_FLAGS:"=\")"         \
                "optimize=$(OPTIMIZE:"=\")"
 
-ICWD = -I..\ext\Cwd
+ICWD = -I..\ext\Cwd -I..\ext\Cwd\lib
 
 #
 # Top targets
index 1498ea0..e683091 100644 (file)
@@ -811,7 +811,7 @@ NOOP                = @rem
 #
 # filenames given to xsubpp must have forward slashes (since it puts
 # full pathnames in #line strings)
-XSUBPP         = ..\$(MINIPERL) -I..\..\lib -I..\Cwd ..\$(EXTUTILSDIR)\xsubpp \
+XSUBPP         = ..\$(MINIPERL) -I..\..\lib -I..\Cwd -I..\Cwd\lib ..\$(EXTUTILSDIR)\xsubpp \
                -C++ -prototypes
 
 MICROCORE_SRC  =               \
@@ -1019,7 +1019,7 @@ ODBCCP32_DLL = $(SystemRoot)\system32\odbccp32.dll
 ODBCCP32_DLL = $(windir)\system\odbccp32.dll
 .ENDIF
 
-ICWD = -I..\ext\Cwd
+ICWD = -I..\ext\Cwd -I..\ext\Cwd\lib
 
 #
 # Top targets