Commits

Toby Inkster committed 20e9576

oops

  • Participants
  • Parent commits c330b7d
  • Tags 0.000_01

Comments (0)

Files changed (7)

devel.dists/Platform-Unix/Makefile.PL

 use ExtUtils::MakeMaker;
 
 die "Requires Unix!\n"
-	unless ||($^O =~ /^(Linux|.*BSD.*|.*UNIX.*|Darwin|Solaris|SunOS|Haiku|Next|dec_osf|svr4|sco_sv|unicos.*|.*x)$/i);
+	unless $ENV{PERL_PLATFORM_OVERRIDE}||($^O =~ /^(Linux|.*BSD.*|.*UNIX.*|Darwin|Solaris|SunOS|Haiku|Next|dec_osf|svr4|sco_sv|unicos.*|.*x)$/i);
 
 WriteMakefile(
 	NAME              => 'Platform::Unix',

devel.dists/Platform-Unix/lib/Platform/Unix.pm

 package Platform::Unix;
 $Platform::Unix::AUTHORITY = 'cpan:TOBYINK';
 $Platform::Unix::VERSION   = '0.000_01';
-||($^O =~ /^(Linux|.*BSD.*|.*UNIX.*|Darwin|Solaris|SunOS|Haiku|Next|dec_osf|svr4|sco_sv|unicos.*|.*x)$/i);
+$ENV{PERL_PLATFORM_OVERRIDE}||($^O =~ /^(Linux|.*BSD.*|.*UNIX.*|Darwin|Solaris|SunOS|Haiku|Next|dec_osf|svr4|sco_sv|unicos.*|.*x)$/i);
 
 __END__
 

devel.dists/Platform-Unix/t/01-platform.t

 use Test::More tests => 1;
-ok( ||($^O =~ /^(Linux|.*BSD.*|.*UNIX.*|Darwin|Solaris|SunOS|Haiku|Next|dec_osf|svr4|sco_sv|unicos.*|.*x)$/i) );
+ok( $ENV{PERL_PLATFORM_OVERRIDE}||($^O =~ /^(Linux|.*BSD.*|.*UNIX.*|Darwin|Solaris|SunOS|Haiku|Next|dec_osf|svr4|sco_sv|unicos.*|.*x)$/i) );

devel.dists/Platform-Windows/Makefile.PL

 use ExtUtils::MakeMaker;
 
 die "Requires Windows!\n"
-	unless ||($^O =~ /^(MSWin32|cygwin)$/i);
+	unless $ENV{PERL_PLATFORM_OVERRIDE}||($^O =~ /^(MSWin32|cygwin)$/i);
 
 WriteMakefile(
 	NAME              => 'Platform::Windows',

devel.dists/Platform-Windows/lib/Platform/Windows.pm

 package Platform::Windows;
 $Platform::Windows::AUTHORITY = 'cpan:TOBYINK';
 $Platform::Windows::VERSION   = '0.000_01';
-||($^O =~ /^(MSWin32|cygwin)$/i);
+$ENV{PERL_PLATFORM_OVERRIDE}||($^O =~ /^(MSWin32|cygwin)$/i);
 
 __END__
 

devel.dists/Platform-Windows/t/01-platform.t

 use Test::More tests => 1;
-ok( ||($^O =~ /^(MSWin32|cygwin)$/i) );
+ok( $ENV{PERL_PLATFORM_OVERRIDE}||($^O =~ /^(MSWin32|cygwin)$/i) );

devel.dists/make-dists.pl

 			%{ j($config_file) },
 		);
 		
-		$o{test} = "$ENV{PERL_PLATFORM_OVERRIDE}||($o{test})";
+		$o{test} = "\$ENV{PERL_PLATFORM_OVERRIDE}||($o{test})";
 		
 		make_dist(\%o);
 	}