diff options
author | Nick Ing-Simmons <nik@tiuk.ti.com> | 2001-07-13 09:18:51 +0000 |
---|---|---|
committer | Nick Ing-Simmons <nik@tiuk.ti.com> | 2001-07-13 09:18:51 +0000 |
commit | 55bb78da97697d6bd0ef78d62d418ae23d1eaf2b (patch) | |
tree | 24d8743c51f3d790d4148fc87d4ea9ff1d5b57dc /win32 | |
parent | 6f19801bde5f6175a1b7ed9b1b87cdae036fd9bf (diff) | |
download | perl-55bb78da97697d6bd0ef78d62d418ae23d1eaf2b.tar.gz |
Win32/distclean.bat - Down-case all MANIFEST and File::Find results so
to avoid /unicode vs /Unicode issues.
p4raw-id: //depot/perlio@11346
Diffstat (limited to 'win32')
-rwxr-xr-x | win32/distclean.bat | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/win32/distclean.bat b/win32/distclean.bat index f99b92e4ff..18b94b0cec 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); |