mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-05 18:20:34 +00:00
6a0bfb037a
This change also includes some code that was missing from upgrade_checkout_commits.sh that actually generated the new checkout_commits.env. BUG=None TEST=kokoro/kokoro_simulator.sh docker/build_crosvm_base.sh docker/build_crosvm.sh Change-Id: If2505dd9af060d15c36eaf54741d4ae371f6a3c7 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1641585 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Tested-by: Zach Reizner <zachr@chromium.org> Commit-Queue: Zach Reizner <zachr@chromium.org>
30 lines
842 B
Bash
Executable file
30 lines
842 B
Bash
Executable file
#!/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"
|
|
"https://chromium.googlesource.com/chromiumos/third_party/adhd"
|
|
)
|
|
|
|
keys=(
|
|
"MESON_COMMIT"
|
|
"LIBEPOXY_COMMIT"
|
|
"TPM2_COMMIT"
|
|
"PLATFORM2_COMMIT"
|
|
"ADHD_COMMIT"
|
|
)
|
|
|
|
for (( i=0; i<${#remotes[*]}; ++i)); do
|
|
remote="${remotes[$i]}"
|
|
key="${keys[$i]}"
|
|
remote_chunk=$(git ls-remote --exit-code "${remote}" refs/heads/master)
|
|
commit=$(echo "${remote_chunk}" | cut -f 1 -)
|
|
echo $key=$commit
|
|
done
|