2019-05-02 19:26:24 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# Copyright 2019 The Chromium OS Authors. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
|
|
|
cd "${0%/*}"
|
|
|
|
|
|
|
|
remotes=(
|
|
|
|
"https://github.com/mesonbuild/meson"
|
|
|
|
"https://github.com/anholt/libepoxy.git"
|
|
|
|
"https://chromium.googlesource.com/chromiumos/third_party/tpm2"
|
|
|
|
"https://chromium.googlesource.com/chromiumos/platform2"
|
2019-06-03 18:15:38 +00:00
|
|
|
"https://chromium.googlesource.com/chromiumos/third_party/adhd"
|
2019-05-02 19:26:24 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
keys=(
|
|
|
|
"MESON_COMMIT"
|
|
|
|
"LIBEPOXY_COMMIT"
|
|
|
|
"TPM2_COMMIT"
|
|
|
|
"PLATFORM2_COMMIT"
|
2019-06-03 18:15:38 +00:00
|
|
|
"ADHD_COMMIT"
|
2019-05-02 19:26:24 +00:00
|
|
|
)
|
|
|
|
|
2019-06-03 18:15:38 +00:00
|
|
|
for (( i=0; i<${#remotes[*]}; ++i)); do
|
|
|
|
remote="${remotes[$i]}"
|
|
|
|
key="${keys[$i]}"
|
2019-05-02 19:26:24 +00:00
|
|
|
remote_chunk=$(git ls-remote --exit-code "${remote}" refs/heads/master)
|
|
|
|
commit=$(echo "${remote_chunk}" | cut -f 1 -)
|
2019-06-03 18:15:38 +00:00
|
|
|
echo $key=$commit
|
2019-05-02 19:26:24 +00:00
|
|
|
done
|