Change 16162 by gsar@zinc-gsar on 2002/04/25 17:41:48
some extension builds need to find pl2bat.bat on windows
Affected files ...
.... //depot/perl/win32/buildext.pl#9 edit
Differences ...
==== //depot/perl/win32/buildext.pl#9 (text) ====
Index: perl/win32/buildext.pl
--- perl/win32/buildext.pl.~1~ Thu Apr 25 11:45:05 2002
+++ perl/win32/buildext.pl Thu Apr 25 11:45:05 2002
@@ -29,8 +29,15 @@
$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;
End of Patch.