mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-10-24 05:09:47 +00:00
crosvm: Commit Cargo.toml with a useful description.
This is what I do all the time manually, maybe this can be automated. BUG=None TEST=run it and observe. Change-Id: Ia32790ca7dd0b8313ce05dcff28509b8a21d4f76 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3336823 Reviewed-by: Dennis Kempin <denniskempin@google.com> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Junichi Uekawa <uekawa@chromium.org>
This commit is contained in:
parent
a11190428b
commit
5e91be7064
1 changed files with 19 additions and 1 deletions
|
@ -6,8 +6,15 @@
|
|||
# To build crosvm using cargo against libraries and crates provided by ChromeOS
|
||||
# use this script to update path references in Cargo.toml.
|
||||
|
||||
set -e
|
||||
|
||||
CARGO_PATH=$(dirname "$0")/../../Cargo.toml
|
||||
|
||||
if ! git diff "${CARGO_PATH}"; then
|
||||
echo "There is pending Cargo.toml changes, please clean first."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
declare -A replacements=(
|
||||
["libcras_stub"]="../../third_party/adhd/cras/client/libcras"
|
||||
["system_api_stub"]="../../platform2/system_api"
|
||||
|
@ -20,4 +27,15 @@ for crate in "${!replacements[@]}"; do
|
|||
"${CARGO_PATH}"
|
||||
done
|
||||
|
||||
echo "Modified Cargo.toml with new paths. Please do not commit those."
|
||||
git commit "${CARGO_PATH}" -m 'crosvm: DO NOT SUBMIT: Cargo.toml changes.
|
||||
|
||||
This is for local cargo {build,test} in your CrOS checkout.
|
||||
Please do not submit this change.
|
||||
|
||||
BUG=None
|
||||
TEST=None
|
||||
|
||||
Commit: false
|
||||
'
|
||||
|
||||
echo "Modified Cargo.toml with new paths. Please do not submit the change."
|
||||
|
|
Loading…
Reference in a new issue