[Android] Implement new ML script versioning by tag
Nicolas Pomepuy
git at videolan.org
Fri Jan 7 11:53:56 UTC 2022
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Wed Nov 17 16:03:16 2021 +0100| [24f60c6a8f58a28ffae974e8638b0311a7a4cba2] | committer: Nicolas Pomepuy
Implement new ML script versioning by tag
> https://code.videolan.org/videolan/vlc-android/commit/24f60c6a8f58a28ffae974e8638b0311a7a4cba2
---
buildsystem/compile-medialibrary.sh | 18 ++++++------------
1 file changed, 6 insertions(+), 12 deletions(-)
diff --git a/buildsystem/compile-medialibrary.sh b/buildsystem/compile-medialibrary.sh
index d1de32993..daf251a5d 100755
--- a/buildsystem/compile-medialibrary.sh
+++ b/buildsystem/compile-medialibrary.sh
@@ -6,7 +6,7 @@ set -e
# ARGUMENTS #
#############
-MEDIALIBRARY_HASH=755f4dbf7a7ef4ab2fedc8ca3ae46b1103a26a17
+MEDIALIBRARY_TAG=0.10.0
while [ $# -gt 0 ]; do
case $1 in
@@ -92,31 +92,25 @@ cd ${SRC_DIR}
# FETCH MEDIALIBRARY SOURCES #
##############################
+# Source directory doesn't exist: checking out the TAG.
+# The CI will always use this block
if [ ! -d "${MEDIALIBRARY_MODULE_DIR}/medialibrary" ]; then
echo -e "\e[1m\e[32mmedialibrary source not found, cloning\e[0m"
- git clone http://code.videolan.org/videolan/medialibrary.git "${SRC_DIR}/medialibrary/medialibrary"
+ git clone --depth 1 -b ${MEDIALIBRARY_TAG} http://code.videolan.org/videolan/medialibrary.git "${MEDIALIBRARY_MODULE_DIR}/medialibrary"
avlc_checkfail "medialibrary source: git clone failed"
cd ${MEDIALIBRARY_MODULE_DIR}/medialibrary
- # git checkout 0.5.x
- git reset --hard ${MEDIALIBRARY_HASH}
git submodule update --init libvlcpp
# TODO: remove when switching to VLC 4.0
cd libvlcpp
git am ${SRC_DIR}/buildsystem/patches/libvlcpp/*
elif [ "$RESET" = "1" ]; then
cd ${SRC_DIR}/medialibrary/medialibrary
- git reset --hard ${MEDIALIBRARY_HASH}
+ git fetch --all --tags
+ git checkout ${MEDIALIBRARY_TAG} -b ${MEDIALIBRARY_TAG}-branch
git submodule update --init libvlcpp
# TODO: remove when switching to VLC 4.0
cd libvlcpp
git am ${SRC_DIR}/buildsystem/patches/libvlcpp/*
-else
- cd ${MEDIALIBRARY_MODULE_DIR}/medialibrary
- if ! git cat-file -e ${MEDIALIBRARY_HASH}; then
- git pull --rebase
- rm -rf ${MEDIALIBRARY_MODULE_DIR}/jni/libs
- rm -rf ${MEDIALIBRARY_MODULE_DIR}/jni/obj
- fi
fi
cd ${SRC_DIR}
More information about the Android
mailing list