-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* doxygen2man: Add utility to generate man pages from doxygen This is in here from kronosnet so it cna be used by other parts of the cluster stack. * [man] drop trailing white spaces Signed-off-by: Fabio M. Di Nitto <[email protected]> * [build] cleanup variable names Signed-off-by: Fabio M. Di Nitto <[email protected]> * [build] add conditionals to use internal or external doxygen2man Signed-off-by: Fabio M. Di Nitto <[email protected]> * Update .gitignore Signed-off-by: Fabio M. Di Nitto <[email protected]> Co-authored-by: Christine Caulfield <[email protected]>
- Loading branch information
1 parent
1daca57
commit 93f9975
Showing
8 changed files
with
1,093 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# | ||
# Copyright (C) 2017-2020 Red Hat, Inc. All rights reserved. | ||
# | ||
# Author: Fabio M. Di Nitto <[email protected]> | ||
# Christine Caulfield <[email protected]> | ||
# | ||
# This software licensed under GPL-2.0+ | ||
# | ||
# Example file for doxygen when using doxygen2man | ||
# | ||
PROJECT_NAME = libqb | ||
PROJECT_NUMBER = 2.0 | ||
INPUT = ../include/qb/ | ||
XML_OUTPUT = ./xml | ||
GENERATE_XML = YES | ||
XML_PROGRAMLISTING = NO | ||
AUTOLINK_SUPPORT = NO | ||
GENERATE_HTML = NO | ||
GENERATE_LATEX = NO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# | ||
# Copyright (C) 2017-2019 Red Hat, Inc. All rights reserved. | ||
# | ||
# Authors: Fabio M. Di Nitto <[email protected]> | ||
# Federico Simoncelli <[email protected]> | ||
# | ||
# This software licensed under GPL-2.0+ | ||
# | ||
|
||
MAINTAINERCLEANFILES = Makefile.in | ||
|
||
EXTRA_DIST = doxygen2man.1 | ||
|
||
bin_PROGRAMS = doxygen2man | ||
|
||
all: $(PROGRAMS) $(MANS) | ||
|
||
doxygen2man_SOURCES = doxygen2man.c | ||
doxygen2man_CPPFLAGS = -I$(top_srcdir)/include/ | ||
doxygen2man_CFLAGS = $(AM_CFLAGS) $(libxml_CFLAGS) | ||
doxygen2man_LDADD = $(top_builddir)/lib/libqb.la $(libxml_LIBS) | ||
|
||
man1_MANS = doxygen2man.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
.\" | ||
.\" * Copyright (C) 2010-2020 Red Hat, Inc. | ||
.\" * | ||
.\" * All rights reserved. | ||
.\" * | ||
.\" * Author: Christine Caulfield <[email protected]> | ||
.\" * | ||
|
||
.TH "DOXYGEN2MAN" "8" "2020-03-09" "" "" | ||
.SH "NAME" | ||
doxygen2man \- A tool to generate man pages from Doxygen XML files | ||
.SH "SYNOPSIS" | ||
.B doxygen2man [OPTIONS] <XML file> | ||
.SH "DESCRIPTION" | ||
.P | ||
This is a tool to generate API manpages from a doxygen-annotated header file | ||
First run doxygen on the file and then run this program against the main XML file | ||
it created and the directory containing the ancilliary files. It will then | ||
output a lot of *.3 man page files which you can then ship with your library. | ||
.P | ||
You will need to invoke this program once for each .h file in your library, | ||
using the name of the generated .xml file. This file will usually be called | ||
something like <include-file>_8h.xml, eg qbipcs_8h.xml | ||
.P | ||
If you want HTML output then simpy use nroff on the generated files as you | ||
would do with any other man page. | ||
|
||
.SH "OPTIONS" | ||
.TP | ||
.B -a | ||
Print ASCII dump of man pages to stdout | ||
.TP | ||
.B -m | ||
Write man page files to <output dir> | ||
.TP | ||
.B -P | ||
Print PARAMS section | ||
.TP | ||
.B -s <s> | ||
Write man pages into section <s> <default 3) | ||
.TP | ||
.B -p <package> | ||
Use <package> name. default <Package> | ||
.TP | ||
.B -H <header> | ||
Set header (default \"Programmer's Manual\") | ||
.TP | ||
.B -D <date> | ||
Date to print at top of man pages (format not checked, default: today) | ||
.TP | ||
.B -Y <year> | ||
Year to print at end of copyright line (default: today's year) | ||
.TP | ||
.B -o <dir> | ||
Write all man pages to <dir> (default .) | ||
.TP | ||
.B -d <dir> | ||
Directory for XML files (./xml/) | ||
.TP | ||
.B -h | ||
Print usage text | ||
|
||
.SH "SEE ALSO" | ||
.BR doxygen (1) | ||
.SH "AUTHOR" | ||
Christine Caulfield | ||
.PP |
Oops, something went wrong.