Compress::Zlib's Makefile.PL shouldn't create .bak files when building the core
Rafael Garcia-Suarez [Wed, 5 Oct 2005 21:26:57 +0000 (21:26 +0000)]
p4raw-id: //depot/perl@25699

ext/Compress/Zlib/Makefile.PL

index 1088436..9206db6 100755 (executable)
@@ -73,7 +73,7 @@ my @files = ('Zlib.pm', 't/ZlibTestUtils.pm',
              glob("lib/File/*.pm"),
              grep(!/\.bak$/,  glob("examples/*"))) ;
 
-UpDowngrade(@files) unless $ENV{PERL_CORE};
+UpDowngrade(@files) unless grep { $_ eq 'PERL_CORE=1' } @ARGV;
 
 WriteMakefile( 
        NAME            => 'Compress::Zlib',