Skip to content

Commit 50315d8

Browse files
authored
Merge 8801edd into 8c45b56
2 parents 8c45b56 + 8801edd commit 50315d8

File tree

14 files changed

+79
-38
lines changed

14 files changed

+79
-38
lines changed

NEWS.adoc

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -183,16 +183,20 @@ https://github.com/networkupstools/nut/milestone/9
183183
- NUT Monitor GUI:
184184
* Ported Python 3 version to Qt6, now shipped alongside Qt5 for systems
185185
with either or both, maximizing compatibility with old and new setups.
186-
187-
- Introduced handling (possibly rewriting) for man page section "Overviews,
188-
conventions, and miscellaneous" (commonly number 7), to deliver support
189-
for `man nut` queries (NUT overview manual page also created). [#2945]
190-
191-
- A new `configure --with-docs-man-dir-as-base` option was introduced so
192-
that directories for man page sections can now be automatically named
193-
as either "base" number of the section (e.g. `man1`) or by full section
194-
name (`man1m`), as different OS distributions have different preferences
195-
in this regard. [#2950]
186+
[#2946]
187+
188+
- Manual page recipes and contents:
189+
* Introduced handling (possibly rewriting) for man page section "Overviews,
190+
conventions, and miscellaneous" (commonly number 7), to deliver support
191+
for `man nut` queries (NUT overview manual page also created). [#2945]
192+
* A new `configure --with-docs-man-dir-as-base` option was introduced so
193+
that directories for man page sections can now be automatically named
194+
as either "base" number of the section (e.g. `man1`) or by full section
195+
name (`man1m`), as different OS distributions have different preferences
196+
in this regard. [#2950]
197+
* Option to `configure --enable-docs-man-for-progs-built-only` was added,
198+
to differentiate NUT builds that deliver man pages for only built programs
199+
(legacy default) or for all of them (as needed for docs sites). [#2976]
196200

197201
- The `BUILD_TYPE=default-all-errors ci_build.sh` script handling was
198202
revised to simplify code, and to default in CI builds to a quicker

UPGRADING.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ Changes from 2.8.3 to 2.8.4
3636
As a packager, you may have to update the recipes accordingly (especially
3737
if your platform rewrites section numbers). [#2945, #2950]
3838
39+
- Option to `configure --enable-docs-man-for-progs-built-only` was added,
40+
to differentiate NUT builds that deliver man pages for only built programs
41+
(legacy default) or for all of them (as needed for docs sites). [#2976]
42+
3943
- Added APC BVKxxxM2 to list of devices where `lbrb_log_delay_sec=N` may be
4044
necessary to address spurious LOWBATT and REPLACEBATT events. [issue #2942]
4145

docs/man/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
/tmp/
1212
/linkman-driver-names.txt
1313
/linkman-drivertool-names.txt
14+
/linkman-docbuildmode-note.txt
1415
/linkman-*.txt.tmp
1516
/.check-html-man
1617
/.check-man-pages

docs/man/Makefile.am

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1585,7 +1585,7 @@ endif !WITH_HTML_SINGLE
15851585
# To regenerate these files, you may have to `make distclean` first
15861586
# FIXME: Track also clients (e.g. NUT-Monitor UI, etc.), development-only tools
15871587
# (sockdebug), or platform-specific progs (nut.exe)
1588-
LINKMAN_INCLUDE_GENERATED = linkman-driver-names.txt linkman-drivertool-names.txt
1588+
LINKMAN_INCLUDE_GENERATED = linkman-driver-names.txt linkman-drivertool-names.txt linkman-docbuildmode-note.txt
15891589
LINKMAN_INCLUDE_CONSUMERS = index.txt upsd.txt nutupsdrv.txt nut.txt
15901590
CLEANFILES = linkman-*.txt.tmp
15911591

@@ -1636,9 +1636,38 @@ linkman-drivertool-names.txt: Makefile
16361636
rm -f "$(builddir)/$(@F).tmp" ; \
16371637
fi
16381638

1639+
# Doing this dynamically as here, so we may later deliver some more dynamic
1640+
# content if desired (e.g. lists of built/not-built programs, date, version,
1641+
# etc.). Or maybe not, we'll see :)
1642+
if DOC_INSTALL_SELECTED_MANS_PROGS_BUILT
1643+
1644+
linkman-docbuildmode-note.txt: Makefile
1645+
@echo " GENERATE-LINKMAN $@"
1646+
@( echo 'NOTE: This build of NUT was configured to deliver only manual pages for programs that were actually built. For more information about the ecosystem please see '; \
1647+
echo 'ifndef::website[]' ; \
1648+
echo 'the NUT website listing at https://networkupstools.org/docs/man/index.html or ' ; \
1649+
echo 'endif::website[]' ; \
1650+
echo 'the sources of these pages at https://github.com/networkupstools/nut/tree/master/docs/man'; \
1651+
) > "$(builddir)/$(@F)"
1652+
1653+
else !DOC_INSTALL_SELECTED_MANS_PROGS_BUILT
1654+
1655+
linkman-docbuildmode-note.txt: Makefile
1656+
@echo " GENERATE-LINKMAN $@"
1657+
@( echo 'NOTE: This build of NUT was configured to deliver all available manual'; \
1658+
echo 'ifndef::website[]' ; \
1659+
echo 'pages, and may include those for programs that were not actually built or installed.' ; \
1660+
echo 'endif::website[]' ; \
1661+
echo 'ifdef::website[]' ; \
1662+
echo 'pages.' ; \
1663+
echo 'endif::website[]' ; \
1664+
) > "$(builddir)/$(@F)"
1665+
1666+
endif !DOC_INSTALL_SELECTED_MANS_PROGS_BUILT
1667+
16391668
# Dependencies are about particular filenames, since over time
16401669
# we might have several use-cases for LINKMAN_INCLUDE_GENERATED:
1641-
$(LINKMAN_INCLUDE_CONSUMERS): linkman-driver-names.txt linkman-drivertool-names.txt
1670+
$(LINKMAN_INCLUDE_CONSUMERS): linkman-driver-names.txt linkman-drivertool-names.txt linkman-docbuildmode-note.txt
16421671

16431672
# These files are generated when we build from git source so not tracked in
16441673
# git, and not part of tarball (to be in builddir) - so not in EXTRA_DIST.

docs/man/clone-outlet.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ Arjen de Korte <adkorte-guest@alioth.debian.org>
179179
SEE ALSO
180180
--------
181181

182-
linkman:upscmd[1],
183-
linkman:upsrw[1],
182+
linkman:upscmd[8],
183+
linkman:upsrw[8],
184184
linkman:ups.conf[5],
185185
linkman:clone[8],
186186
linkman:nutupsdrv[8]

docs/man/clone.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ Arjen de Korte <adkorte-guest@alioth.debian.org>
216216
SEE ALSO
217217
--------
218218

219-
linkman:upscmd[1],
220-
linkman:upsrw[1],
219+
linkman:upscmd[8],
220+
linkman:upsrw[8],
221221
linkman:ups.conf[5],
222222
linkman:clone-outlet[8],
223223
linkman:nutupsdrv[8]

docs/man/dummy-ups.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ Dummy Mode
3333
In this mode, *dummy-ups* looks like a standard NUT device driver to
3434
linkman:upsd[8] and allows one to change any value for testing purposes.
3535

36-
It is both interactive, controllable through the linkman:upsrw[1] and
37-
linkman:upscmd[1] commands (or equivalent graphical tool), and batchable
36+
It is both interactive, controllable through the linkman:upsrw[8] and
37+
linkman:upscmd[8] commands (or equivalent graphical tool), and batchable
3838
through script files.
3939

4040
It can be configured, launched and used as any other "real" NUT driver.
@@ -250,7 +250,7 @@ INTERACTION
250250
Once the driver is loaded in dummy mode, you can change any variables, except
251251
those of the `driver.*` and `server.*` collections.
252252
You can do this by either editing the definition file, or use the
253-
linkman:upsrw[1] and linkman:upscmd[1] commands.
253+
linkman:upsrw[8] and linkman:upscmd[8] commands.
254254

255255
Note that in simulation mode, new variables can be added on the fly, but only
256256
by adding these to the definition file (and waiting for it to be re-read).
@@ -315,8 +315,8 @@ Arnaud Quette
315315
SEE ALSO
316316
--------
317317

318-
linkman:upscmd[1],
319-
linkman:upsrw[1],
318+
linkman:upscmd[8],
319+
linkman:upsrw[8],
320320
linkman:ups.conf[5],
321321
linkman:nutupsdrv[8]
322322

docs/man/failover.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ Any linkman:upsmon[8] clients would be set to monitor the `failover` UPS.
183183

184184
The driver fully supports setting variables and performing instant commands on
185185
the currently elected primary UPS driver, which are proxied and with end-to-end
186-
tracking also being possible (linkman:upscmd[1] and linkman:upsrw[1] `-w`). You
186+
tracking also being possible (linkman:upscmd[8] and linkman:upsrw[8] `-w`). You
187187
may notice some variables and commands will be prefixed with `upstream.`, this
188188
is to clearly separate the upstream commands from those of `failover` itself.
189189

@@ -281,8 +281,8 @@ Sebastian Kuttnig <sebastian.kuttnig@gmail.com>
281281
SEE ALSO
282282
--------
283283

284-
linkman:upscmd[1],
285-
linkman:upsrw[1],
284+
linkman:upscmd[8],
285+
linkman:upsrw[8],
286286
linkman:ups.conf[5],
287287
linkman:upsc[8],
288288
linkman:upsmon[8],

docs/man/huawei-ups2000.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
HUAWEI_UPS2000(8)
1+
HUAWEI-UPS2000(8)
22
=================
33

44
NAME

docs/man/index.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ endif::website[]
77
User manual pages
88
-----------------
99

10+
include::{builddir}linkman-docbuildmode-note.txt[]
11+
1012
ifndef::in-nut-manpage[]
1113
NUT overview
1214
~~~~~~~~~~~~

0 commit comments

Comments
 (0)