diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-07-26 12:43:02 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-07-26 12:43:02 +0000 |
commit | 3b5ca523bc72bce199abcb9d5ec13af5913a4d2d (patch) | |
tree | 7c65f45ab947422d1c0c9bfcf5471d1b92e240e1 /pod/podchecker.PL | |
parent | eda383f202c9baaca6fdea3cf178e40686e8a3bb (diff) | |
download | perl-3b5ca523bc72bce199abcb9d5ec13af5913a4d2d.tar.gz |
integrate cfgperl contents into mainline
p4raw-id: //depot/perl@3774
Diffstat (limited to 'pod/podchecker.PL')
-rw-r--r-- | pod/podchecker.PL | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pod/podchecker.PL b/pod/podchecker.PL index 24dcfb88c2..1ca0d79eda 100644 --- a/pod/podchecker.PL +++ b/pod/podchecker.PL @@ -10,11 +10,13 @@ use File::Basename qw(&basename &dirname); # $startperl # to ensure Configure will look for $Config{startperl}. -$file = basename($0); -$file =~ s/\.PL$//i; -$file .= '.com' if $^O eq 'VMS'; +# 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. +chdir(dirname($0)); +($file = basename($0)) =~ s/\.PL$//; +$file =~ s/\.pl$// + if ($^O eq 'VMS' or $^O eq 'os2'); # "case-forgiving" -chdir("pod") or die "Can't chdir to pod: $!"; open OUT,">$file" or die "Can't create $file: $!"; print "Extracting $file (with variable substitutions)\n"; |