diff options
author | Colin Watson <cjwatson@debian.org> | 2022-10-18 00:24:37 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2022-10-18 00:24:38 +0100 |
commit | 71aefedddd2c1156c5cea8ebd27debc4e23b458a (patch) | |
tree | fde6d4b0ec06accf7cf74bc55996d359b2b2acc0 /m4 | |
parent | 09304c00a4a3dea95da5d1f0aa1ad4c20c292f3b (diff) |
Add 3type to default section list
This is used by the Linux man-pages package, and should be lower
priority than section 2. Suggested by Alejandro Colomar.
Fixes https://gitlab.com/cjwatson/man-db/-/issues/5.
* include/manconfig.h (STD_SECTIONS): Add `3type` between sections `2`
and `5`.
* m4/man-arg-sections.m4 (MAN_ARG_SECTIONS): Likewise.
* man/man5/manpath.man5 (FORMAT): Update documentation of SECTION.
* src/tests/man-exact-section-matches: Update default section order.
* src/man_db.conf.in (SECTION): Update documentation.
* NEWS.md: Document this.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/man-arg-sections.m4 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/m4/man-arg-sections.m4 b/m4/man-arg-sections.m4 index 6d97e6e9..20441b39 100644 --- a/m4/man-arg-sections.m4 +++ b/m4/man-arg-sections.m4 @@ -1,17 +1,17 @@ -# man-arg-sections.m4 serial 2 +# man-arg-sections.m4 serial 3 dnl MAN_ARG_SECTIONS dnl Add a --with-sections option. AC_DEFUN([MAN_ARG_SECTIONS], [ AC_ARG_WITH([sections], -[AS_HELP_STRING([--with-sections=SECTIONS], [use manual page sections SECTIONS @<:@1 n l 8 3 0 2 5 4 9 6 7@:>@])], +[AS_HELP_STRING([--with-sections=SECTIONS], [use manual page sections SECTIONS @<:@1 n l 8 3 0 2 3type 5 4 9 6 7@:>@])], [if test "$withval" = "yes" || test "$withval" = "no" then AC_MSG_ERROR([--with-sections requires an argument]) else sections="$withval" fi], - [: ${sections=1 n l 8 3 0 2 5 4 9 6 7}]) + [: ${sections=1 n l 8 3 0 2 3type 5 4 9 6 7}]) AC_SUBST([sections])dnl ]) |