summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2002-04-25 17:41:48 +0000
committerGurusamy Sarathy <gsar@cpan.org>2002-04-25 17:41:48 +0000
commit3a7016a88d877abd83ec249112ec5d7c6c2c696b (patch)
tree5f4eefc6df3a041021dd81454092cbfb50745d41 /win32
parent3ced61113f9085f589ca2d7c37e33eee7d8f51b9 (diff)
downloadperl-3a7016a88d877abd83ec249112ec5d7c6c2c696b.tar.gz
some extension builds need to find pl2bat.bat on windows
p4raw-id: //depot/perl@16162
Diffstat (limited to 'win32')
-rw-r--r--win32/buildext.pl9
1 files changed, 8 insertions, 1 deletions
diff --git a/win32/buildext.pl b/win32/buildext.pl
index a7cc19b5d0..7125753709 100644
--- a/win32/buildext.pl
+++ b/win32/buildext.pl
@@ -29,8 +29,15 @@ if ($perl =~ m#^\.\.#)
$perl = "$here\\$perl";
}
(my $topdir = $perl) =~ s/\\[^\\]+$//;
-$ENV{PATH} = "$topdir;$ENV{PATH}"; # so miniperl can find perlglob.exe
+# miniperl needs to find perlglob and pl2bat
+$ENV{PATH} = "$topdir;$topdir\\win32\\bin;$ENV{PATH}";
#print "PATH=$ENV{PATH}\n";
+my $pl2bat = "$topdir\\win32\\bin\\pl2bat";
+unless (-f "$pl2bat.bat") {
+ my @args = ($perl, ("$pl2bat.pl") x 2);
+ print "@args\n";
+ system(@args);
+}
my $make = shift;
$make .= " ".shift while $ARGV[0]=~/^-/;
my $dep = shift;