Changeset 1263 in ProjectBuilder for pbconf/devel/website/pbinit


Ignore:
Timestamp:
Mar 12, 2011, 3:34:43 PM (13 years ago)
Author:
Bruno Cornec
Message:
  • list of docs for .1, .3, .5 entries are now dynamically generated
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pbconf/devel/website/pbinit

    r1227 r1263  
    6666# call filter_file here
    6767my $ptr = pb_get_filters($pb->{'pkg'});
     68open(MANHTML,"> docs/pb_man_pages.html") || die "Unable to open docs/pb_man_pages.html";
     69print MANHTML " <ul>\n";
    6870chdir("tmp");
    69 #open(MANHTML,"> docs/pb_man_pages.html") || die "Unable to open docs/pb_man_pages.html";
    7071foreach my $f (<*>) {
     72    print MANHTML "     <li>$f</li>\n";
     73    print MANHTML "     <ul>\n";
    7174    pb_log(0,"\nProcessing $f\n");
    7275    pb_log(0,"==========================\n");
     
    9396            "--infile=$f",
    9497            "--outfile=../docs/$f.$ext.html");
     98    print MANHTML "         <li>A <a href=\"/docs/$f.$ext.html\" target=\"_blank\">HTML</a></li>\n";
    9599    # generate text pages
    96100    pb_log(0,"Generating text pages\n");
    97101    $parser = Pod::Text->new (sentence => 0, width => 78);
    98102    $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";
    99104    # generate ps pages
    100105    #system("groff -Tps -mandoc $f.$ext > ../docs/$f.$ext.ps");
    101106    # Use noredir here because is doesn't redirect to the right place without
    102107    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";
    103109    # generate pdf pages
    104110    pb_system("ps2pdf ../docs/$f.$ext.ps","Generating PDF pages");
    105111    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";
    107114}
     115print MANHTML " </ul>\n";
     116close(MANHTML);
    108117chdir("..");
    109118pb_rm_rf("tmp");
Note: See TracChangeset for help on using the changeset viewer.