[vlc-commits] apple: build: use absolute path for VLC_SCRIPT_DIR
Alexandre Janniaux
git at videolan.org
Sun May 3 01:05:05 CEST 2020
vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Tue Apr 28 19:48:13 2020 +0200| [671ba2fd8c187b872c6c8d9547494679a06b5880] | committer: Alexandre Janniaux
apple: build: use absolute path for VLC_SCRIPT_DIR
As the script use `cd`, this ensure all path are correctly defined in
future usage and avoid wasting time on incorrect path.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=671ba2fd8c187b872c6c8d9547494679a06b5880
---
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 32426f423d..093a5b6a10 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" ] \
More information about the vlc-commits
mailing list