mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-10-29 21:30:54 +00:00
add convenience script to bump dependency version
This commit is contained in:
parent
30918c355b
commit
4ebd8af96f
11
release/bump-dependency.sh
Executable file
11
release/bump-dependency.sh
Executable file
@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
# A helper script to bump version dependencies of a crate to a particular version. It does
|
||||
# not bump the version of the crate itself, only its entries in dependency lists.
|
||||
#
|
||||
# Usage (from the embassy repo folder): ./release/bump-dependency.sh embassy-time 0.4.0
|
||||
#
|
||||
# As a sanity check, after running this script, grep for old versions.
|
||||
#
|
||||
CRATE=$1
|
||||
TARGET_VER=$2
|
||||
find . -name "Cargo.toml" | xargs sed -rie "s/($CRATE = \{.*version = \")[0-9]+.[0-9]+.?[0-9]*(\".*)/\1$TARGET_VER\2/g"
|
Loading…
Reference in New Issue
Block a user