summaryrefslogtreecommitdiff
path: root/sync-master
blob: a8a09462052671fac2d2e58aa9e2b05c0d411b87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
. `dirname $0`/common
lco platform/manifest linaro-master
cd $SRC/platform/manifest
FAILED=""
grep 'revision="linaro-master"' default.xml |while read r; do
	P=`echo $r |sed -e 's,.*name=",,;s,".*,,'`
	lco $P linaro-master
	cd $SRC/$P
	git fetch --all
	if git rebase aosp/master; then
		git push --force gerrit linaro-master
	else
		FAILED="$FAILED $P"
	fi
done
if [ -n "$FAILED" ]; then
	echo "The following projects need manual merges: $FAILED"
fi