Teach makeinfo about --no-version-header to support the line
This is <info> producted by <version> from <source> which leaks the full build prefix.
This commit is contained in:
parent
09835b3076
commit
ae9db31d7f
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: makeinfo.1,v 1.1.1.6 2008/09/02 07:51:56 christos Exp $
|
||||
.\" $NetBSD: makeinfo.1,v 1.2 2009/02/28 19:14:15 joerg Exp $
|
||||
.\"
|
||||
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.34.
|
||||
.TH MAKEINFO "1" "December 2004" "makeinfo 4.8" "User Commands"
|
||||
|
@ -64,6 +64,9 @@ also, write to standard output by default.
|
|||
suppress splitting of Info or HTML output,
|
||||
generate only one output file.
|
||||
.TP
|
||||
\fB\-\-no\-version\-header\fR
|
||||
suppress header with makeinfo version and source path.
|
||||
.TP
|
||||
\fB\-\-number\-sections\fR
|
||||
output chapter and sectioning numbers.
|
||||
.TP
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: makeinfo.c,v 1.14 2008/09/02 08:00:24 christos Exp $ */
|
||||
/* $NetBSD: makeinfo.c,v 1.15 2009/02/28 19:14:15 joerg Exp $ */
|
||||
|
||||
/* makeinfo -- convert Texinfo source into other formats.
|
||||
Id: makeinfo.c,v 1.74 2004/12/19 17:15:42 karl Exp
|
||||
|
@ -381,6 +381,8 @@ General output options:\n\
|
|||
also, write to standard output by default.\n\
|
||||
--no-split suppress splitting of Info or HTML output,\n\
|
||||
generate only one output file.\n\
|
||||
--no-version-headers suppress header with makeinfo version and\n
|
||||
source path.\n
|
||||
--number-sections output chapter and sectioning numbers.\n\
|
||||
-o, --output=FILE output to FILE (directory if split HTML),\n\
|
||||
"));
|
||||
|
@ -505,6 +507,7 @@ struct option long_options[] =
|
|||
{ "no-pointer-validate", 0, &validating, 0 },
|
||||
{ "no-split", 0, &splitting, 0 },
|
||||
{ "no-validate", 0, &validating, 0 },
|
||||
{ "no-version-header", 0, &no_version_header, 1 },
|
||||
{ "no-warn", 0, &print_warnings, 0 },
|
||||
{ "number-footnotes", 0, &number_footnotes, 1 },
|
||||
{ "number-sections", 0, &number_sections, 1 },
|
||||
|
@ -1671,7 +1674,7 @@ convert_from_loaded_file (char *name)
|
|||
}
|
||||
|
||||
/* html fixxme: should output this as trailer on first page. */
|
||||
if (!no_headers && !html && !xml)
|
||||
if (!no_headers && !html && !xml && !no_version_header)
|
||||
add_word_args (_("This is %s, produced by makeinfo version %s from %s.\n"),
|
||||
output_filename, VERSION, input_filename);
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: makeinfo.h,v 1.1.1.7 2008/09/02 07:50:44 christos Exp $ */
|
||||
/* $NetBSD: makeinfo.h,v 1.2 2009/02/28 19:14:15 joerg Exp $ */
|
||||
|
||||
/* makeinfo.h -- declarations for Makeinfo.
|
||||
Id: makeinfo.h,v 1.17 2004/11/30 02:03:23 karl Exp
|
||||
|
@ -192,6 +192,10 @@ DECLARE (char *, css_include, NULL);
|
|||
is, generate plain text. (--no-headers) */
|
||||
DECLARE (int, no_headers, 0);
|
||||
|
||||
/* Nonzero means do not output makeinfo version and source file.
|
||||
(--no-version-header) */
|
||||
DECLARE (int, no_version_header, 0);
|
||||
|
||||
/* Nonzero means that we process @docbook and @ifdocbook. (--ifdocbook) */
|
||||
DECLARE (int, process_docbook, 0);
|
||||
|
||||
|
|
Loading…
Reference in New Issue