public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] bash-completion: Symlink runuser symlink to su so it gets loaded on demand.
@ 2013-04-07  8:56 Ville Skyttä
  2013-04-08 16:26 ` Karel Zak
  0 siblings, 1 reply; 2+ messages in thread
From: Ville Skyttä @ 2013-04-07  8:56 UTC (permalink / raw)
  To: util-linux


Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
---
 bash-completion/Makemodule.am | 3 +++
 1 file changed, 3 insertions(+)

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
 endif
 if BUILD_UTMPDUMP
 dist_bashcompletion_DATA += \
-- 
1.7.11.7


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] bash-completion: Symlink runuser symlink to su so it gets loaded on demand.
  2013-04-07  8:56 [PATCH] bash-completion: Symlink runuser symlink to su so it gets loaded on demand Ville Skyttä
@ 2013-04-08 16:26 ` Karel Zak
  0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2013-04-08 16:26 UTC (permalink / raw)
  To: Ville Skyttä; +Cc: util-linux

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>
 http://karelzak.blogspot.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-04-08 16:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-07  8:56 [PATCH] bash-completion: Symlink runuser symlink to su so it gets loaded on demand Ville Skyttä
2013-04-08 16:26 ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox