aboutsummaryrefslogtreecommitdiff
path: root/platforms-check-sync.sh
blob: b1fbb059a3dba6b771d56f9afbbfc5855533d345 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
# This script will check if the ARMLT owned repos are in sync between our
# locally checked out repo and our upstream

remote=${remote:-linaro}

function checksync
{
	dir=$1
	branch=$2

	pushd $dir > /dev/null; 
	git remote update $remote > /dev/null; 
	if [[ `git log --oneline -1 HEAD` != `git log --oneline -1 ${branch}` ]]; then 
		echo $dir is not in sync with upstream branch ${branch}; 
	fi; 
	popd > /dev/null ; 
}

checksync build-scripts 		$remote/master
checksync model-scripts 		$remote/master
checksync ramdisk 			$remote/master
checksync u-boot 			$remote/master
#checksync uefi/edk2 			$remote/master
#checksync uefi/edk2/OpenPlatformPkg 	$remote/master
checksync vexpress-firmware		$remote/master
checksync recovery			$remote/juno
checksync linux 			$remote/latest-armlt
checksync linux 			$remote/lsk-4.4-armlt