[vlc-devel] [3.0 PATCH v2 01/20] win32: build.sh: fix building when PATH contains spaces

Steve Lhomme robux4 at ycbcr.xyz
Thu Apr 2 13:37:59 CEST 2020


(cherry picked from commit c3478127ad116e807e834f20bacbae52449f9052)
---
 extras/package/win32/build.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/extras/package/win32/build.sh b/extras/package/win32/build.sh
index 5bf2557d35a..c10c3b48a3e 100755
--- a/extras/package/win32/build.sh
+++ b/extras/package/win32/build.sh
@@ -96,12 +96,12 @@ if [ "$INTERACTIVE" != "yes" ] || [ ! -f ./Makefile ]; then
     ./bootstrap
 fi
 make -j$JOBS
-export PATH=$PWD/build/bin:$PATH
+export PATH="$PWD/build/bin":"$PATH"
 cd ../../
 
 export USE_FFMPEG=1
 export PKG_CONFIG_LIBDIR=$PWD/contrib/$TRIPLET/lib/pkgconfig
-export PATH=$PWD/contrib/$TRIPLET/bin:$PATH
+export PATH="$PWD/contrib/$TRIPLET/bin":"$PATH"
 
 if [ "$INTERACTIVE" = "yes" ]; then
 if [ "x$SHELL" != "x" ]; then
-- 
2.17.1



More information about the vlc-devel mailing list