From: Ville Skyttä Date: Sun, 7 Apr 2013 08:56:12 +0000 (+0300) Subject: bash-completion: Symlink runuser symlink to su so it gets loaded on demand. X-Git-Tag: v2.23-rc2~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6d2618786e6d73367b3bf7ef2470c444ee2c6ce;p=thirdparty%2Futil-linux.git bash-completion: Symlink runuser symlink to su so it gets loaded on demand. Signed-off-by: Ville Skyttä Signed-off-by: Karel Zak [kzak@redhat.com: - use '-runuser' in the install hook - use the hook only if runuser is enabled] --- diff --git a/bash-completion/Makemodule.am b/bash-completion/Makemodule.am index 34bdc6cb40..1a15bfa10e 100644 --- a/bash-completion/Makemodule.am +++ b/bash-completion/Makemodule.am @@ -95,10 +95,17 @@ if BUILD_NEWGRP dist_bashcompletion_DATA += \ bash-completion/newgrp endif + if BUILD_SU dist_bashcompletion_DATA += \ bash-completion/su +if BUILD_RUNUSER +install-data-hook-bashcomp-runuser:: + ln -sf su $(DESTDIR)$(bashcompletiondir)/runuser +INSTALL_DATA_HOOKS += install-data-hook-bashcomp-runuser +endif endif + if BUILD_UTMPDUMP dist_bashcompletion_DATA += \ bash-completion/utmpdump