From 104052475b791d91ce5ac3e6baca6d06b4ae7f15 Mon Sep 17 00:00:00 2001 From: Ryan Harkin Date: Thu, 6 Jul 2017 13:05:28 +0100 Subject: platforms-check-sync.sh added Added a script to check that our local repos are in sync with our upstream repos. Signed-off-by: Ryan Harkin --- platforms-check-sync.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 platforms-check-sync.sh diff --git a/platforms-check-sync.sh b/platforms-check-sync.sh new file mode 100755 index 0000000..b1fbb05 --- /dev/null +++ b/platforms-check-sync.sh @@ -0,0 +1,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 -- cgit v1.2.3