summaryrefslogtreecommitdiff
path: root/shell-completion
diff options
context:
space:
mode:
authorArnaud Rebillout <arnaud.rebillout@collabora.com>2018-11-05 11:42:24 +0700
committerArun Raghavan <arun@arunraghavan.net>2019-06-08 11:57:00 +0200
commit8d241d62c52c6621c9996c2ac74a8dd9741a7489 (patch)
treeb46e8b53510251db7af7b2ca68b85fb94ea55201 /shell-completion
parenta37046cc38df7fc605f0287e135fa96d07b74317 (diff)
meson: Install completion files
Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
Diffstat (limited to 'shell-completion')
-rw-r--r--shell-completion/bash/meson.build17
-rw-r--r--shell-completion/zsh/meson.build1
2 files changed, 18 insertions, 0 deletions
diff --git a/shell-completion/bash/meson.build b/shell-completion/bash/meson.build
new file mode 100644
index 000000000..443049bd1
--- /dev/null
+++ b/shell-completion/bash/meson.build
@@ -0,0 +1,17 @@
+aliases = [
+ 'pacat',
+ 'pacmd',
+ 'pactl',
+ 'padsp',
+ 'paplay',
+ 'parec',
+ 'parecord',
+ 'pasuspender',
+]
+
+install_data('pulseaudio', install_dir : bashcompletiondir)
+
+foreach alias : aliases
+ dst = join_paths(bashcompletiondir, alias)
+ meson.add_install_script('ln', '-fs', 'pulseaudio', dst)
+endforeach
diff --git a/shell-completion/zsh/meson.build b/shell-completion/zsh/meson.build
new file mode 100644
index 000000000..88c33554f
--- /dev/null
+++ b/shell-completion/zsh/meson.build
@@ -0,0 +1 @@
+install_data('_pulseaudio', install_dir : zshcompletiondir)