>
> Does it work as you expect except for these warnings? If so, we could
> figure some way to just turn off the warnings.
Yes, as far as I can tell, it does produce the expected output anyway.
After experimenting with it I came to the attached patch. It
temporarily comments out the @ifnottex conditional so that makeinfo sees
the @top node and restores it after preprocessing, so that the node does
not appear in the output. This way no diagnostics is issued when run on
my and Gavin's test files. Trying it on GNU Pies docs works as well.
Regards,
Sergey
Index: util/texi2dvi
===================================================================
--- util/texi2dvi (revision 6162)
+++ util/texi2dvi (working copy)
@@ -1590,9 +1590,10 @@ comment_iftex=\
s/^@c _texi2dvi//
}
}
-/^@ifnottex/,/^@end ifnottex/{
- s/^/@c (_texi2dvi)/
-}
+/^@ifnottex/i\
+@c _texi2dvi@ifnottex
+/^@end ifnottex/i\
+@c _texi2dvi@end ifnottex
/^@ifinfo/,/^@end ifinfo/{
/^@node/p
/^@menu/,/^@end menu/p