From 71aefedddd2c1156c5cea8ebd27debc4e23b458a Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Tue, 18 Oct 2022 00:24:37 +0100 Subject: 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. --- m4/man-arg-sections.m4 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'm4/man-arg-sections.m4') 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 ]) -- cgit v1.2.3