diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2002-04-25 17:41:48 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2002-04-25 17:41:48 +0000 |
commit | 3a7016a88d877abd83ec249112ec5d7c6c2c696b (patch) | |
tree | 5f4eefc6df3a041021dd81454092cbfb50745d41 /win32 | |
parent | 3ced61113f9085f589ca2d7c37e33eee7d8f51b9 (diff) | |
download | perl-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.pl | 9 |
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; |