代码拉取完成,页面将自动刷新
#! /bin/sh
BUILD_PLATFORM='unknown'
if [ "$(uname)" = 'Linux' ]; then
BUILD_PLATFORM='linux'
elif [ "$(uname)" = 'Darwin' ]; then
BUILD_PLATFORM='darwin'
fi
if [ ! -d "vlc-android" ]; then
echp "_do_reset_vlc.sh is not supposed been executed directly"
echo "MUST under vlc-ports/android"
exit 1
fi
# 1/ libvlc, libvlccore and its plugins
TESTED_HASH=a5c4d7a
if [ ! -d "vlc" ]; then
echo "VLC source not found, cloning"
git clone git://git.videolan.org/vlc.git vlc
cd vlc
else
echo "VLC source found"
cd vlc
git reset --hard origin
git fetch origin
fi
echo "======================================="
echo "Reset to brance android ${TESTED_HASH}"
git checkout -B android ${TESTED_HASH}
git am --abort
echo "======================================="
echo "Applying the patches"
sleep 3
git am ../patches/*.patch
if [ ${BUILD_PLATFORM} = 'darwin' ]; then
echo "======================================="
echo "Applying the patches for build on darwin"
# git am ../../patches/vlc-on-macosx/*.patch
fi
echo "======================================="
echo "Applying the patches for libvlc_danmaku"
sleep 3
git am ../../patches/vlc/000*.patch
sleep 3
git am ../../patches/vlc/001*.patch
sleep 3
git am ../../patches/vlc/002*.patch
sleep 3
git am ../../patches/vlc/003*.patch
echo "======================================="
cd -
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。