mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
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.
This commit is contained in:
parent
052316e419
commit
ee4bbe5cd3
3 changed files with 17 additions and 1 deletions
14
Makefile.am
14
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
|
||||
|
|
|
|||
|
|
@ -74,6 +74,10 @@ AM_SILENT_RULES([yes])
|
|||
|
||||
AC_PROG_MKDIR_P
|
||||
|
||||
# ln -s
|
||||
|
||||
AC_PROG_LN_S
|
||||
|
||||
# CC
|
||||
|
||||
AC_PROG_CC
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue