summaryrefslogtreecommitdiffstats
path: root/rebuild
diff options
context:
space:
mode:
authorAvi Halachmi (:avih) <avihpit@yahoo.com>2021-11-25 18:27:29 +0200
committeravih <avih@users.noreply.github.com>2021-12-01 11:00:05 +0200
commit1eb1bd29d183ceb4863cc84a2fbc4bc2c3d0195d (patch)
treed71158547b41595d71f0f551cdaff9755048741c /rebuild
parentea05a4e2b4d17729ce614a5f5a1d71280c7dce22 (diff)
downloadmpv-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-xrebuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/rebuild b/rebuild
index a23b963..c8bbcd6 100755
--- a/rebuild
+++ b/rebuild
@@ -4,4 +4,4 @@ export LC_ALL=C
./update
./clean
-./build $@
+./build "$@"