Skip to content

Commit

Permalink
build: make zsh completion directory configurable
Browse files Browse the repository at this point in the history
Also, use the zsh default location (rather than the Debian one).
  • Loading branch information
qmega authored and wm4 committed Oct 11, 2014
1 parent ab41b8d commit 977ff10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion wscript_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ def get_deps():
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(
Expand Down

0 comments on commit 977ff10

Please sign in to comment.