[Android] build: don't override RELEASE env

Thomas Guillem git at videolan.org
Tue May 14 16:47:26 CEST 2019


vlc-android | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue May 14 11:30:01 2019 +0200| [5bf451d69531e6b1bfbfc852c4afadd0f6467e3b] | committer: Thomas Guillem

build: don't override RELEASE env

> https://code.videolan.org/videolan/vlc-android/commit/5bf451d69531e6b1bfbfc852c4afadd0f6467e3b
---

 compile-medialibrary.sh | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/compile-medialibrary.sh b/compile-medialibrary.sh
index d8b31346d..97b760dfd 100755
--- a/compile-medialibrary.sh
+++ b/compile-medialibrary.sh
@@ -6,7 +6,6 @@
 
 MEDIALIBRARY_HASH=c4a1c6e
 
-RELEASE=0
 while [ $# -gt 0 ]; do
     case $1 in
         help|--help)
@@ -66,7 +65,7 @@ if [ ! -d "build-$ANDROID_ABI" ]; then
 fi;
 cd "build-$ANDROID_ABI";
 
-if [ ! -e ./config.status -o "$RELEASE" = 1 ]; then
+if [ ! -e ./config.status -o "$RELEASE" = "1" ]; then
 ../configure \
     --host=$TARGET_TUPLE \
     --disable-shared \
@@ -99,7 +98,7 @@ else
       rm -rf ${MEDIALIBRARY_MODULE_DIR}/jni/obj
     fi
 fi
-if [ "$RELEASE" = 1 ]; then
+if [ "$RELEASE" = "1" ]; then
     git reset --hard ${MEDIALIBRARY_HASH}
 fi
 cd ${SRC_DIR}
@@ -122,10 +121,10 @@ if [ ! -d "build-android-$ANDROID_ABI/" ]; then
 fi;
 cd "build-android-$ANDROID_ABI/";
 
-if [ "$RELEASE" = 1 ]; then
+if [ "$RELEASE" = "1" ]; then
     MEDIALIBRARY_MODE=--disable-debug
 fi
-if [ ! -e ./config.h -o "$RELEASE" = 1 ]; then
+if [ ! -e ./config.h -o "$RELEASE" = "1" ]; then
 ../bootstrap
 ../configure \
     --host=$TARGET_TUPLE \



More information about the Android mailing list