0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

build: fix generation of zsh completion

The Perl script must be run *after* the mpv executable is generated. Also use
an absolute path to it.
This commit is contained in:
Alessandro Ghedini 2014-06-09 15:43:47 +02:00 committed by wm4
parent 85cd114e54
commit 6842d4bde5

View File

@ -38,8 +38,8 @@ def __matroska_definitions__(ctx, **kwargs):
def __zshcomp__(ctx, **kwargs):
ctx(
rule = __zshcomp_cmd__(ctx, './mpv'),
before = ("c",),
rule = __zshcomp_cmd__(ctx, ctx.bldnode.abspath() + '/mpv'),
after = ("c", "cprogram",),
name = os.path.basename(kwargs['target']),
**kwargs
)