getopt: use examples installation directory in man page

Addresses: https://bugs.debian.org/913049
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2020-02-12 21:05:54 +00:00
parent f0158208a9
commit 44702f12f7
No known key found for this signature in database
GPG Key ID: 0D46FEF7E61DBB46
4 changed files with 6 additions and 5 deletions

View File

@ -118,6 +118,7 @@ edit_cmd = sed \
-e 's|@datadir[@]|$(datadir)|g' \
-e 's|@sbindir[@]|$(sbindir)|g' \
-e 's|@bindir[@]|$(bindir)|g' \
-e 's|@docdir[@]|$(docdir)|g' \
-e 's|@includedir[@]|$(includedir)|g' \
-e 's|@runstatedir[@]|$(runstatedir)|g' \
-e 's|@usrlib_execdir[@]|$(usrlib_execdir)|g' \

View File

@ -1,3 +1,4 @@
getopt.1
uuidd.8
uuidd.rc
uuidd.service

View File

@ -202,6 +202,7 @@ endif
if BUILD_GETOPT
usrbin_exec_PROGRAMS += getopt
dist_man_MANS += misc-utils/getopt.1
PATHFILES += misc-utils/getopt.1
getopt_SOURCES = misc-utils/getopt.c
getoptexampledir = $(docdir)/getopt/
dist_getoptexample_SCRIPTS = \

View File

@ -417,11 +417,9 @@ if it is called with
.SH EXAMPLES
Example scripts for (ba)sh and (t)csh are provided with the
.BR getopt (1)
distribution, and are optionally installed in
.I /usr/share/getopt/
or
.I /usr/share/doc/
in the util-linux subdirectory.
distribution, and are installed in
.I @docdir@/getopt/
directory.
.SH ENVIRONMENT
.IP POSIXLY_CORRECT
This environment variable is examined by the