This commit is contained in:
parent
61fbe7242c
commit
3735fab2cf
1 changed files with 9 additions and 6 deletions
9
sync.sh
9
sync.sh
|
@ -14,16 +14,19 @@ repo sync -q -c -j 6 --fail-fast --force-sync --no-tags
|
||||||
|
|
||||||
echo -e "# Build $(date '+%Y-%m-%d %H:%M:%S') UTC\n" >>"${changelog}"
|
echo -e "# Build $(date '+%Y-%m-%d %H:%M:%S') UTC\n" >>"${changelog}"
|
||||||
|
|
||||||
tmp=($(repo forall -c 'echo "${REPO_PATH}:$(git rev-parse HEAD)"'))
|
tmp=($(repo forall -c 'echo "${REPO_PATH}:$(git rev-parse --short HEAD)"'))
|
||||||
for i in "${tmp[@]}"; do
|
for i in "${tmp[@]}"; do
|
||||||
IFS=: read -r folder commit <<<"${i}"
|
IFS=: read -r folder commit <<<"${i}"
|
||||||
if [[ "${folder}" != lineage/* && "${before[${folder}]}" != "${commit}" ]]; then
|
if [[ "${folder}" != lineage/* && "${before[${folder}]}" != "${commit}" ]]; then
|
||||||
cd "${folder}" || continue
|
cd "${folder}" || continue
|
||||||
|
log=$(git --no-pager log --pretty=format:"- %s" "${before[${folder}]}".."${commit}")
|
||||||
|
if [[ $(echo -n "$log" | wc -l) != 0 ]]; then
|
||||||
{
|
{
|
||||||
echo "## ${folder}"
|
echo "## ${folder} ${before[${folder}]}..${commit}"
|
||||||
git --no-pager log --pretty=format:"- %s" "${before[${folder}]}".."${commit}"
|
echo "$log"
|
||||||
echo
|
echo
|
||||||
} >>"${changelog}"
|
} >>"${changelog}"
|
||||||
|
fi
|
||||||
cd "${TOPDIR}" || continue
|
cd "${TOPDIR}" || continue
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Reference in a new issue