Browse Source

getopt: use examples installation directory in man page

Addresses: https://bugs.debian.org/913049
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
pull/954/head
Sami Kerola 3 years ago
parent
commit
44702f12f7
No known key found for this signature in database
GPG Key ID: D46FEF7E61DBB46
  1. 1
      Makefile.am
  2. 1
      misc-utils/.gitignore
  3. 1
      misc-utils/Makemodule.am
  4. 8
      misc-utils/getopt.1.in

1
Makefile.am

@ -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' \

1
misc-utils/.gitignore vendored

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

1
misc-utils/Makemodule.am

@ -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 = \

8
misc-utils/getopt.1 → misc-utils/getopt.1.in

@ -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
Loading…
Cancel
Save