summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2014-10-17 20:45:18 +0200
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>2014-10-28 12:48:38 +0200
commitee4bbe5cd3ae6d236960b0e979e4f80c7a8120f9 (patch)
treed10f99e57bbafa48896157d6770daf6f24b26cf7 /Makefile.am
parent052316e4195cc01c6b13ce9e21724cb7c25aad82 (diff)
downloadpulseaudio-ee4bbe5cd3ae6d236960b0e979e4f80c7a8120f9.tar.gz
build-sys: Alias bash-completion for all PulseAudio commands
Bash-completion 1.90 introduced support for on-demand loading of completions. Install the completion file as 'pulseaudio' to match the main command, and create symlinks as aliases for other supported commands in order to support the new system.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am14
1 files changed, 13 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 07dc73f73..665736d60 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -62,7 +62,19 @@ cmakedir = $(libdir)/cmake/PulseAudio
cmake_DATA = PulseAudioConfig.cmake PulseAudioConfigVersion.cmake
bashcompletiondir=$(sysconfdir)/bash_completion.d
-dist_bashcompletion_DATA = shell-completion/pulseaudio-bash-completion.sh
+dist_bashcompletion_DATA = shell-completion/bash/pulseaudio
+
+install-bashcompletion-aliases:
+ $(LN_S) -f pulseaudio $(DESTDIR)$(bashcompletiondir)/pactl
+ $(LN_S) -f pulseaudio $(DESTDIR)$(bashcompletiondir)/pacmd
+ $(LN_S) -f pulseaudio $(DESTDIR)$(bashcompletiondir)/pasuspender
+ $(LN_S) -f pulseaudio $(DESTDIR)$(bashcompletiondir)/padsp
+ $(LN_S) -f pulseaudio $(DESTDIR)$(bashcompletiondir)/pacat
+ $(LN_S) -f pulseaudio $(DESTDIR)$(bashcompletiondir)/paplay
+ $(LN_S) -f pulseaudio $(DESTDIR)$(bashcompletiondir)/parec
+ $(LN_S) -f pulseaudio $(DESTDIR)$(bashcompletiondir)/parecord
+
+install-data-hook: install-bashcompletion-aliases
zshcompletiondir=@zshcompletiondir@
dist_zshcompletion_DATA = shell-completion/zsh/_pulseaudio