From: Nick Ing-Simmons Date: Fri, 13 Jul 2001 09:18:51 +0000 (+0000) Subject: Win32/distclean.bat - Down-case all MANIFEST and File::Find results so X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=55bb78da97697d6bd0ef78d62d418ae23d1eaf2b;p=p5sagit%2Fp5-mst-13.2.git Win32/distclean.bat - Down-case all MANIFEST and File::Find results so to avoid /unicode vs /Unicode issues. p4raw-id: //depot/perlio@11346 --- diff --git a/win32/distclean.bat b/win32/distclean.bat index f99b92e..18b94b0 100755 --- a/win32/distclean.bat +++ b/win32/distclean.bat @@ -6,12 +6,18 @@ use strict; use File::Find; use ExtUtils::Manifest qw(maniread); my $files = maniread(); +my %files; +foreach (keys %$files) + { + $files{lc($_)} = $files->{$_}; + } + my @dead; find(sub { -return if -d $_; -my $name = $File::Find::name; -$name =~ s#^\./##; - unless (exists $files->{$name}) + return if -d $_; + my $name = $File::Find::name; + $name =~ s#^\./##; + unless (exists $files{lc($name)}) { # print "new $name\n"; push(@dead,$name);