Files
platform-external-webrtc/android_tools/generate_android_bp.sh
Colin Cross a626e135fb Fix dependency on python hash seed
Sort the list of targets before writing them to the output, which fixes
the only place where output ordering depended on the python hash seed.
Also remove the fixed python hash seed from the script.

Test: android_tools/generate_android_bp.sh && git diff
Test: mma
Change-Id: Icfadfaaebf438d00bfef13c231fc09afda454916
2023-02-24 16:28:21 -08:00

16 lines
273 B
Bash
Executable File

#!/bin/bash
set -o errexit
if [[ "${ANDROID_BUILD_TOP}" == "" ]]; then
echo "Run source build/envsetup.sh && lunch to be able to format Android.bp"
exit 2
fi
DIR=$(dirname $0)
"${DIR}"/generate_bp.py "$DIR" >"${DIR}/../Android.bp"
bpfmt -w "${DIR}/../Android.bp"