summaryrefslogtreecommitdiff
path: root/envsetup.sh
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2024-05-20 22:38:13 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2024-05-20 22:38:13 +0000
commitd429640373b3f808f7784edc5c22d9f5c35f38fc (patch)
treeae8a5ed035410034408fd9eadcce1fe97689722e /envsetup.sh
parent9f94972ab0be625fe302e3499c32a71a883bb46d (diff)
parent143f9e0b7263e7c6f1ec13ea8bb27e2217350cce (diff)
Merge "Make side of converting refreshmod to a shell script" into main
Diffstat (limited to 'envsetup.sh')
-rw-r--r--envsetup.sh17
1 files changed, 1 insertions, 16 deletions
diff --git a/envsetup.sh b/envsetup.sh
index dd545c6bed..b20c83fed3 100644
--- a/envsetup.sh
+++ b/envsetup.sh
@@ -1195,22 +1195,6 @@ function godir () {
\cd $T/$pathname
}
-function refreshmod() {
- if [ ! "$ANDROID_PRODUCT_OUT" ]; then
- echo "No ANDROID_PRODUCT_OUT. Try running 'lunch' first." >&2
- return 1
- fi
-
- echo "Refreshing modules (building module-info.json). Log at $ANDROID_PRODUCT_OUT/module-info.json.build.log." >&2
-
- # for the output of the next command
- mkdir -p $ANDROID_PRODUCT_OUT || return 1
-
- # Note, can't use absolute path because of the way make works.
- m $(get_build_var PRODUCT_OUT)/module-info.json \
- > $ANDROID_PRODUCT_OUT/module-info.json.build.log 2>&1
-}
-
# Verifies that module-info.txt exists, returning nonzero if it doesn't.
function verifymodinfo() {
if [ ! "$ANDROID_PRODUCT_OUT" ]; then
@@ -1578,6 +1562,7 @@ unset sgrep
unset tomlgrep
unset treegrep
unset syswrite
+unset refreshmod
validate_current_shell