4 #$Pod::Text::termcap=1;
6 my $site_perl = "./FS";
7 #my $catman = "./catman";
8 #my $catman = "./htdocs/docs/man";
9 my $html = "./htdocs/docs/man";
13 die "Can't find $site_perl and $catman"
14 unless [ -d $site_perl ] && [ -d $catman ] && [ -d $html ];
17 glob("$site_perl/*.pm"),
18 glob("$site_perl/*/*.pm"),
19 glob("$site_perl/*/*/*.pm")
21 #$file =~ /\/([\w\-]+)\.pm$/ or die "oops file $file";
22 $file =~ /$site_perl\/(.*)\.pm$/ or die "oops file $file";
25 my $htmlroot = join('/', map '..',1..(scalar($file =~ tr/\///)-2)) || '.';
26 # system "pod2text $file >$catman/$name.txt";
27 system "pod2html --podroot=$site_perl --podpath=./FS:./FS/UI:. --norecurse --htmlroot=$htmlroot $file >$html/$name.html";
28 # system "pod2html $file >$html/$name.html";