Commit Graph

22 Commits

Author SHA1 Message Date
Ferenc Wágner
8502569c38 New upstream version 2.0.7 2023-06-23 22:26:58 +02:00
Chrissie Caulfield
e407874c9c
doxygen2man: Fix function parameter alignment (#468)
Also, prevent truncation of parameter descriptions in the
body of the man page due to strtok() usage.
2022-06-16 12:38:22 +01:00
Ferenc Wágner
b91c3e4791 New upstream version 2.0.4 2021-11-21 13:42:35 +01:00
Chrissie Caulfield
fa59903037
doxygen2man: print structure descriptions (#443)
* doxygen2man: print structure descriptions
* get rid of double-cast as it doesn't seem to do anything
2021-07-01 09:33:58 +01:00
Ferenc Wágner
86a316c09e New upstream version 2.0.3 2021-03-04 05:50:06 +01:00
Chrissie Caulfield
47ed440397
doxygen2man: fix printing of lines starting with '.' (#431)
if a line starts with a '.' (eg the '...' in qbarray.h) then
nroff thinks it's looking for a macro called '..'.

The easiest solution is to add a dummy format at the start of the line
(just adding \ seems not to work).
2021-01-07 09:08:46 +00:00
wferi
5b16d504ff
doxygen2man: ignore all-whitespace brief descriptions (#430) 2021-01-04 09:08:18 +00:00
Ferenc Wágner
61203efbb2 New upstream version 2.0.2 2020-12-25 11:55:09 +01:00
Chrissie Caulfield
c2dfe66584
doxygen2man: Fix a couple of covscan-detected errors (#425)
doxygen2man: Fix a couple of covscan-detected errors

 also check for strings longer than 4096
2020-10-22 08:17:31 +01:00
wferi
6853eeaea6
doc related fixups (#421)
* Fix documentation typo in qbrb.h

* Fix section number in doxygen2man manual

* Point Doxygen to our examples

* No HTML documentation anymore
2020-09-25 08:52:36 +01:00
Chrissie Caulfield
073befc1ce
doxygen2man: Remove horrible hack (#420)
It caused \f macros to get truncated and doesn't actually affect
the groffed output anyway
2020-09-25 07:50:19 +01:00
Chrissie Caulfield
07b59f50df
doxygen2man: Add support for @code blocks (#417)
* doxygen2man: Add support for @code blocks

Thanks Fabio for the review
2020-09-24 08:34:37 +01:00
Ferenc Wágner
e06b1b88ad New upstream version 2.0.1 2020-09-22 17:01:30 +02:00
Chrissie Caulfield
cb63b5798d
man: Tidy man pages (#416)
Fix doxygen2man to add a RETURN section even if the file has
no @return stanza.
Add support for @c tags

Quote the % signs in qb_log_format_add manpage
2020-09-16 09:55:32 +01:00
Chrissie Caulfield
6d35611524
doxygen2man: Add option to read copyright line from the header file (#415)
* doxygen2man: Add option to read copyright line from the header file

This should help make builds reproducible.

I tried various methods of getting the date, using 'git' is no use as
it could be run from a tarball, using the file date doesn't work either
so this seems a reasonable compromise.

* man: Use SOURCE_EPOCH to make manpage dates reproducible

Also add build-aux/update-copyright.sh to keep header file
copyright lines up-to-date.

All code taken from knet
2020-09-09 15:06:55 +01:00
Fabio M. Di Nitto
caec56b295
[doxy] fix build when more aggressive -W options are used (#410)
make[2]: Entering directory '/builddir/build/BUILD/kronosnet-1.17/man'
gcc -DHAVE_CONFIG_H -I. -I..    -O3 -ggdb3 -Werror -Wall -Wextra -Wno-unused-parameter -pthread  -I/usr/include/libxml2   -c -o doxyxml-doxyxml.o `test -f 'doxyxml.c' || echo './'`doxyxml.c
doxyxml.c: In function 'allcaps':
doxyxml.c:414:13: error: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Werror=sign-compare]
  414 |  for (i=0; i< strlen(name); i++) {
      |             ^
cc1: all warnings being treated as errors
make[2]: *** [Makefile:623: doxyxml-doxyxml.o] Error 1
make[2]: Leaving directory '/builddir/build/BUILD/kronosnet-1.17/man'
make[1]: *** [Makefile:567: all-recursive] Error 1

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
2020-07-15 08:25:06 +01:00
Christine Caulfield
71a9c8c923 doxygen2man: Tidy RETURN VALUE 2020-07-02 14:04:17 +01:00
Chrissie Caulfield
d1bbe1edd3
doxygen2man - Print structure descriptions (where available) (#408)
Tidy 'description' fields (get rid of superfluous newlines)
and fix a couple of crashes
2020-07-02 10:18:33 +01:00
Chrissie Caulfield
b19f706144
Make manpages (#405)
* man: Use doxygen2man to make the API manpages

* [build] drop unused target

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>

* [build] update gitignore

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>

* [docs] make build -j safe and drop unnecessary dox config files

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>

* man: Use doxygen2man to generate *.h.3 man pages

so we don't need to use the awful doxygen ones

Co-authored-by: Fabio M. Di Nitto <fdinitto@redhat.com>
2020-06-26 13:03:48 +01:00
Chrissie Caulfield
e592fb461e
doxygen2man: Fix a couple of the worst coverity errors (#404) 2020-06-22 13:58:21 +01:00
Chrissie Caulfield
59a16df610
doxygen2man - Lots of new features & fixes for parsing libqb manpages (#402)
doxygen2man: Lots of fixes and features

a) Make it quieter in normal operation
b) add options for hard coded things (like company name)
c) handle typedef members of structures
d) tidy function pointers in structs
e) get header file name from the XML or commandline
d) Add support for @ref tags in description
e) add support for @note annotations
f) Don't print (null) if there is no @brief description
g) Add include prefix option
h) use strncat rather than strcat
2020-06-22 13:04:16 +01:00
Fabio M. Di Nitto
93f9975617
Doxygen2man (#388)
* 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 <fdinitto@redhat.com>

* [build] cleanup variable names

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>

* [build] add conditionals to use internal or external doxygen2man

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>

* Update .gitignore

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>

Co-authored-by: Christine Caulfield <ccaulfie@redhat.com>
2020-03-18 10:29:38 +01:00