This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
resolve problems with tools_other() and htmlifypods
authorAbe Timmerman <abe@ztreet.demon.nl>
Mon, 31 Dec 2001 03:55:27 +0000 (04:55 +0100)
committerJarkko Hietaniemi <jhi@iki.fi>
Mon, 31 Dec 2001 04:07:35 +0000 (04:07 +0000)
Message-ID: <u0kv2ussgukot09trgjkosn8uootjkcebv@4ax.com>

p4raw-id: //depot/perl@13972

lib/ExtUtils/t/MM_Win32.t

index 9ffdd54..7753926 100644 (file)
@@ -254,12 +254,13 @@ unlink "${script_name}$script_ext" if -f "${script_name}$script_ext";
         
     my $bin_sh = ( $Config{make} =~ /^dmake/i 
                ? "" : ($Config{sh} || 'cmd /c') . "\n" );
+    $bin_sh = "SHELL = $bin_sh" if $bin_sh;
 
     my $tools = join "\n", map "$_ = $mm_w32->{ $_ }"
        => qw(CHMOD CP LD MV NOOP RM_F RM_RF TEST_F TOUCH UMASK_NULL DEV_NULL);
 
     like( $mm_w32->tools_other(),
-          qr/^SHELL = \Q$bin_sh$tools/m,
+          qr/^\Q$bin_sh$tools/m,
           'tools_other()' );
 };
 
@@ -275,8 +276,11 @@ unlink "${script_name}$script_ext" if -f "${script_name}$script_ext";
     }, 'MM';
     my $pods = join " \\\n\t", keys %{$mm_w32->{HTMLLIBPODS}}, 
                                keys %{$mm_w32->{HTMLSCRIPTPODS}};
+
     my $pod2html_exe = $mm_w32->catfile($Config{scriptdirexp},'pod2html');
-    $pod2html_exe = $mm_w32->perl_script( $pod2html_exe );
+    unless ( $pod2html_exe = $mm_w32->perl_script( $pod2html_exe ) ) {
+        $pod2html_exe = '-S pod2html';
+    }
 
     like( $mm_w32->htmlifypods(),
           qr/^POD2HTML_EXE\ =\ \Q$pod2html_exe\E\n