releasing version 0.4

This commit is contained in:
david 2002-05-05 22:26:42 +00:00
parent 3db813a11b
commit 3e734c1dd4
5 changed files with 117 additions and 4 deletions

4
LDP/texi2db/Changelog Normal file
View File

@ -0,0 +1,4 @@
2002-05-05 0.3 Initial public release
2002-05-05 0.3 Added Makefile.PL, INSTALL, man page, Changelog
Added -V, same as --version

14
LDP/texi2db/INSTALL Normal file
View File

@ -0,0 +1,14 @@
To install texi2db, run:
perl Makefile.PL
That will generate a Makefile. Then, run:
make
to build the package, and run:
make install
as root to copy the files to the appropriate locations.

28
LDP/texi2db/Makefile.PL Normal file
View File

@ -0,0 +1,28 @@
#!/usr/bin/perl -sw
##
## Makefile for the texi2db utility.
##
## Copyright (c) 2002, David Merrill. All rights reserved.
## This code is Free Software; you can redistribute it and/or modify
## it under the GNU General Public License. See COPYING for details.
##
use ExtUtils::MakeMaker;
WriteMakefile(
NAME => 'texi2db',
AUTHOR => 'David Merrill <david@lupercalia.net>',
ABSTRACT => 'Converts Texinfo documents into DocBook XML.',
NOECHO => '',
VERSION_FROM => 'texi2db',
EXE_FILES => [ qw( texi2db ) ],
PREREQ_PM => {
'File::Basename' => 0,
'HTML::Entities' => 0,
'FileHandle' => 0,
},
MAN1PODS => {
"doc/texi2db.pod" => 'blib/man1/texi2db.1',
},
);

View File

@ -0,0 +1,67 @@
=head1 NAME
B<texi2db> - utility to convert Texinfo documents into DocBook XML.
=head1 SYNOPSIS
B<texi2db> [I<OPTION>] [I<FILE>]
=head1 DESCRIPTION
B<texi2db> converts a Texinfo into DocBook XML.
By default it reads from STDIN and writes to STDOUT. However, if given a
filename, it will read that file, and an output filename can also be
specified as a command-line option.
=head1 OPTIONS
B<-i>, B<--include> HTML|INFO|TEX include the specified text.
B<-f>, B<--file> I<FILE> read from file rather than STDIN.
B<-o>, B<--output-to> I<FILE> write to file rather than STDOUT.
B<-l>, B<--log-to> I<FILE> write status messages to file rather than STDOUT.
B<-L>, B<--runon> set runon line limit (default=20)
B<-v>, B<--verbose> show diagnostic output. Use twice for lots of detail. Use thrice for insane amounts of detail.
B<-e>, B<--max-errors> I<MAX> abort after this many errors. Default is 1. use '--max-errors 0' to disable.
B<-h>, B<--help> show this usage message and exit.
B<-V>, B<--version> show the program version and exit.
=head1 BUGS
Bugs are tracked in the SourceForge project page at:
http://www.sourceforge.net/projects/linuxdoc
If you report a bug in B<texi2db>, specify texi2db as the category so it will
be routed the appropriate person.
=head1 NOTES
B<texi2db> was developed as a project of the Linux Documentation Project.
While it is useful on its own, it is part of Lampadas, the LDP's document
production system.
=head1 SEE ALSO
See the home page of the Linux Documentation Project,
http://www.tldp.org for updates and more information.
=head1 AUTHOR
This man page was written by David C. Merrill <david@lupercalia.net>.
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
version published by the Free Software Foundation; with no Invariant Sections,
no Front-Cover Texts and no Back-Cover Texts.
=cut

View File

@ -6,7 +6,7 @@ use File::Basename;
use FileHandle;
use HTML::Entities;
$VERSION = "0.2-pre";
$VERSION = "0.4";
$errors = 0;
$error = 0;
@ -543,7 +543,7 @@ $macrotext = "";
while (1) {
if ($ARGV[0] eq '') {
last;
} elsif ($ARGV[0] eq '--version') {
} elsif (($ARGV[0] eq '-V') or ($ARGV[0] eq '--version')) {
&version;
exit(0);
} elsif (($ARGV[0] eq '-i') or ($ARGV[0] eq '--include')) {
@ -2331,7 +2331,7 @@ sub version {
print "texi2db version $VERSION\n";
print "Copyright (c) 2002 David Merrill \<david\@lupercalia.net\>.\n";
print "\n";
print "Converts a Texinfo file into DocBook.\n";
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";
@ -2353,7 +2353,7 @@ sub usage {
print "-e, --max-errors MAX abort after this many errors. Default is 1.\n";
print " use '--max-errors 0' to disable.\n";
print "-h, --help show this usage message and exit.\n";
print " --version show the program version and exit.\n";
print "-V, --version show the program version and exit.\n";
exit($error);
}