summaryrefslogtreecommitdiffstats
path: root/wscript_build.py
diff options
context:
space:
mode:
authorAlessandro Ghedini <alessandro@ghedini.me>2014-06-08 16:00:43 +0200
committerwm4 <wm4@nowhere>2014-06-08 20:48:42 +0200
commitcc74bc3fecd9d44d62ff162394cff02ad436a9cc (patch)
treeaef147eb40189cc07eda51ecdf775ad2c52c02d8 /wscript_build.py
parentda27eceb85269f7fbe656e5d967936bcf33e1aa0 (diff)
downloadmpv-cc74bc3fecd9d44d62ff162394cff02ad436a9cc.tar.bz2
mpv-cc74bc3fecd9d44d62ff162394cff02ad436a9cc.tar.xz
build: generate and install zsh completion script
Diffstat (limited to 'wscript_build.py')
-rw-r--r--wscript_build.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/wscript_build.py b/wscript_build.py
index c5063f38d3..6f574ced6e 100644
--- a/wscript_build.py
+++ b/wscript_build.py
@@ -524,6 +524,12 @@ def build(ctx):
if ctx.dependency_satisfied('pdf-build'):
_build_pdf(ctx)
+ if ctx.dependency_satisfied('zsh-comp'):
+ ctx.zshcomp(target = "etc/_mpv")
+ ctx.install_files(
+ ctx.env.DATADIR + '/zsh/vendor-completions',
+ ['etc/_mpv'])
+
ctx.install_files(
ctx.env.DATADIR + '/applications',
['etc/mpv.desktop'] )