1 Star 0 Fork 0

feiser/treble_experimentations

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
list-patches.sh 1.34 KB
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
# How does this script work?
# This script levarages "repo forall" to walk through all repositories by
# calling itself via repo forall.
#
# Why is it required?
# This script gathers all the patches applied to make the GSI work,
# and then later re-apply the patches to other distros.
# Phase 1: Initial Start
#
# if $REPO_REMOTE is not (yet) set (i.e. which is done by repo forall) then start the repo forall
if [ -z "$REPO_REMOTE" ];then
rm -Rf patches patches.zip
TOP=$PWD repo forall -c "bash $(readlink -f -- $0)"
zip -r patches.zip patches
rm -Rf patches
exit $?
fi
# Phase 2: Foreach Git Repo
#
# We only end up here if $REPO_REMOTE is set (i.e. the script was called by repo forall)
# -> and we are inside a git repository
# check if this repo is modified (i.e. pulled from phh), exit/abort if not
git remote get-url phh 2>/dev/null || exit 0
git fetch --unshallow phh $REPO_RREV
# if repo comes from phh, then get all the changes done against the "official" aosp source
compact_remote="$(git remote get-url phh|cut -d / -f 5)"
original_remote=https://android.googlesource.com/"$(tr _ / <<<$compact_remote)"
if git fetch --tags $original_remote;then
echo $REPO_PROJECT
lastTag="$(git describe --abbrev=0 --match=android-*)"
patches_out=$TOP/patches/$compact_remote/
mkdir -p $patches_out
git format-patch $lastTag..HEAD -o $patches_out
fi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Android
1
https://gitee.com/feiser/treble_experimentations.git
git@gitee.com:feiser/treble_experimentations.git
feiser
treble_experimentations
treble_experimentations
master

搜索帮助