diff options
author | Philip Sequeira <phsequei@gmail.com> | 2014-10-10 13:58:41 -0400 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-10-11 13:26:12 +0200 |
commit | 977ff1034f39c0e693d6cbc1ef12743ac07121ee (patch) | |
tree | 3b308b1088aaba63ea07615a0b88d17895601ce3 | |
parent | ab41b8d27bf8a25caeac32b816855b5379f6cdf6 (diff) | |
download | mpv-977ff1034f39c0e693d6cbc1ef12743ac07121ee.tar.bz2 mpv-977ff1034f39c0e693d6cbc1ef12743ac07121ee.tar.xz |
build: make zsh completion directory configurable
Also, use the zsh default location (rather than the Debian one).
-rw-r--r-- | wscript | 1 | ||||
-rw-r--r-- | wscript_build.py | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -768,6 +768,7 @@ _INSTALL_DIRS_LIST = [ ('datadir', '${PREFIX}/share', 'data files'), ('mandir', '${DATADIR}/man', 'man pages '), ('docdir', '${DATADIR}/doc/mpv', 'documentation files'), + ('zshdir', '${DATADIR}/zsh/site-functions', 'zsh completion functions'), ] def options(opt): diff --git a/wscript_build.py b/wscript_build.py index a3548a4f59..09f0837de2 100644 --- a/wscript_build.py +++ b/wscript_build.py @@ -563,7 +563,7 @@ def build(ctx): if ctx.dependency_satisfied('zsh-comp'): ctx.zshcomp(target = "etc/_mpv") ctx.install_files( - ctx.env.DATADIR + '/zsh/vendor-completions', + ctx.env.ZSHDIR, ['etc/_mpv']) ctx.install_files( |