Debian Codegraph @

doc/make_html_builtinindex

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 Builtins' |")
5 || die "Cannot get 'Index of Builtins'\n";
6
7 print "
8 \@c HTML <!-- newfile BuiltinIndex.html \"Gri: Builtin Index\" \"Builtin Index\" -->
9 \@c HTML <h1>Builtin index</h1>
10 \@node Index of Builtins, Concept Index, Index of Commands, Top
11
12 \@c HTML <b>Navigation</b>:
13 \@c HTML <a href=\"#Top\">next</a>,
14 \@c HTML <a href=\"#CommandIndex\">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";