summaryrefslogtreecommitdiffstats
path: root/configure.local.example
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2019-03-04 13:01:57 +0000
committerIngo Schwarze <schwarze@openbsd.org>2019-03-04 13:01:57 +0000
commit71a5911af71b386e3e48cce7bfeee5ad9188c4b9 (patch)
treefd26cdeb890b0104aae2cc0dfb6d774727832181 /configure.local.example
parent389c86cd15ca2e69509e25f04d7e8dd3e1e0ddf4 (diff)
downloadmandoc-71a5911af71b386e3e48cce7bfeee5ad9188c4b9.tar.gz
When the -S option is given to man(1) and the requested manual page
name is not found and the requested architecture is unknown, complain about the architecture rather than about the manual page name: $ man -S vax cpu man: Unknown architecture "vax". $ man -S sparc64 foobar man: No entry for foobar in the manual. Friendlier error message suggested by jmc@, who also OK'ed the patch.
Diffstat (limited to 'configure.local.example')
-rw-r--r--configure.local.example15
1 files changed, 13 insertions, 2 deletions
diff --git a/configure.local.example b/configure.local.example
index a5e19971..143bc82e 100644
--- a/configure.local.example
+++ b/configure.local.example
@@ -1,6 +1,6 @@
# $Id$
#
-# Copyright (c) 2014,2015,2016,2017,2018 Ingo Schwarze <schwarze@openbsd.org>
+# Copyright (c) 2014-2019 Ingo Schwarze <schwarze@openbsd.org>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
@@ -67,6 +67,17 @@ MANPATH_DEFAULT="/usr/share/man:/usr/X11R6/man:/usr/local/man"
MANPATH_BASE="/usr/share/man:/usr/X11R6/man"
+# When man(1) is called with the -S option and no manual page is
+# found matching the requested name and the requested architecture,
+# it tries to figure out whether the requested architecture is valid
+# for the present operating system. Normally, ./configure detects
+# the operating system using uname(1). If that fails or is not
+# desired, either of the following lines can be used:
+
+OSENUM=MANDOC_OS_NETBSD
+OSENUM=MANDOC_OS_OPENBSD
+OSENUM=MANDOC_OS_OTHER
+
# In manual pages written in the mdoc(7) language, the operating system
# version is displayed in the page footer line. If an operating system
# is specified as an argument to the .Os macro, that is always used.
@@ -77,7 +88,7 @@ MANPATH_BASE="/usr/share/man:/usr/X11R6/man"
# If you do not want uname(3) to be called but instead want a fixed
# string to be used, use the following line:
-OSNAME="OpenBSD 6.3"
+OSNAME="OpenBSD 6.5"
# The following installation directories are used.
# It is possible to set only one or a few of these variables,