aboutsummaryrefslogtreecommitdiff
path: root/build-scripts/build-android
diff options
context:
space:
mode:
Diffstat (limited to 'build-scripts/build-android')
-rw-r--r--build-scripts/build-android12
1 files changed, 12 insertions, 0 deletions
diff --git a/build-scripts/build-android b/build-scripts/build-android
index d2950db..b6ba5b7 100644
--- a/build-scripts/build-android
+++ b/build-scripts/build-android
@@ -67,6 +67,18 @@ else
repo-sync-from-mirror "${1}"
fi
+ if [ -n "$GERRIT_PROJECT" ] && [ $GERRIT_EVENT_TYPE -eq "patchset-created" ]; then
+ if [ "$GERRIT_PROJECT" == "platform/manifest" ]; then
+ cd .repo/local_manifests;
+ git pull http://review.android.git.linaro.org/platform/manifest $GERRIT_REFSPEC
+ cd -
+ else
+ cd `grep -rni $GERRIT_PROJECT\" .repo/local_manifests | grep -Po 'path="\K[^"]*'`
+ git pull http://review.android.git.linaro.org/$GERRIT_PROJECT $GERRIT_REFSPEC
+ cd -
+ fi
+ fi
+
if [ -n "$PATCHSETS" ]; then
for i in $PATCHSETS; do
sh ./android-patchsets/$i