diff options
author | Avi Halachmi (:avih) <avihpit@yahoo.com> | 2021-11-25 18:27:29 +0200 |
---|---|---|
committer | avih <avih@users.noreply.github.com> | 2021-12-01 11:00:05 +0200 |
commit | 1eb1bd29d183ceb4863cc84a2fbc4bc2c3d0195d (patch) | |
tree | d71158547b41595d71f0f551cdaff9755048741c /rebuild | |
parent | ea05a4e2b4d17729ce614a5f5a1d71280c7dce22 (diff) | |
download | mpv-build-1eb1bd29d183ceb4863cc84a2fbc4bc2c3d0195d.tar.bz2 mpv-build-1eb1bd29d183ceb4863cc84a2fbc4bc2c3d0195d.tar.xz |
build options: allow CLI arguments with spaces
This affects CLI arguments to ./build, ./rebuild, as well as when
invoking any of scripts/*-build directly.
Previously, if such CLI argument contained a space, then the argument
was incorrectly split. Now spaces are taken correctly.
The issue was that the scripts used unquoted $@, which is identical to
unquoted $*, i.e. it's field-split on IFS.
Now we use quoted "$@", which preserves the arguments exactly.
Also, previously scripts/fribidi-build ignored the CLI arguments, and
now it doesn't (but we still override any -jN option with -j1).
Diffstat (limited to 'rebuild')
-rwxr-xr-x | rebuild | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4,4 +4,4 @@ export LC_ALL=C ./update ./clean -./build $@ +./build "$@" |