This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Compress::Zlib's Makefile.PL shouldn't create .bak files when building the core
[perl5.git] / 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',