Changeset 14404

Show
Ignore:
Timestamp:
10/18/06 01:01:35 (2 years ago)
Author:
lanny
Message:

[docs/Perl6/Makefile.PL]
* Work around a bug in ExtUtils::MM_Any::manifypod_target()
* Hopefully this will fix nmake-1.5 issues on Win32.
* Need to report this back to ExtUtils?.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • docs/Perl6/Makefile.PL

    r12367 r14404  
    1616 
    1717WritePugs  (5); 
     18 
     19# Work around a bug in ExtUtils::MM_Any::manifypods_target(). 
     20sub MY::manifypods_target { 
     21    my($self) = shift; 
     22 
     23    my $man1pods      = ''; 
     24    my $man3pods      = ''; 
     25    my $dependencies  = ''; 
     26 
     27    # populate manXpods & dependencies: 
     28    foreach my $name (keys %{$self->{MAN1PODS}}) { 
     29        $dependencies .= " \\\n\t$name"; 
     30    } 
     31 
     32    foreach my $name (keys %{$self->{MAN3PODS}}) { 
     33        $dependencies .= " \\\n\t$name" 
     34    } 
     35 
     36    my $manify = <<END; 
     37manifypods : pure_all $dependencies 
     38END 
     39 
     40    my @man_cmds; 
     41    foreach my $section (qw(1 3)) { 
     42        my $pods = $self->{"MAN${section}PODS"}; 
     43        push @man_cmds, $self->split_command(<<CMD, %$pods); 
     44        \$(NOECHO) \$(POD2MAN) --section=$section --perm_rw=\$(PERM_RW) 
     45CMD 
     46    } 
     47 
     48    $manify .= "\t\$(NOECHO) \$(NOOP)\n" unless @man_cmds; 
     49    $manify .= join '', map { "$_\n" } @man_cmds; 
     50 
     51    return $manify; 
     52}