diff options
author | Charles Bailey <bailey@newman.upenn.edu> | 1999-09-29 02:21:31 +0000 |
---|---|---|
committer | bailey <bailey@newman.upenn.edu> | 1999-09-29 02:21:31 +0000 |
commit | c529f79d594c53d3968d464c57ac24a21137dd09 (patch) | |
tree | 1a391a0c329976fd8ae88a240da31051b926c681 /pod/podselect.PL | |
parent | 424a8fe95d507998fe8750793da1b35bd6d7074b (diff) | |
download | perl-c529f79d594c53d3968d464c57ac24a21137dd09.tar.gz |
resync with mainline
p4raw-id: //depot/vmsperl@4249
Diffstat (limited to 'pod/podselect.PL')
-rw-r--r-- | pod/podselect.PL | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pod/podselect.PL b/pod/podselect.PL index 0df830406e..a76f6a045f 100644 --- a/pod/podselect.PL +++ b/pod/podselect.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: $!"; @@ -140,3 +142,4 @@ else { 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; |