mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-09 20:04:20 +00:00
7c6d8bec3f
While we are tweaking all of the copyright headers, let's take the opportunity to ensure there is always a blank line after the copyright header for consistency. (Almost all files already follow this style.) This includes a slightly ugly regex to allow the end of a C-style comment block after the end of the copyright: /* * Example comment block */ <-- this line Change-Id: Idfd0855861e5ecb3d33afae942fdba908af0dcff Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3892521 Commit-Queue: Daniel Verkamp <dverkamp@chromium.org> Reviewed-by: Dennis Kempin <denniskempin@google.com>
28 lines
813 B
Bash
Executable file
28 lines
813 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Copyright 2022 The ChromiumOS Authors
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
set -ex
|
|
|
|
BUILD_DIR=$(mktemp -d)
|
|
cd "$BUILD_DIR" || exit 1
|
|
|
|
CIPD_ARGS=(
|
|
-pkg-var "description:rustup-init to set up rustup.rs"
|
|
-install-mode copy
|
|
-ref latest
|
|
)
|
|
|
|
RUSTUP_WIN="https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe"
|
|
RUSTUP_LINUX="https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init"
|
|
|
|
cd $(mktemp -d)
|
|
wget "$RUSTUP_WIN" -O "rustup-init.exe"
|
|
cipd create -in "." -name "crosvm/rustup-init/windows-amd64" "${CIPD_ARGS[@]}"
|
|
|
|
cd $(mktemp -d)
|
|
wget "$RUSTUP_LINUX" -O "rustup-init"
|
|
chmod +x "rustup-init"
|
|
cipd create -in "." -name "crosvm/rustup-init/linux-amd64" "${CIPD_ARGS[@]}"
|
|
|