[Android] buildsystem: use more portable shell logic test
Steve Lhomme
git at videolan.org
Tue Jun 24 10:32:39 UTC 2025
vlc-android | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jun 18 11:22:21 2025 +0200| [ea72f89bba0473e5abef6ca6cc145e59c9e0b0ba] | committer: Steve Lhomme
buildsystem: use more portable shell logic test
> https://code.videolan.org/videolan/vlc-android/commit/ea72f89bba0473e5abef6ca6cc145e59c9e0b0ba
---
buildsystem/compile-medialibrary.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/buildsystem/compile-medialibrary.sh b/buildsystem/compile-medialibrary.sh
index f4398052a0..49400f4fef 100755
--- a/buildsystem/compile-medialibrary.sh
+++ b/buildsystem/compile-medialibrary.sh
@@ -70,7 +70,7 @@ if [ ! -d "build-$ANDROID_ABI" ]; then
fi;
cd "build-$ANDROID_ABI";
-if [ ! -e ./config.status -o "$RELEASE" = "1" ]; then
+if [ ! -e ./config.status ] || [ "$RELEASE" = "1" ]; then
../configure \
--host=$TARGET_TUPLE \
--prefix=${SRC_DIR}/medialibrary/prefix/${TARGET_TUPLE} \
@@ -143,7 +143,7 @@ if [ "$RELEASE" = "1" ]; then
avlc_checkfail "Release builds must use tags"
fi
-if [ ! -d "build-android-$ANDROID_ABI/" -o ! -f "build-android-$ANDROID_ABI/build.ninja" ]; then
+if [ ! -d "build-android-$ANDROID_ABI/" ] || [ ! -f "build-android-$ANDROID_ABI/build.ninja" ]; then
PKG_CONFIG_LIBDIR="$LIBVLCJNI_SRC_DIR/vlc/build-android-${TARGET_TUPLE}/install/lib/pkgconfig" \
PKG_CONFIG_PATH="$SRC_DIR/medialibrary/prefix/${TARGET_TUPLE}/lib/pkgconfig:$LIBVLCJNI_SRC_DIR/vlc/contrib/$TARGET_TUPLE/lib/pkgconfig/" \
LDFLAGS="-Wl,-z,max-page-size=16384" \
More information about the Android
mailing list