3 # This is script to tidy up the Texinfo file that docbook2texi produces. We
4 # have to change "conceptindex" and "optionindex" to "cindex" and "findex", and
5 # we also have to add access to the index into the menus and a final node.
7 # Find the start of the first menu.
15 # Find the end of the first menu.
23 # Insert a menu link to the index.
25 print "* Concept Index::\n\n";
27 # Find the final @bye line. En route, we look for the last chapter node, the
28 # one that has nothing following, and insert a pointer to an index node. Also,
29 # change the index names.
34 if (/^\@node ([^,]+), , (.*)/)
42 print "\@node $save1, Concept Index, $save2\n";
53 s/conceptindex/cindex/;
54 s/optionindex/findex/;
55 s/variableindex/findex/;
60 # Insert the final index stuff at the end.
63 print "\@node Concept Index, , $previous, Top\n";
64 print "\n\@printindex cp\n\n";