diff --git a/LDP/texi2db/Changelog b/LDP/texi2db/Changelog index 7e20c87e..aeaa53b9 100644 --- a/LDP/texi2db/Changelog +++ b/LDP/texi2db/Changelog @@ -10,7 +10,7 @@ Thanks to Jaime Irving Davila Lotorre for patch. -CVS Adds minimal indexing support. +2002-06-26 0.5 Adds minimal indexing support. Switch -v and -V, -v is now version, -V verbose. Ordinarily, changing options is a no-no, but I have @@ -19,3 +19,5 @@ CVS Adds minimal indexing support. When table formats are set to a literal, and another literal is inside the column, delete the one inside. + Fixed a bug that caused output to never be written + to STDOUT. diff --git a/LDP/texi2db/README b/LDP/texi2db/README index c7860609..ca197acf 100644 --- a/LDP/texi2db/README +++ b/LDP/texi2db/README @@ -24,9 +24,9 @@ well. texi2db has full support for macros, aliases, and custom highlighting with @defenclosure commands. -This software is still in development and has many bugs. Please feel free to -send bug reports to , but odds are I already know about -it because of its stage of development. +This software has been in active use for some time and has proven reliable. +However, it is still in development and probably has bugs. Please feel free to +send bug reports to . David Merrill @@ -36,6 +36,5 @@ The following structures are not supported, at least not yet. @dircategory @direntry @end direntry - All of the indexing commands. @menu and friends are ignored for now, but I'm planning to support them later. diff --git a/LDP/texi2db/doc/texi2db.pod b/LDP/texi2db/doc/texi2db.pod index f2da4a36..27361572 100644 --- a/LDP/texi2db/doc/texi2db.pod +++ b/LDP/texi2db/doc/texi2db.pod @@ -1,6 +1,6 @@ =head1 NAME -B - utility to convert Texinfo documents into DocBook XML. +B - convert Texinfo documents into DocBook XML. =head1 SYNOPSIS @@ -56,7 +56,7 @@ http://www.tldp.org for updates and more information. =head1 AUTHOR -This man page was written by David C. Merrill . +This man page was written by David Merrill . Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later diff --git a/LDP/texi2db/texi2db b/LDP/texi2db/texi2db index bab97e7d..aac68dbb 100755 --- a/LDP/texi2db/texi2db +++ b/LDP/texi2db/texi2db @@ -6,7 +6,7 @@ use File::Basename; use FileHandle; use HTML::Entities; -$VERSION = "0.4.2-cvs"; +$VERSION = "0.5"; $errors = 0; $error = 0; @@ -640,7 +640,10 @@ if ($outputtype eq 'HTML') { if ($outputfile) { &message("output will go to $outputfile") if ($verbose); - open($outfh, "> $outputfile"); + $outfh = new FileHandle; + open($outfh, "> $outputfile") or die "Cannot write to $outputfile ($!)\n"; +} else { + $outfh = STDOUT; } while () { @@ -652,7 +655,7 @@ while () { &processfile ("$requestedfile"); &writefile; -close($outfh) if ($outputfile); +close($outfh); close($logfh) if ($logfile); sub processfile { @@ -2369,13 +2372,14 @@ sub version { print "Converts a Texinfo file into DocBook XML.\n"; print "\n"; print "This is free software; see the source for copying conditions. There is no\n"; - print "warranty; not even for merchantability or fitness for a particular purpose.\n"; + print "warranty; not even for merchantability or fitness for a particular purpose.\n\n"; } sub usage { &version; - print "\n"; print "Usage: texi2db [OPTIONS]... [FILE]\n"; + print "\n"; + print "Options:\n"; print "-i, --include HTML|INFO|TEX\n"; print " include the specified text.\n"; print "-f, --file FILE read from file rather than STDIN.\n";