d98c43c8dd
- add a mode to disable finalization steps if they were already merged, - add the extension version into commit message. Bug: 243966946 Test: local run Change-Id: I51505e5d5715b56f3b385d714e1aabaae06f58ed
38 lines
1.1 KiB
Bash
Executable file
38 lines
1.1 KiB
Bash
Executable file
#!/bin/bash
|
|
# Script to perform a 2nd step of Android Finalization: REL finalization, create CLs and upload to Gerrit.
|
|
|
|
# WIP, does not work yet
|
|
exit 10
|
|
|
|
set -ex
|
|
|
|
function update_step_2_changes() {
|
|
set +e
|
|
repo forall -c '\
|
|
if [[ $(git status --short) ]]; then
|
|
git stash -u ;
|
|
repo start "$FINAL_PLATFORM_CODENAME-SDK-Finalization-Rel" ;
|
|
git stash pop ;
|
|
git add -A . ;
|
|
git commit --amend --no-edit ;
|
|
repo upload --cbr --no-verify -o nokeycheck -t -y . ;
|
|
fi'
|
|
}
|
|
|
|
function update_step_2_main() {
|
|
local top="$(dirname "$0")"/../../../..
|
|
source $top/build/make/tools/finalization/environment.sh
|
|
|
|
local m="$top/build/soong/soong_ui.bash --make-mode TARGET_PRODUCT=aosp_arm64 TARGET_BUILD_VARIANT=userdebug"
|
|
|
|
# prebuilts etc
|
|
source $top/build/make/tools/finalization/finalize-sdk-rel.sh
|
|
|
|
# move all changes to finalization branch/topic and upload to gerrit
|
|
update_step_2_changes
|
|
|
|
# build to confirm everything is OK
|
|
AIDL_FROZEN_REL=true $m
|
|
}
|
|
|
|
update_step_2_main
|