
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
16 lines
273 B
Bash
Executable File
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"
|
|
|