- Timestamp:
- Mar 12, 2011, 3:34:43 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pbconf/devel/website/pbinit
r1227 r1263 66 66 # call filter_file here 67 67 my $ptr = pb_get_filters($pb->{'pkg'}); 68 open(MANHTML,"> docs/pb_man_pages.html") || die "Unable to open docs/pb_man_pages.html"; 69 print MANHTML " <ul>\n"; 68 70 chdir("tmp"); 69 #open(MANHTML,"> docs/pb_man_pages.html") || die "Unable to open docs/pb_man_pages.html";70 71 foreach my $f (<*>) { 72 print MANHTML " <li>$f</li>\n"; 73 print MANHTML " <ul>\n"; 71 74 pb_log(0,"\nProcessing $f\n"); 72 75 pb_log(0,"==========================\n"); … … 93 96 "--infile=$f", 94 97 "--outfile=../docs/$f.$ext.html"); 98 print MANHTML " <li>A <a href=\"/docs/$f.$ext.html\" target=\"_blank\">HTML</a></li>\n"; 95 99 # generate text pages 96 100 pb_log(0,"Generating text pages\n"); 97 101 $parser = Pod::Text->new (sentence => 0, width => 78); 98 102 $parser->parse_from_file ("$f","../docs/$f.$ext.txt"); 103 print MANHTML " <li>A <a href=\"/docs/$f.$ext.txt\" target=\"_blank\">Text</a></li>\n"; 99 104 # generate ps pages 100 105 #system("groff -Tps -mandoc $f.$ext > ../docs/$f.$ext.ps"); 101 106 # Use noredir here because is doesn't redirect to the right place without 102 107 pb_system("groff -Tps -mandoc $f.$ext > ../docs/$f.$ext.ps","Generating Postscript pages","noredir"); 108 print MANHTML " <li>A <a href=\"/docs/$f.$ext.ps\" target=\"_blank\">PostScript</a></li>\n"; 103 109 # generate pdf pages 104 110 pb_system("ps2pdf ../docs/$f.$ext.ps","Generating PDF pages"); 105 111 move("$f.$ext.pdf","../docs/$f.$ext.pdf"); 106 112 print MANHTML " <li>A <a href=\"/docs/$f.$ext.pdf\" target=\"_blank\">PDF</a></li>\n"; 113 print MANHTML " </ul>\n"; 107 114 } 115 print MANHTML " </ul>\n"; 116 close(MANHTML); 108 117 chdir(".."); 109 118 pb_rm_rf("tmp");
Note:
See TracChangeset
for help on using the changeset viewer.