Debian Codegraph @

doc/make_html_commandindex

raw
1 #!/usr/local/bin/perl
2 # Create HTML index from index of pre-installed info page.
3 # Bug: the @code{} items get lost, too bad.
4 open(IN, "info -f ./gri.info 'Index of Commands' |")
5 || die "Cannot get 'Index of Commands'\n";
6 # Following is kludge, really
7 print "
8 \@c HTML <!-- newfile CommandIndex.html \"Gri: Command Index\" \"Command Index\" -->
9 \@c HTML <h1>Command index</h1>
10 \@node Index of Commands, Index of Builtins, License, Top
11
12 \@c HTML <b>Navigation</b>:
13 \@c HTML <a href=\"#BuiltinIndex\">next</a>,
14 \@c HTML <a href=\"#ConceptIndex\">previous</a>,
15 \@c HTML <a href=\"#Top\">parent</a>.
16
17 \@itemize \@bullet
18 ";
19
20 while(<IN>) {
21 next if (/\*\s*Menu:\s*$/);
22 if (/\* .*\./) {
23 s/\* //;
24 s/\.$//;
25 s/:\s*/\n ... \@xref{/;
26 s/$/}./;
27 print "\@item\n $_";
28 }
29 }
30 print "\n\@end itemize\n";
31 #print "\n\@c HTML Dan Kelley\n";