unplugged-system/external/webrtc/android_tools/generate_android_bp.sh

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"