#!/usr/local/bin/perl
# Create HTML index from index of pre-installed info page.
# Bug: the @code{} items get lost, too bad.
open(IN, "info -f ./gri.info 'Index of Commands' |")
|| die "Cannot get 'Index of Commands'\n";
# Following is kludge, really
print "
\@c HTML
\@c HTML
Command index
\@node Index of Commands, Index of Builtins, License, Top
\@c HTML Navigation:
\@c HTML next,
\@c HTML previous,
\@c HTML parent.
\@itemize \@bullet
";
while() {
next if (/\*\s*Menu:\s*$/);
if (/\* .*\./) {
s/\* //;
s/\.$//;
s/:\s*/\n ... \@xref{/;
s/$/}./;
print "\@item\n $_";
}
}
print "\n\@end itemize\n";
#print "\n\@c HTML Dan Kelley\n";