mirror of
https://github.com/mpv-player/mpv
synced 2025-01-18 04:51:52 +00:00
build: make zsh completion directory configurable
Also, use the zsh default location (rather than the Debian one).
This commit is contained in:
parent
ab41b8d27b
commit
977ff1034f
1
wscript
1
wscript
@ -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):
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user