aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com>2024-04-24 08:41:07 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2024-04-24 08:41:07 +0000
commit6916e64027be4ac8319962e94c3e43724554fa8b (patch)
treec3c91cf701ed18498e0dcc058c1be0136c34866c
parent27abc3abc33c24250637beae3664302c2e5fb4cb (diff)
parentc55d79b7c73f1c5c12764e09f8d73e341494c191 (diff)
downloadbuild-6916e64027be4ac8319962e94c3e43724554fa8b.tar.gz
Merge "Make check-flagged-apis executable" into main
-rwxr-xr-x[-rw-r--r--]tools/check-flagged-apis/check-flagged-apis.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/check-flagged-apis/check-flagged-apis.sh b/tools/check-flagged-apis/check-flagged-apis.sh
index ae671d1d5c..cd37a2d52e 100644..100755
--- a/tools/check-flagged-apis/check-flagged-apis.sh
+++ b/tools/check-flagged-apis/check-flagged-apis.sh
@@ -1,3 +1,5 @@
+#!/bin/bash
+
# Copyright (C) 2024 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,6 +17,13 @@
# Run check-flagged-apis for public APIs and the three @SystemApi flavours
# Usage: lunch <your-target> && source <this script>
+source $(cd $(dirname $BASH_SOURCE) &> /dev/null && pwd)/../../shell_utils.sh
+require_top
+
+function m() {
+ $(gettop)/build/soong/soong_ui.bash --build-mode --all-modules --dir="$(pwd)" "$@"
+}
+
function build() {
m sdk dist && m \
check-flagged-apis \