diff options
author | Laszlo Molnar <laszlo.molnar@eth.ericsson.se> | 1998-06-24 02:37:01 +0200 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-06-28 18:35:23 +0000 |
commit | 87944a4aeab598c4b9580b4a7fc7acaac00ae223 (patch) | |
tree | 40f3446e64b07169ce92793319ce91000f7903e3 /pod/pod2text.PL | |
parent | c05f8f3dab4277e4be85d6b86d07d49c10f8c216 (diff) | |
download | perl-87944a4aeab598c4b9580b4a7fc7acaac00ae223.tar.gz |
Re: [PATCH for _66] Makefile.SH problem on dos/djgpp
Message-ID: <19980624003701.C161@cdata.tvnet.hu>
p4raw-id: //depot/perl@1230
Diffstat (limited to 'pod/pod2text.PL')
-rw-r--r-- | pod/pod2text.PL | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pod/pod2text.PL b/pod/pod2text.PL index da645b554e..94516c3997 100644 --- a/pod/pod2text.PL +++ b/pod/pod2text.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,6 +13,7 @@ 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, '.PL'); $file .= '.com' if $^O eq 'VMS'; @@ -46,3 +48,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; |