aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Harkin <ryan.harkin@linaro.org>2017-07-06 13:05:28 +0100
committerRyan Harkin <ryan.harkin@linaro.org>2017-07-06 13:05:28 +0100
commit104052475b791d91ce5ac3e6baca6d06b4ae7f15 (patch)
treeb18aa798c5a13cf6f19be1f3fe049d972d54bc76
parentc87e1d497d9f82cb7db8449af2bf2ccc0c913c9c (diff)
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 <ryan.harkin@linaro.org>
-rwxr-xr-xplatforms-check-sync.sh29
1 files changed, 29 insertions, 0 deletions
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