summaryrefslogtreecommitdiff
path: root/shell_utils.sh
AgeCommit message (Collapse)Author
2025-03-10create symlink destination if it doesn't exist for cog workspaces Sam Lewis
Bug: 401229933 Change-Id: I0ca4ab547d7d524ec2c9ba2871687a79f657631c
2024-12-09Add import_build_vars to shell_utils.sh Joe Onorato
Bug: 383124666 Test: treehugger Change-Id: Ibd65da819821a7b0c0e1959aab523e54df8ca258
2024-10-13Fix printf usage in _wrap_build() Alexander Koskovich
On some systems using floating-point instead of decimal results in the build time being displayed as "nan:nan". Test: m, "build completed successfully (02:26 (mm:ss))" Change-Id: I7a2b401903b63117a7718cc5aa2a0d5610b57ca2
2024-09-24Remove prompt to repair Cog workspace Sam Lewis
When builds are run from the Cider UI, the prompt will cause the command to hang. See the comments in aosp/3274365 for reasons why doing this automatically is not a concern: https://screenshot.googleplex.com/3vavnYbzqQSQ5Tu Bug: 362337892 Change-Id: Ic8e4567af5a5c99d4c345410622ccb1e2fcee330
2024-09-23Move cog setup logic into shell_utils so it can be used when any of these ↵ Sam Lewis
commands are run: - `m` - `lunch` - `source build/envsetup.sh` this will set up the symlink properly regardless of the order of commands so users don't get stuck with a broken build Bug: 362337892 Change-Id: Ibd3b262107dfc1024cd83ab8aeb33a299fb0ffb2
2024-06-07Move the impl of run_tool_with_logging into shell_utils.sh Joe Onorato
- This lets other shell scripts use it without being a shell function - Simplifies run_tool_with_logging which is now in build/soong/bin Bug: 340648588 Test: atest run_tool_with_logging Change-Id: I1c1c5c1b115f155929c027c2ea82df5da8b190de
2024-05-20Clean cruft out of envsetup.sh Joe Onorato
Most if it moved to build/soong/bin as standalone scripts Bug: 340648588 Test: ran the scripts Change-Id: I69bff94a2293e2563d58d29b12f7926a9229f9d4
2024-05-14Clean cruft out of envsetup.sh. Joe Onorato
aninja and overrideflags moved to build/soong/bin Bug: 340648588 Test: manual Change-Id: I1d426b628f15674e142df4152661d3f4b9b56320
2023-01-03Pull common methods into shell_utils.sh, which can be included by scripts. Joe Onorato
So we can stop copying gettop and others all over the place. Test: manual Bug: 260003429 Change-Id: Ic1b5d6bec8726d9253fb33ec588e503d6fc8167a