From: Nicholas Clark <nick@ccl4.org>
Date: Sun, 13 Sep 2009 15:30:18 +0000 (+0100)
Subject: Move if from lib to ext.
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=00c2f0c97c1956309eb5a69763c48663bca3a767;p=p5sagit%2Fp5-mst-13.2.git

Move if from lib to ext.
---

diff --git a/MANIFEST b/MANIFEST
index 69504e6..765a02a 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -1336,6 +1336,8 @@ ext/I18N-LangTags/t/20_locales.t		See whether I18N::LangTags works
 ext/I18N-LangTags/t/50_super.t			See whether I18N::LangTags works
 ext/I18N-LangTags/t/55_supers_strict.t		See whether I18N::LangTags works
 ext/I18N-LangTags/t/80_all_env.t		See whether I18N::LangTags works
+ext/if/if.pm			For "use if"
+ext/if/t/if.t			Tests for "use if"
 ext/IO/ChangeLog		IO perl module change log
 ext/IO-Compress/Changes	IO::Compress
 ext/IO-Compress/examples/compress-zlib/filtdef	IO::Compress
@@ -3202,8 +3204,6 @@ lib/h2xs.t			See if h2xs produces expected lists of files
 lib/hostname.pl			Old hostname code
 lib/I18N/Collate.pm		Routines to do strxfrm-based collation
 lib/I18N/Collate.t		See if I18N::Collate works
-lib/if.pm			For "use if"
-lib/if.t			Tests for "use if"
 lib/importenv.pl		Perl routine to get environment into variables
 lib/integer.pm			For "use integer"
 lib/integer.t			For "use integer" testing
diff --git a/Porting/Maintainers.pl b/Porting/Maintainers.pl
index ede1085..ac35844 100755
--- a/Porting/Maintainers.pl
+++ b/Porting/Maintainers.pl
@@ -771,10 +771,7 @@ use File::Glob qw(:case);
 	{
 	'MAINTAINER'	=> 'ilyaz',
 	'DISTRIBUTION'	=> 'ILYAZ/modules/if-0.0401.tar.gz',
-	'FILES'		=> q[lib/if.{pm,t}],
-	'MAP'		=> { 't/' => 'lib/',
-			     ''   => 'lib/',
-			   },
+	'FILES'		=> q[ext/if],
 	'CPAN'		=> 1,
 	'UPSTREAM'	=> undef,
 	},
diff --git a/ext/.gitignore b/ext/.gitignore
index 2f4f259..56e1abe 100644
--- a/ext/.gitignore
+++ b/ext/.gitignore
@@ -46,6 +46,7 @@ ppport.h
 /Filter-Util-Call/Makefile.PL
 /Hash-Util-FieldHash/Makefile.PL
 /I18N-LangTags/Makefile.PL
+/if/Makefile.PL
 /IO-Zlib/Makefile.PL
 /IPC-Cmd/Makefile.PL
 /IPC-Open2/Makefile.PL
diff --git a/lib/if.pm b/ext/if/if.pm
similarity index 100%
rename from lib/if.pm
rename to ext/if/if.pm
diff --git a/lib/if.t b/ext/if/t/if.t
similarity index 94%
rename from lib/if.t
rename to ext/if/t/if.t
index d09de58..badab64 100644
--- a/lib/if.t
+++ b/ext/if/t/if.t
@@ -1,9 +1,5 @@
 #!./perl
 
-BEGIN {
-    chdir 't' and @INC = '../lib' if $ENV{PERL_CORE};
-}
-
 my $t = 1;
 print "1..5\n";
 sub ok {
diff --git a/lib/.gitignore b/lib/.gitignore
index 077806d..9980d73 100644
--- a/lib/.gitignore
+++ b/lib/.gitignore
@@ -353,6 +353,7 @@
 /encoding
 /encoding.pm
 /fields.pm
+/if.pm
 /lib.pm
 /ops.pm
 /parent.pm