From 8a5546a1774bc5278c3b557b5a3cac8da26aa636 Mon Sep 17 00:00:00 2001 From: Andy Dougherty Date: Thu, 11 Jun 1998 08:27:15 -0400 Subject: Re: [PATCH for _66] Makefile.SH problem on dos/djgpp Message-Id: p4raw-id: //depot/perl@1122 --- utils/perlbug.PL | 3 +++ 1 file changed, 3 insertions(+) (limited to 'utils/perlbug.PL') diff --git a/utils/perlbug.PL b/utils/perlbug.PL index 4685e42af2..0a53240df9 100644 --- a/utils/perlbug.PL +++ b/utils/perlbug.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 @@ -13,6 +14,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'; @@ -1060,4 +1062,5 @@ None known (guess what must have been used to report them?) 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