diff options
author | Nicholas Clark <nick@ccl4.org> | 2009-09-09 16:41:28 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2009-09-09 16:41:28 +0100 |
commit | ca2a24a91ea0f76bbbb7e7309638f99ade8d37e5 (patch) | |
tree | bbfd5baf2eea27192acdd827fa56e5226d4718c4 | |
parent | c584a96ef5d541fd119f21c2c77f6ffe2b2c0370 (diff) | |
download | perl-ca2a24a91ea0f76bbbb7e7309638f99ade8d37e5.tar.gz |
Move ExtUtils::Command from lib to ext.
-rw-r--r-- | MANIFEST | 7 | ||||
-rwxr-xr-x | Porting/Maintainers.pl | 8 | ||||
-rw-r--r-- | ext/ExtUtils-Command/lib/ExtUtils/Command.pm (renamed from lib/ExtUtils/Command.pm) | 0 | ||||
-rw-r--r-- | ext/ExtUtils-Command/t/cp.t (renamed from lib/ExtUtils/t/cp.t) | 8 | ||||
-rw-r--r-- | ext/ExtUtils-Command/t/eu_command.t (renamed from lib/ExtUtils/t/eu_command.t) | 8 | ||||
-rw-r--r-- | ext/ExtUtils-Command/t/lib/TieOut.pm | 28 | ||||
-rw-r--r-- | make_ext.pl | 2 |
7 files changed, 36 insertions, 25 deletions
@@ -1039,6 +1039,10 @@ ext/Errno/ChangeLog Errno changes ext/Errno/Errno_pm.PL Errno perl module create script ext/Errno/Makefile.PL Errno extension makefile writer ext/Errno/t/Errno.t See if Errno works +ext/ExtUtils-Command/lib/ExtUtils/Command.pm Utilities for Make on non-UNIX platforms +ext/ExtUtils-Command/t/cp.t See if ExtUtils::Command works +ext/ExtUtils-Command/t/eu_command.t See if ExtUtils::Command works +ext/ExtUtils-Command/t/lib/TieOut.pm Testing library to capture prints ext/Fcntl/Fcntl.pm Fcntl extension Perl module ext/Fcntl/Fcntl.xs Fcntl extension external subroutines ext/Fcntl/Makefile.PL Fcntl extension makefile writer @@ -2553,7 +2557,6 @@ lib/ExtUtils/CBuilder/t/02-link.t tests for ExtUtils::CBuilder lib/ExtUtils/Changes MakeMaker change log lib/ExtUtils/Changes_EU-Install ExtUtils-Install change log lib/ExtUtils/Command/MM.pm Calling MM functions from the cmd line -lib/ExtUtils/Command.pm Utilities for Make on non-UNIX platforms lib/ExtUtils/Constant/Base.pm generate XS code to import C header constants lib/ExtUtils/Constant.pm generate XS code to import C header constants lib/ExtUtils/Constant/ProxySubs.pm generate XS code for proxy constants @@ -2612,11 +2615,9 @@ lib/ExtUtils/t/can_write_dir.t Does the _can_write_dir function of ExtUtils::Ins lib/ExtUtils/t/cd.t Test to see cd works lib/ExtUtils/t/config.t Test ExtUtils::MakeMaker::Config lib/ExtUtils/t/Constant.t See if ExtUtils::Constant works -lib/ExtUtils/t/cp.t See if ExtUtils::Command works lib/ExtUtils/t/dir_target.t Verify if dir_target() is supported lib/ExtUtils/t/Embed.t See if ExtUtils::Embed and embedding works lib/ExtUtils/testlib.pm Fixes up @INC to use just-built extension -lib/ExtUtils/t/eu_command.t See if ExtUtils::Command works lib/ExtUtils/t/FIRST_MAKEFILE.t See if FIRST_MAKEFILE works lib/ExtUtils/t/fixin.t See if ExtUtils::MakeMaker works lib/ExtUtils/t/fix_libs.t Test for ExtUtils::MakeMaker diff --git a/Porting/Maintainers.pl b/Porting/Maintainers.pl index 9e1ad3f57c..eb629203d4 100755 --- a/Porting/Maintainers.pl +++ b/Porting/Maintainers.pl @@ -573,18 +573,12 @@ use File::Glob qw(:case); { 'MAINTAINER' => 'rkobes', 'DISTRIBUTION' => 'RKOBES/ExtUtils-Command-1.16.tar.gz', - 'FILES' => q[lib/ExtUtils/Command.pm - lib/ExtUtils/t/{cp,eu_command}.t - ], + 'FILES' => q[ext/ExtUtils-Command], 'EXCLUDED' => [ qw{ t/shell_command.t t/shell_exit.t - t/lib/TieOut.pm lib/Shell/Command.pm }, ], - 'MAP' => { 't/' => 'lib/ExtUtils/t/', - 'lib/' => 'lib/', - }, 'CPAN' => 1, 'UPSTREAM' => undef, }, diff --git a/lib/ExtUtils/Command.pm b/ext/ExtUtils-Command/lib/ExtUtils/Command.pm index b5632ff06d..b5632ff06d 100644 --- a/lib/ExtUtils/Command.pm +++ b/ext/ExtUtils-Command/lib/ExtUtils/Command.pm diff --git a/lib/ExtUtils/t/cp.t b/ext/ExtUtils-Command/t/cp.t index 3d7ba6e288..0b899bf876 100644 --- a/lib/ExtUtils/t/cp.t +++ b/ext/ExtUtils-Command/t/cp.t @@ -1,13 +1,7 @@ #!/usr/bin/perl -w BEGIN { - if( $ENV{PERL_CORE} ) { - chdir 't'; - @INC = ('../lib', 'lib/'); - } - else { - unshift @INC, 't/lib/'; - } + unshift @INC, 't/lib/'; } chdir 't'; diff --git a/lib/ExtUtils/t/eu_command.t b/ext/ExtUtils-Command/t/eu_command.t index 99e45aa959..71ec8c2b5f 100644 --- a/lib/ExtUtils/t/eu_command.t +++ b/ext/ExtUtils-Command/t/eu_command.t @@ -1,13 +1,7 @@ #!/usr/bin/perl -w BEGIN { - if( $ENV{PERL_CORE} ) { - chdir 't'; - @INC = ('../lib', 'lib/'); - } - else { - unshift @INC, 't/lib/'; - } + unshift @INC, 't/lib/'; } chdir 't'; diff --git a/ext/ExtUtils-Command/t/lib/TieOut.pm b/ext/ExtUtils-Command/t/lib/TieOut.pm new file mode 100644 index 0000000000..0a0f5f9cfe --- /dev/null +++ b/ext/ExtUtils-Command/t/lib/TieOut.pm @@ -0,0 +1,28 @@ +package TieOut; + +sub TIEHANDLE { + my $scalar = ''; + bless( \$scalar, $_[0]); +} + +sub PRINT { + my $self = shift; + $$self .= join('', @_); +} + +sub PRINTF { + my $self = shift; + my $fmt = shift; + $$self .= sprintf $fmt, @_; +} + +sub FILENO {} + +sub read { + my $self = shift; + my $data = $$self; + $$self = ''; + return $data; +} + +1; diff --git a/make_ext.pl b/make_ext.pl index 691f7b14b9..9b32065e40 100644 --- a/make_ext.pl +++ b/make_ext.pl @@ -4,7 +4,7 @@ use warnings; use Config; use Cwd; -my @toolchain = qw(ext/constant/lib); +my @toolchain = qw(ext/constant/lib ext/ExtUtils-Command/lib); # This script acts as a simple interface for building extensions. |