Clean up texinfo files

Fix up the com_err.texinfo file so it will produce a valid printed
output, by cleaning up some errors in the texinfo file, and updating
texinfo.tex to be consistent with the version in the doc subdirectory.

Also add rules so we can generate pdf and ps files from
com_err.texinfo and libext2fs.texinfo.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
This commit is contained in:
Theodore Ts'o 2013-01-02 10:06:09 -05:00
parent 73c427d2a3
commit ccfedb17b1
5 changed files with 6817 additions and 1642 deletions

View File

@ -15,6 +15,7 @@ DVI=texi2dvi
DVIPS=dvips -o "$@" DVIPS=dvips -o "$@"
INFO=@MAKEINFO@ INFO=@MAKEINFO@
HTML=texi2html -split_chapter HTML=texi2html -split_chapter
PS2PDF=ps2pdf
all:: libext2fs.info libext2fs.dvi all:: libext2fs.info libext2fs.dvi
@ -40,6 +41,14 @@ libext2fs.dvi: $(srcdir)/libext2fs.texinfo
$(E) " TEXI2DVI $@" $(E) " TEXI2DVI $@"
-$(Q) $(DVI) $(srcdir)/libext2fs.texinfo -$(Q) $(DVI) $(srcdir)/libext2fs.texinfo
libext2fs.ps: libext2fs.dvi
$(E) " DVIPS $@"
-$(Q) $(DVIPS) libext2fs.dvi
libext2fs.pdf: libext2fs.ps
$(E) " PS2PDF $@"
-$(Q) $(PS2PDF) libext2fs.ps
libext2fs_abt.html: $(srcdir)/libext2fs.texinfo libext2fs_abt.html: $(srcdir)/libext2fs.texinfo
$(E) " TEXI2HTML $@" $(E) " TEXI2HTML $@"
-$(Q) $(HTML) $(srcdir)/libext2fs.texinfo -$(Q) $(HTML) $(srcdir)/libext2fs.texinfo
@ -59,7 +68,7 @@ clean-all:: clean-tex clean-backup clean-final clean-tarfiles clean-html
.PHONY: clean-final .PHONY: clean-final
clean-final:: clean-final::
$(RM) -f *.ps *.info *.info-? *.html $(RM) -f *.ps *.info *.info-? *.html *.pdf
.PHONY: clean-tex .PHONY: clean-tex
clean-tex:: clean-tex::

View File

@ -104,8 +104,6 @@ by the Foundation.
This manual documents the EXT2FS Library, version 1.42.7. This manual documents the EXT2FS Library, version 1.42.7.
@end ifinfo
@menu @menu
* Introduction to the EXT2FS Library:: * Introduction to the EXT2FS Library::
* EXT2FS Library Functions:: * EXT2FS Library Functions::
@ -113,6 +111,8 @@ This manual documents the EXT2FS Library, version 1.42.7.
* Function Index:: * Function Index::
@end menu @end menu
@end ifinfo
@c ---------------------------------------------------------------------- @c ----------------------------------------------------------------------
@node Introduction to the EXT2FS Library, EXT2FS Library Functions, Top, Top @node Introduction to the EXT2FS Library, EXT2FS Library Functions, Top, Top

View File

