From 933fea7ffa6c794a1a2b8e713eb2b30851598bc8 Mon Sep 17 00:00:00 2001 From: Gurusamy Sarathy Date: Fri, 10 Sep 1999 17:49:35 +0000 Subject: dos-djgpp update (from Laszlo Molnar ) p4raw-id: //depot/perl@4121 --- pod/pod2usage.PL | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pod/pod2usage.PL') diff --git a/pod/pod2usage.PL b/pod/pod2usage.PL index fdaa955c69..adf49bd69d 100644 --- a/pod/pod2usage.PL +++ b/pod/pod2usage.PL @@ -2,6 +2,7 @@ use Config; use File::Basename qw(&basename &dirname); +use Cwd; # List explicitly here the variables you want Configure to # generate. Metaconfig only looks for shell variables, so you @@ -12,10 +13,11 @@ use File::Basename qw(&basename &dirname); # This forces PL files to create target in same directory as PL file. # 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 'VMS' or $^O eq 'os2'); # "case-forgiving" + if ($^O eq 'VMS' or $^O eq 'os2' or $^O eq 'dos'); # "case-forgiving" open OUT,">$file" or die "Can't create $file: $!"; @@ -177,3 +179,4 @@ pod2usage(\%usage); close OUT or die "Can't close $file: $!"; chmod 0755, $file or die "Can't reset permissions for $file: $!\n"; exec("$Config{'eunicefix'} $file") if $Config{'eunicefix'} ne ':'; +chdir $origdir; -- cgit v1.2.1