releasing 0.5

This commit is contained in:
david 2002-06-26 10:52:47 +00:00
parent 4f3fcbabf2
commit 9775031448
4 changed files with 17 additions and 12 deletions

View File

@ -10,7 +10,7 @@
Thanks to Jaime Irving Davila Lotorre for patch. Thanks to Jaime Irving Davila Lotorre for patch.
<jadavila@uniandes.edu.co> <jadavila@uniandes.edu.co>
CVS Adds minimal indexing support. 2002-06-26 0.5 Adds minimal indexing support.
Switch -v and -V, -v is now version, -V verbose. Switch -v and -V, -v is now version, -V verbose.
Ordinarily, changing options is a no-no, but I have 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 When table formats are set to a literal, and another
literal is inside the column, delete the one inside. literal is inside the column, delete the one inside.
Fixed a bug that caused output to never be written
to STDOUT.

View File

@ -24,9 +24,9 @@ well.
texi2db has full support for macros, aliases, and custom highlighting with texi2db has full support for macros, aliases, and custom highlighting with
@defenclosure commands. @defenclosure commands.
This software is still in development and has many bugs. Please feel free to This software has been in active use for some time and has proven reliable.
send bug reports to <david@lupercalia.net>, but odds are I already know about However, it is still in development and probably has bugs. Please feel free to
it because of its stage of development. send bug reports to <david@lupercalia.net>.
David Merrill David Merrill
@ -36,6 +36,5 @@ The following structures are not supported, at least not yet.
@dircategory @dircategory
@direntry @direntry
@end direntry @end direntry
All of the indexing commands. All of the indexing commands.
@menu and friends are ignored for now, but I'm planning to support them later. @menu and friends are ignored for now, but I'm planning to support them later.

View File

@ -1,6 +1,6 @@
=head1 NAME =head1 NAME
B<texi2db> - utility to convert Texinfo documents into DocBook XML. B<texi2db> - convert Texinfo documents into DocBook XML.
=head1 SYNOPSIS =head1 SYNOPSIS
@ -56,7 +56,7 @@ http://www.tldp.org for updates and more information.
=head1 AUTHOR =head1 AUTHOR
This man page was written by David C. Merrill <david@lupercalia.net>. This man page was written by David Merrill <david@lupercalia.net>.
Permission is granted to copy, distribute and/or modify this document under 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 the terms of the GNU Free Documentation License, Version 1.1 or any later

View File

@ -6,7 +6,7 @@ use File::Basename;
use FileHandle; use FileHandle;
use HTML::Entities; use HTML::Entities;
$VERSION = "0.4.2-cvs"; $VERSION = "0.5";
$errors = 0; $errors = 0;
$error = 0; $error = 0;
@ -640,7 +640,10 @@ if ($outputtype eq 'HTML') {
if ($outputfile) { if ($outputfile) {
&message("output will go to $outputfile") if ($verbose); &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 (<DATA>) { while (<DATA>) {
@ -652,7 +655,7 @@ while (<DATA>) {
&processfile ("$requestedfile"); &processfile ("$requestedfile");
&writefile; &writefile;
close($outfh) if ($outputfile); close($outfh);
close($logfh) if ($logfile); close($logfh) if ($logfile);
sub processfile { sub processfile {
@ -2369,13 +2372,14 @@ sub version {
print "Converts a Texinfo file into DocBook XML.\n"; print "Converts a Texinfo file into DocBook XML.\n";
print "\n"; print "\n";
print "This is free software; see the source for copying conditions. There is no\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 { sub usage {
&version; &version;
print "\n";
print "Usage: texi2db [OPTIONS]... [FILE]\n"; print "Usage: texi2db [OPTIONS]... [FILE]\n";
print "\n";
print "Options:\n";
print "-i, --include HTML|INFO|TEX\n"; print "-i, --include HTML|INFO|TEX\n";
print " include the specified text.\n"; print " include the specified text.\n";
print "-f, --file FILE read from file rather than STDIN.\n"; print "-f, --file FILE read from file rather than STDIN.\n";