xml2nroff: Read whole file instead of line by line.
authorRussell Bryant <russell@ovn.org>
Thu, 10 Dec 2015 19:22:58 +0000 (14:22 -0500)
committerRussell Bryant <russell@ovn.org>
Fri, 11 Dec 2015 17:02:23 +0000 (12:02 -0500)
commit069390bb36763abff90d66afb8effee09482966c
treec6c4b2d23957db2130ade773cfe84b9dc5cd28f1
parent138bc37a3a4cd1e4e0d9f3d2b1c27d23a7ccf454
xml2nroff: Read whole file instead of line by line.

The previous code processed the input file line by line, but I think
it looks a little more straight forward to just process the whole file
at once.

This patch also explicitly closes the file after reading its contents.

Signed-off-by: Russell Bryant <russell@ovn.org>
Acked-by: Justin Pettit <jpettit@ovn.org>
build-aux/xml2nroff