summaryrefslogtreecommitdiff
path: root/pod/podchecker.PL
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-09-10 17:49:35 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-09-10 17:49:35 +0000
commit933fea7ffa6c794a1a2b8e713eb2b30851598bc8 (patch)
treef90e88b4e5daecb28dda82759223d272f14525dc /pod/podchecker.PL
parent54a137f5a208ce9a432cfbce29ffe72d9e61bfe9 (diff)
downloadperl-933fea7ffa6c794a1a2b8e713eb2b30851598bc8.tar.gz
dos-djgpp update (from Laszlo Molnar <laszlo.molnar@eth.ericsson.se>)
p4raw-id: //depot/perl@4121
Diffstat (limited to 'pod/podchecker.PL')
-rw-r--r--pod/podchecker.PL5
1 files changed, 4 insertions, 1 deletions
diff --git a/pod/podchecker.PL b/pod/podchecker.PL
index 1ca0d79eda..0d31763879 100644
--- a/pod/podchecker.PL
+++ b/pod/podchecker.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: $!";
@@ -128,3 +130,4 @@ if(@ARGV) {
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;