[vlc-devel] [PATCH v2 01/17] apple: build: use absolute path for VLC_SCRIPT_DIR

Alexandre Janniaux ajanni at videolabs.io
Wed Apr 29 22:40:44 CEST 2020


As the script use `cd`, this ensure all path are correctly defined in
future usage and avoid wasting time on incorrect path.
---
 extras/package/apple/build.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/extras/package/apple/build.sh b/extras/package/apple/build.sh
index 32426f423d2..093a5b6a108 100755
--- a/extras/package/apple/build.sh
+++ b/extras/package/apple/build.sh
@@ -26,7 +26,7 @@
 #        shared: Shared libraries and modules
 
 # Dir of this script
-readonly VLC_SCRIPT_DIR="${BASH_SOURCE%/*}"
+readonly VLC_SCRIPT_DIR="$(cd "${BASH_SOURCE%/*}"; pwd)"
 
 # Verify script run location
 [ ! -f "$(pwd)/../src/libvlc.h" ] \
-- 
2.26.2



More information about the vlc-devel mailing list