So I figured out that even this script "build-scripts/build-android" can be modified to make sure that no one put SOURCE_OVERLAY_OPTIONAL in the official build configurations. Is my understanding correct?
+if [ "$SOURCE_OVERLAY_OPTIONAL" == "1" -o -n "$SOURCE_OVERLAY_OPTIONAL" ]; then
+ echo "ERROR: SOURCE_OVERLAY_OPTIONAL should not be set in official build configuration."
+ echo " It is meant to be set only in local build scripts to bypass overlays."
+ exit 1
+fi
+
source "${BUILD_SCRIPT_ROOT}"/helpers
So I figured out that even this script "build- scripts/ build-android" can be modified to make sure that no one put SOURCE_ OVERLAY_ OPTIONAL in the official build configurations. Is my understanding correct?
------- ------- ------- ------- --- scripts/ build-android' build-android 2012-12-19 10:05:03 +0000 build-android 2013-01-25 11:29:39 +0000
$ bzr diff
=== modified file 'build-
--- build-scripts/
+++ build-scripts/
@@ -14,6 +14,12 @@
exit 1
fi
+if [ "$SOURCE_ OVERLAY_ OPTIONAL" == "1" -o -n "$SOURCE_ OVERLAY_ OPTIONAL" ]; then OVERLAY_ OPTIONAL should not be set in official build configuration." SCRIPT_ ROOT}"/ helpers
+ echo "ERROR: SOURCE_
+ echo " It is meant to be set only in local build scripts to bypass overlays."
+ exit 1
+fi
+
source "${BUILD_
trap infrastructure_ error ERR
$ ------- ------- ------- ---
-------