mirror of
https://github.com/mpv-player/mpv
synced 2024-12-22 06:42:03 +00:00
build: fix building with spaces in path
This commit is contained in:
parent
638a398d62
commit
5035501037
@ -2,15 +2,15 @@ from waflib.Build import BuildContext
|
||||
import os
|
||||
|
||||
def __file2string_cmd__(ctx):
|
||||
return "${{BIN_PERL}} {0}/TOOLS/file2string.pl ${{SRC}} > ${{TGT}}" \
|
||||
return '"${{BIN_PERL}}" "{0}/TOOLS/file2string.pl" "${{SRC}}" > "${{TGT}}"' \
|
||||
.format(ctx.srcnode.abspath())
|
||||
|
||||
def __matroska_cmd__(ctx, argument):
|
||||
return "${{BIN_PERL}} {0}/TOOLS/matroska.pl {1} ${{SRC}} > ${{TGT}}" \
|
||||
return '"${{BIN_PERL}}" "{0}/TOOLS/matroska.pl" "{1}" "${{SRC}}" > "${{TGT}}"' \
|
||||
.format(ctx.srcnode.abspath(), argument)
|
||||
|
||||
def __zshcomp_cmd__(ctx, argument):
|
||||
return "${{BIN_PERL}} {0}/TOOLS/zsh.pl {1} > ${{TGT}}" \
|
||||
return '"${{BIN_PERL}}" "{0}/TOOLS/zsh.pl" "{1}" > "${{TGT}}"' \
|
||||
.format(ctx.srcnode.abspath(), argument)
|
||||
|
||||
def __file2string__(ctx, **kwargs):
|
||||
|
Loading…
Reference in New Issue
Block a user