From: Craig A. Berry Date: Fri, 1 Aug 2003 19:16:30 +0000 (-0500) Subject: argv case nit for VMS X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0e4142c9ef66ed123e5cb4a3557464b3ba4f2314;p=p5sagit%2Fp5-mst-13.2.git argv case nit for VMS From: "Craig A. Berry" Message-ID: <3F2B02DE.10207@mac.com> p4raw-id: //depot/perl@20438 --- diff --git a/ext/Encode/bin/enc2xs b/ext/Encode/bin/enc2xs index ae44c79..aff29e1 100644 --- a/ext/Encode/bin/enc2xs +++ b/ext/Encode/bin/enc2xs @@ -159,7 +159,7 @@ my $hname = $cname; my ($doC,$doEnc,$doUcm,$doPet); -if ($cname =~ /\.(c|xs)$/) +if ($cname =~ /\.(c|xs)$/i) # VMS may have upcased filenames with DECC$ARGV_PARSE_STYLE defined { $doC = 1; $dname =~ s/(\.[^\.]*)?$/.exh/; diff --git a/pod/pod2usage.PL b/pod/pod2usage.PL index 1c1296a..4828d64 100644 --- a/pod/pod2usage.PL +++ b/pod/pod2usage.PL @@ -15,9 +15,8 @@ use Cwd; # This is so that make depend always knows where to find PL derivatives. $origdir = cwd; chdir(dirname($0)); -($file = basename($0)) =~ s/\.PL$//; -$file =~ s/\.pl$// if ($^O eq 'os2' or $^O eq 'dos'); # "case-forgiving" -$file =~ s/\.pl$/.com/ if ($^O eq 'VMS'); # "case-forgiving" +($file = basename($0)) =~ s/\.PL$//i; +$file .= '.COM' if ($^O eq 'VMS'); open OUT,">$file" or die "Can't create $file: $!"; diff --git a/pod/podselect.PL b/pod/podselect.PL index b6b8c9b..3402b04 100644 --- a/pod/podselect.PL +++ b/pod/podselect.PL @@ -15,9 +15,8 @@ use Cwd; # This is so that make depend always knows where to find PL derivatives. $origdir = cwd; chdir(dirname($0)); -($file = basename($0)) =~ s/\.PL$//; -$file =~ s/\.pl$// if ($^O eq 'os2' or $^O eq 'dos'); # "case-forgiving" -$file =~ s/\.pl$/.com/ if ($^O eq 'VMS'); # "case-forgiving" +($file = basename($0)) =~ s/\.PL$//i; +$file .= '.COM' if ($^O eq 'VMS'); open OUT,">$file" or die "Can't create $file: $!";