2022-09-18 12:17:53 +02:00
|
|
|
#!/bin/bash -e
|
2022-09-30 22:42:14 +02:00
|
|
|
# shellcheck disable=SC2250,SC2154,SC2086,SC1091,SC2312
|
2022-09-18 12:17:53 +02:00
|
|
|
|
2022-12-08 22:34:08 +01:00
|
|
|
if [[ -z "$CI_WORKSPACE" ]]; then
|
|
|
|
CI_WORKSPACE=$DRONE_WORKSPACE_BASE
|
|
|
|
fi
|
2022-08-22 17:51:08 +02:00
|
|
|
|
|
|
|
TOPDIR=$(pwd)
|
2022-08-22 22:55:41 +02:00
|
|
|
changelog=${TOPDIR}/changelog-${device}-${version}.md
|
2022-08-22 17:51:08 +02:00
|
|
|
|
|
|
|
declare -A before
|
2022-09-03 13:41:51 +02:00
|
|
|
tmp=($(repo forall -c 'echo "${REPO_PATH}:$(git rev-parse --short HEAD)"'))
|
2022-08-22 17:51:08 +02:00
|
|
|
for i in "${tmp[@]}"; do
|
|
|
|
IFS=: read -r folder commit <<<"${i}"
|
|
|
|
before[${folder}]=${commit}
|
|
|
|
done
|
|
|
|
|
|
|
|
repo sync -q -c -j 6 --fail-fast --force-sync --no-tags
|
|
|
|
|
2022-09-27 08:44:32 +02:00
|
|
|
echo -e "# Build $(date '+%Y-%m-%d %H:%M:%S') UTC\n" >>"${changelog}"
|
|
|
|
|
|
|
|
tmp=($(repo forall -c 'echo "${REPO_PATH}:$(git rev-parse --short HEAD)"'))
|
|
|
|
for i in "${tmp[@]}"; do
|
|
|
|
IFS=: read -r folder commit <<<"${i}"
|
|
|
|
if [[ "${folder}" != lineage/* && "${before[${folder}]}" != "${commit}" ]]; then
|
|
|
|
cd "${folder}" || continue
|
2022-09-30 22:42:14 +02:00
|
|
|
log=$(git --no-pager log --pretty=format:"- %s" "${before[${folder}]}".."${commit}")
|
2022-12-23 11:01:49 +01:00
|
|
|
if [[ $(echo -n "$log" | wc -c) != 0 ]]; then
|
2022-09-30 22:42:14 +02:00
|
|
|
{
|
|
|
|
echo "## ${folder} ${before[${folder}]}..${commit}"
|
|
|
|
echo "$log"
|
|
|
|
echo
|
|
|
|
} >>"${changelog}"
|
|
|
|
fi
|
2022-09-27 08:44:32 +02:00
|
|
|
cd "${TOPDIR}" || continue
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
echo -e "\n" >>"${changelog}"
|
|
|
|
cat "${changelog}"
|
|
|
|
|
2022-11-26 19:49:14 +01:00
|
|
|
. build/envsetup.sh
|
|
|
|
|
2022-09-18 12:17:53 +02:00
|
|
|
cd packages/apps/LineageParts
|
2022-12-08 22:34:08 +01:00
|
|
|
git am $CI_WORKSPACE/fix-always-enable-taskbar-toggle.patch || git am --abort
|
2022-09-18 12:17:53 +02:00
|
|
|
cd $TOPDIR
|
|
|
|
cd packages/apps/Trebuchet
|
2022-12-08 22:34:08 +01:00
|
|
|
git am $CI_WORKSPACE/fix-enable-more-grids-for-tablet.patch || git am --abort
|
2022-09-18 12:17:53 +02:00
|
|
|
cd $TOPDIR
|
2022-09-25 14:45:49 +02:00
|
|
|
|
2022-09-30 22:42:14 +02:00
|
|
|
#bluetooth
|
|
|
|
cd packages/modules/Bluetooth
|
2022-12-08 22:34:08 +01:00
|
|
|
git am $CI_WORKSPACE/fix-bt-1.patch || git am --abort
|
|
|
|
git am $CI_WORKSPACE/fix-bt-2.patch || git am --abort
|
|
|
|
git am $CI_WORKSPACE/fix-bt-3.patch || git am --abort
|
|
|
|
git am $CI_WORKSPACE/fix-bt-le.patch || git am --abort
|
2022-09-30 22:42:14 +02:00
|
|
|
cd $TOPDIR
|
|
|
|
|
2022-12-02 21:47:38 +01:00
|
|
|
#connectivity
|
|
|
|
cd packages/modules/Connectivity
|
2022-12-08 22:34:08 +01:00
|
|
|
git am $CI_WORKSPACE/fix-NetworkStats-disable-BPF.patch || git am --abort
|
2022-12-02 21:47:38 +01:00
|
|
|
cd $TOPDIR
|
|
|
|
|
2022-12-04 10:40:15 +01:00
|
|
|
#av
|
|
|
|
cd frameworks/av
|
2022-12-08 22:34:08 +01:00
|
|
|
git am $CI_WORKSPACE/fix-rear-camera-rotation.patch || git am --abort
|
2022-12-04 10:40:15 +01:00
|
|
|
cd $TOPDIR
|
|
|
|
|
2022-09-25 14:45:49 +02:00
|
|
|
#safetynet
|
|
|
|
repopick -f 334348 -P system/core
|
2022-12-23 11:01:49 +01:00
|
|
|
repopick -f 334343 334344 -P frameworks/base
|