From: Filipe Brandenburger Date: Wed, 27 May 2015 09:38:20 +0000 (-0700) Subject: man: use configured path for mount and umount binaries in manpages X-Git-Tag: v221~268 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d31dd62ba290f3f299b65f9319bf5a5436ca8622;p=thirdparty%2Fsystemd.git man: use configured path for mount and umount binaries in manpages Export the MOUNT_PATH and UMOUNT_PATH variables as XML entities and use them in the systemctl.1 manpage instead of hardcoding the path in /usr/bin. Tested: - Ran ./configure ac_cv_path_MOUNT_PATH=/bin/mount (same for umount) and rebuilt the manpages, confirmed that the correct path was in man/systemctl.1 - Rebuilt man/systemd.directives.xml and the man pages derived from it, confirmed that the correct paths were there as well. --- diff --git a/Makefile.am b/Makefile.am index d6010c5cc24..98ceb773a8a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -6505,6 +6505,8 @@ substitutions = \ '|DEBUGTTY=$(DEBUGTTY)|' \ '|KILL=$(KILL)|' \ '|KMOD=$(KMOD)|' \ + '|MOUNT_PATH=$(MOUNT_PATH)|' \ + '|UMOUNT_PATH=$(UMOUNT_PATH)|' \ '|MKDIR_P=$(MKDIR_P)|' \ '|QUOTAON=$(QUOTAON)|' \ '|QUOTACHECK=$(QUOTACHECK)|' \ diff --git a/man/systemctl.xml b/man/systemctl.xml index a2c8a731754..35f47de52c6 100644 --- a/man/systemctl.xml +++ b/man/systemctl.xml @@ -413,8 +413,8 @@ processes. Not all unit types manage processes of these types however. For example, for mount units, control processes are defined (which are the invocations of - /usr/bin/mount and - /usr/bin/umount), but no main process + &MOUNT_PATH; and + &UMOUNT_PATH;), but no main process is defined. If omitted, defaults to .