@ -59,12 +59,34 @@ compile_et: $(DEP_SUBSTITUTE) $(srcdir)/compile_et.sh.in
$(Q) $(SUBSTITUTE) $(srcdir)/compile_et.sh.in compile_et $(Q) $(SUBSTITUTE) $(srcdir)/compile_et.sh.in compile_et
$(Q) $(CHMOD) +x compile_et $(Q) $(CHMOD) +x compile_et
DVI=texi2dvi
DVIPS=dvips -o "$@"
INFO=@MAKEINFO@
HTML=texi2html -split_chapter
PS2PDF=ps2pdf
com_err.ps : com_err.dvi com_err.ps : com_err.dvi
com_err.dvi: com_err.texinfo com_err.dvi: com_err.texinfo
com_err.info: $(srcdir)/com_err.texinfo
$(E) " MAKEINFO $@"
-$(Q) $(INFO) $(srcdir)/com_err.texinfo
com_err.dvi: $(srcdir)/com_err.texinfo
$(E) " TEXI2DVI $@"
-$(Q) $(DVI) $(srcdir)/com_err.texinfo
com_err.ps: com_err.dvi
$(E) " DVIPS $@"
-$(Q) $(DVIPS) com_err.dvi
com_err.pdf: com_err.ps
$(E) " PS2PDF $@"
-$(Q) $(PS2PDF) com_err.ps
com_err_abt.html: $(srcdir)/com_err.texinfo com_err_abt.html: $(srcdir)/com_err.texinfo
$(E) " TEXI2HTML $@" $(E) " TEXI2HTML $@"
-$(Q) texi2html -split_chapter $(srcdir)/com_err.texinfo -$(Q) $(HTML) $(srcdir)/com_err.texinfo
-$(Q) if test -d com_err ; then \ -$(Q) if test -d com_err ; then \
mv com_err/* . ; rmdir com_err ; \ mv com_err/* . ; rmdir com_err ; \
fi fi
@ -133,7 +155,9 @@ check:: compile_et
clean:: clean::
$(RM) -f compile_et libcom_err.a libcom_err_p.a com_err.info $(RM) -f compile_et libcom_err.a libcom_err_p.a com_err.info
$(RM) -f $(OBJS) profiled/* $(RM) -f $(OBJS) profiled/*
$(RM) -f *~ \#* *.bak *.otl *.aux *.toc *.PS *.dvi *.ps TAGS *.ln *.html $(RM) -f *~ \#* *.bak *.otl *.aux *.toc *.PS *.dvi *.ps TAGS *.ln \
*.html *.cp *.fn *.fns *.ky *.log *.pc *.pg *.toc *.tp *.vr \
*.pdf
$(RM) -f ../libcom_err.a ../libcom_err_p.a $(RM) -f ../libcom_err.a ../libcom_err_p.a
mostlyclean:: clean mostlyclean:: clean

View File

@ -14,7 +14,7 @@
@c Software Foundation, and is under different copyright restrictions @c Software Foundation, and is under different copyright restrictions
@c from the rest of this package.) @c from the rest of this package.)
@setfilename com_err @setfilename com_err.info
@settitle A Common Error Description Library for UNIX @settitle A Common Error Description Library for UNIX
@ifinfo @ifinfo
@ -24,14 +24,10 @@
@end direntry @end direntry
@end ifinfo @end ifinfo
@iftex @c smallbook
@tolerance 10000
@c Mutate section headers... @iftex
@begingroup @finalout
@catcode#=6
@gdef@secheading#1#2#3{@secheadingi {#3@enspace #1}}
@endgroup
@end iftex @end iftex
@ifinfo @ifinfo
@ -61,6 +57,7 @@ notice identical to this one except for the removal of this paragraph
(this paragraph not being relevant to the printed manual). (this paragraph not being relevant to the printed manual).
@end ignore @end ignore
@end ifinfo
@setchapternewpage odd @setchapternewpage odd
@ -114,7 +111,7 @@ from the remainder of this package.
@end titlepage @end titlepage
@ifinfo
@node Top, Why com_err?, (dir), (dir) @node Top, Why com_err?, (dir), (dir)
@top A Common Error Description Library for UNIX @top A Common Error Description Library for UNIX
@ -133,12 +130,11 @@ This manual documents the com_err library.
* Acknowledgements:: * Acknowledgements::
@end menu @end menu
@page
@end ifinfo @end ifinfo
@page
@node Why com_err?, Error codes, Top, Top @node Why com_err?, Error codes, Top, Top
@section Why com_err? @chapter Why com_err?
In building application software packages, a programmer often has to In building application software packages, a programmer often has to
deal with a number of libraries, each of which can use a different deal with a number of libraries, each of which can use a different
@ -174,7 +170,7 @@ of the form @samp{unknown code foo 32}, where @samp{foo} would be the name
of the table. of the table.
@node Error codes, Error table source file, Why com_err?, Top @node Error codes, Error table source file, Why com_err?, Top
@section Error codes @chapter Error codes
Error codes themselves are 32 bit (signed) integers, of which the high Error codes themselves are 32 bit (signed) integers, of which the high
order 24 bits are an identifier of which error table the error code is order 24 bits are an identifier of which error table the error code is
@ -203,7 +199,7 @@ much other software that assumes an ANSI-C environment base) without
significant effort. significant effort.
@node Error table source file, The error-table compiler, Error codes, Top @node Error table source file, The error-table compiler, Error codes, Top
@section Error table source file @chapter Error table source file
The error table source file begins with the declaration of the table name, The error table source file begins with the declaration of the table name,
as as
@ -241,7 +237,7 @@ error table might be:
@end example @end example
@node The error-table compiler, Run-time support routines, Error table source file, Top @node The error-table compiler, Run-time support routines, Error table source file, Top
@section The error-table compiler @chapter The error-table compiler
The error table compiler is named @code{compile_et}. It takes one The error table compiler is named @code{compile_et}. It takes one
argument, the pathname of a file (ending in @samp{.et}, e.g., argument, the pathname of a file (ending in @samp{.et}, e.g.,
@ -255,7 +251,7 @@ codes defined; the object module generated from the C code may be linked in
to a program which wishes to use the printed forms of the error codes. to a program which wishes to use the printed forms of the error codes.
@node Run-time support routines, Coding Conventions, The error-table compiler, Top @node Run-time support routines, Coding Conventions, The error-table compiler, Top
@section Run-time support routines @chapter Run-time support routines
Any source file which uses the routines supplied with or produced by the Any source file which uses the routines supplied with or produced by the
com_err package should include the header file @file{<com_err.h>}. It com_err package should include the header file @file{<com_err.h>}. It
@ -306,9 +302,7 @@ left to circumstances which render @code{com_err} (below) unusable.
@end deftypefun @end deftypefun
@deftypefun @deftypefun void com_err (const char *@var{whoami}, long @var{error_code}, const char *@var{format}, ...);
void com_err (const char *@var{whoami}, long @var{error_code},
const char *@var{format}, ...);
This routine provides an alternate way to print error messages to This routine provides an alternate way to print error messages to
standard error; it allows the error message to be passed in as a standard error; it allows the error message to be passed in as a
@ -321,8 +315,7 @@ printed. @var{format} may not be omitted.
@end deftypefun @end deftypefun
@deftypefun @deftypefun void com_err_va (const char *@var{whoami}, long @var{error_code}, const char *@var{format}, va_list @var{args});
void com_err_va (const char *@var{whoami}, long @var{error_code}, const char *@var{format}, va_list @var{args});
This routine provides an interface, equivalent to @code{com_err} above, This routine provides an interface, equivalent to @code{com_err} above,
which may be used by higher-level variadic functions (functions which which may be used by higher-level variadic functions (functions which
@ -330,7 +323,7 @@ accept variable numbers of arguments).
@end deftypefun @end deftypefun
@deftypefun void (*set_com_err_hook (void (*@var{proc}) (const char *@var{whoami}, long @var{error_code}, va_list @var{args}))) (const char *@var{whoami}, long @var{error_code}, va_list @var{args}); @deftypefun void *set_com_err_hook (void (*@var{proc}) (const char *@var{whoami}, long @var{error_code}, va_list @var{args}) (const char *@var{whoami}, long @var{error_code}, va_list @var{args}));
@deftypefunx void reset_com_err_hook (); @deftypefunx void reset_com_err_hook ();
@ -390,7 +383,7 @@ the ANSI C library).
@end deftypefun @end deftypefun
@node Coding Conventions, Building and Installation, Run-time support routines, Top @node Coding Conventions, Building and Installation, Run-time support routines, Top
@section Coding Conventions @chapter Coding Conventions
The following conventions are just some general stylistic conventions The following conventions are just some general stylistic conventions
to follow when writing robust libraries and programs. Conventions to follow when writing robust libraries and programs. Conventions
@ -501,7 +494,7 @@ error:
@end example @end example
@node Building and Installation, Bug Reports, Coding Conventions, Top @node Building and Installation, Bug Reports, Coding Conventions, Top
@section Building and Installation @chapter Building and Installation
The distribution of this package will probably be done as a compressed The distribution of this package will probably be done as a compressed
``tar''-format file available via anonymous FTP from SIPB.MIT.EDU. ``tar''-format file available via anonymous FTP from SIPB.MIT.EDU.
@ -514,7 +507,7 @@ installed for use; @samp{com_err.3} and @samp{compile_et.1} can also be
installed as manual pages. installed as manual pages.
@node Bug Reports, Acknowledgements, Building and Installation, Top @node Bug Reports, Acknowledgements, Building and Installation, Top
@section Bug Reports @chapter Bug Reports
The principal author of this library is: Ken The principal author of this library is: Ken
Raeburn, @t{raeburn@@MIT.EDU}. Raeburn, @t{raeburn@@MIT.EDU}.
@ -524,7 +517,7 @@ Ts'o, and so bugs and comments should be sent to @t{tytso@@thunk.org}.
@node Acknowledgements, , Bug Reports, Top @node Acknowledgements, , Bug Reports, Top
@section Acknowledgements @chapter Acknowledgements
I would like to thank: Bill Sommerfeld, for his help with some of this I would like to thank: Bill Sommerfeld, for his help with some of this
documentation, and catching some of the bugs the first time around; documentation, and catching some of the bugs the first time around;

File diff suppressed because it is too large Load Diff