-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci] Factor out "release crate versions" script (#1824)
Sometimes we want to manually release, often when we are making a change and releasing it in the same commit. This makes that process easier.
- Loading branch information
Showing
3 changed files
with
25 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Copyright 2024 The Fuchsia Authors | ||
# | ||
# Licensed under a BSD-style license <LICENSE-BSD>, Apache License, Version 2.0 | ||
# <LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0>, or the MIT | ||
# license <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your option. | ||
# This file may not be copied, modified, or distributed except according to | ||
# those terms. | ||
|
||
set -e | ||
|
||
if [ $# -ne 1 ]; then | ||
echo "Usage: $0 <version>" >&2 | ||
exit 1 | ||
fi | ||
|
||
VERSION="$1" | ||
|
||
sed -i -e "s/^zerocopy-derive = { version = \"=[0-9a-zA-Z\.-]*\"/zerocopy-derive = { version = \"=$VERSION\"/" Cargo.toml | ||
sed -i -e "s/^version = \"[0-9a-zA-Z\.-]*\"/version = \"$VERSION\"/" Cargo.toml zerocopy-derive/Cargo.toml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters