Initial import into CVS
[freeside.git] / bin / pod2x
1 #!/usr/bin/perl
2
3 #use Pod::Text;
4 #$Pod::Text::termcap=1;
5
6 my $site_perl = "./site_perl";
7 #my $catman = "./catman";
8 my $catman = "./htdocs/docs/man";
9 #my $html = "./htdocs/docs/man";
10
11 $|=1;
12
13 die "Can't find $site_perl and $catman"
14   unless [ -d $site_perl ] && [ -d $catman ] && [ -d $html ];
15
16 foreach my $file (glob("$site_perl/*.pm")) {
17   $file =~ /\/([\w\-]+)\.pm$/ or die "oops file $file";
18   my $name = $1;
19   print "$name\n"; 
20   system "pod2text $file >$catman/$name.txt"; 
21 #  system "pod2html --podpath=$site_perl $file >$html/$name.html";
22 #  system "pod2html $file >$html/$name.html";
23 }