Re: [PATCH] bash-completion: Symlink runuser symlink to su so it gets loaded on demand.

Karel Zak
2013-04-08T16:27:00Z

On Sun, Apr 07, 2013 at 11:56:12AM +0300, Ville Skyttä wrote:
> bash-completion/Makemodule.am | 3 +++
> 1 file changed, 3 insertions(+)

Applied, thanks.

>
> diff --git a/bash-completion/Makemodule.am b/bash-completion/Makemodule.am
> index 34bdc6c..4c41218 100644
> --- a/bash-completion/Makemodule.am
> +++ b/bash-completion/Makemodule.am
> @@ -98,6 +98,9 @@ endif
> if BUILD_SU
> dist_bashcompletion_DATA += \
> bash-completion/su
> +install-data-hook-bashcomp-su::
> + ln -sf su $(DESTDIR)$(bashcompletiondir)/runuser
> +INSTALL_DATA_HOOKS += install-data-hook-bashcomp-su

I have renamed the hook (*-runuser rather than *-su) and added
'if BUILD_RUNUSER'.

Karel

--
Karel Zak <kzak@redhat.com>