summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2001-07-13 09:18:51 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2001-07-13 09:18:51 +0000
commit55bb78da97697d6bd0ef78d62d418ae23d1eaf2b (patch)
tree24d8743c51f3d790d4148fc87d4ea9ff1d5b57dc /win32
parent6f19801bde5f6175a1b7ed9b1b87cdae036fd9bf (diff)
downloadperl-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-xwin32/distclean.bat14
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);