remove single line fail that prevents upgrading.
[MogileFS-Server.git] / makedocs.pl
bloba55e3c756cd0e2da5dac0111e3321643672756c3
1 #!/usr/bin/perl
3 use strict;
5 my $base = "/home/lj/htdocs/dev/mogdocs/";
6 my $pshb = Goats->new;
7 $pshb->batch_convert([qw(mogstored mogilefsd lib)], $base);
9 package Goats;
11 use strict;
12 use base 'Pod::Simple::HTMLBatch';
14 sub modnames2paths {
15 my ($self, $dirs) = @_;
17 my @files;
18 my @dirs;
20 foreach my $path (@{$dirs || []}) {
21 if (-f $path) {
22 push @files, $path;
23 } else {
24 push @dirs, $path;
28 my $m2p = $self->SUPER::modnames2paths(\@dirs);
30 foreach my $file (@files) {
31 my ($tail) = $file =~ m!([^/]+)\z!;
32 $m2p->{$tail} = $file;
35 # these are symlinks in brad's lib
36 foreach my $k (keys %$m2p) {
37 delete $m2p->{$k} if $k eq "Danga::blib::lib::Danga::Socket" || $k eq "Danga::Socket";
40 return $m2p;