summaryrefslogtreecommitdiffstats
path: root/bash-completion/Makemodule.am
diff options
context:
space:
mode:
authorVille Skyttä2013-04-07 10:56:12 +0200
committerKarel Zak2013-04-08 17:10:33 +0200
commite6d2618786e6d73367b3bf7ef2470c444ee2c6ce (patch)
tree6883479107e448d3ae74b41e02db8c7e81e1f4de /bash-completion/Makemodule.am
parentbash-completion: Don't offer short options where corresponding long one exists. (diff)
downloadkernel-qcow2-util-linux-e6d2618786e6d73367b3bf7ef2470c444ee2c6ce.tar.gz
kernel-qcow2-util-linux-e6d2618786e6d73367b3bf7ef2470c444ee2c6ce.tar.xz
kernel-qcow2-util-linux-e6d2618786e6d73367b3bf7ef2470c444ee2c6ce.zip
bash-completion: Symlink runuser symlink to su so it gets loaded on demand.
Signed-off-by: Ville Skyttä <ville.skytta@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com> [kzak@redhat.com: - use '-runuser' in the install hook - use the hook only if runuser is enabled]
Diffstat (limited to 'bash-completion/Makemodule.am')
-rw-r--r--bash-completion/Makemodule.am7
1 files changed, 7 insertions, 0 deletions
diff --git a/bash-completion/Makemodule.am b/bash-completion/Makemodule.am
index 34bdc6cb4..1a15bfa10 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