From 346dc42381aa035d404ae8c3faa4734ab64f828f Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 24 Oct 2014 12:26:12 -0400 Subject: bash-completion: fix runuser install The runuser symlink used to depend on su being enabled, but a refactoring broke that. So if you build with runuser enabled but not su, you end up with a broken symlink. Rework the logic so it works in both cases. Signed-off-by: Mike Frysinger --- bash-completion/Makemodule.am | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bash-completion/Makemodule.am') diff --git a/bash-completion/Makemodule.am b/bash-completion/Makemodule.am index 271a6db6e..d65cc8f51 100644 --- a/bash-completion/Makemodule.am +++ b/bash-completion/Makemodule.am @@ -154,7 +154,11 @@ endif if BUILD_RUNUSER install-data-hook-bashcomp-runuser:: +if BUILD_SU ln -sf su $(DESTDIR)$(bashcompletiondir)/runuser +else + cp $(top_srcdir)/bash-completion/su $(DESTDIR)$(bashcompletiondir)/runuser +endif INSTALL_DATA_HOOKS += install-data-hook-bashcomp-runuser endif -- cgit v1.2.3-55-g7522