2019-02-15 21:18:15 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-09-06 07:39:49 +02:00
|
|
|
MK=$(awk -F= '/PolicyVers/ { print $2 }' build/soong/policy.go | tr -d ' [:space:]')
|
2019-02-15 21:18:15 +01:00
|
|
|
BP=$(awk -F= '/DSEPOLICY_VERSION/ { print $2 }' Android.bp | awk -F\" ' { print $1 }')
|
|
|
|
|
|
|
|
if [ "$MK" != "$BP" ]; then
|
|
|
|
echo "POLICYVERS in Android.mk must match DSEPOLICY_VERSION in Android.bp" 1>&2
|
|
|
|
exit 1
|
|
|
|
fi
|