File tree Expand file tree Collapse file tree 3 files changed +51
-1
lines changed Expand file tree Collapse file tree 3 files changed +51
-1
lines changed Original file line number Diff line number Diff line change 1
1
include platform/build/soong:/OWNERS
2
2
3
- per-file finalize_branch_for_release.sh = smoreland@google.com
3
+ # Finalization scripts
4
+ per-file finalize* = smoreland@google.com, alexbuy@google.com
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # Automation for finalize_branch_for_release.sh.
3
+ # Sets up local environment, runs the finalization script and submits the results.
4
+ # WIP:
5
+ # - does not submit, only sends to gerrit.
6
+
7
+ # set -ex
8
+
9
+ function revert_local_changes() {
10
+ repo forall -c ' \
11
+ git checkout . ; git clean -fdx ;\
12
+ git checkout @ ; git b fina-step1 -D ; git reset --hard; \
13
+ repo start fina-step1 ; git checkout @ ; git b fina-step1 -D ;\
14
+ previousHash="$(git log --format=%H --no-merges --max-count=1 --grep ^FINALIZATION_STEP_1_SCRIPT_COMMIT)" ;\
15
+ if [[ $previousHash ]]; then git revert --no-commit $previousHash ; fi ;'
16
+ }
17
+
18
+ function finalize_step_1_main() {
19
+ local top=" $( dirname " $0 " ) " /../..
20
+
21
+ repo selfupdate
22
+
23
+ revert_local_changes
24
+
25
+ # vndk etc finalization
26
+ source $top /build/make/finalize_branch_for_release.sh
27
+
28
+ # move all changes to fina-step1 branch and commit with a robot message
29
+ repo forall -c ' if [[ $(git status --short) ]]; then repo start fina-step1 ; git add -A . ; git commit -m FINALIZATION_STEP_1_SCRIPT_COMMIT -m WILL_BE_AUTOMATICALLY_REVERTED ; repo upload --cbr --no-verify -t -y . ; fi'
30
+ }
31
+
32
+ finalize_step_1_main
Original file line number Diff line number Diff line change @@ -27,9 +27,25 @@ function finalize_main() {
27
27
$m check-vndk-list || \
28
28
{ cp $top /out/soong/vndk/vndk.libraries.txt $top /build/make/target/product/gsi/current.txt; }
29
29
30
+ # Finalize resources
31
+ " $top /frameworks/base/tools/aapt2/tools/finalize_res.py" \
32
+ " $top /frameworks/base/core/res/res/values/public-staging.xml" \
33
+ " $top /frameworks/base/core/res/res/values/public-final.xml"
34
+
35
+ # SDK finalization
36
+ local sdk_codename=' public static final int UPSIDE_DOWN_CAKE = CUR_DEVELOPMENT;'
37
+ local sdk_version=' public static final int UPSIDE_DOWN_CAKE = 34;'
38
+ local sdk_build=" $top /frameworks/base/core/java/android/os/Build.java"
39
+
40
+ sed -i " s%$sdk_codename %$sdk_version %g" $sdk_build
41
+
42
+ # Update the current.txt
43
+ $m update-api
44
+
30
45
# This command tests:
31
46
# The release state for AIDL.
32
47
# ABI difference between user and userdebug builds.
48
+ # Resource/SDK finalization.
33
49
# In the future, we would want to actually turn the branch into the REL
34
50
# state and test with that.
35
51
AIDL_FROZEN_REL=true $m droidcore
@@ -40,3 +56,4 @@ function finalize_main() {
40
56
}
41
57
42
58
finalize_main
59
+
You can’t perform that action at this time.
0 commit comments