mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-09-27 20:30:29 +00:00

the `-rie` arguments of `sed` were probably meant as `-r -i -e`, however, due to the way it was written it ended up being `-r -i e`, thus causing `-i` (edit in-place) to generate backup files. so for every edited `Cargo.toml` it also created a `Cargo.tomle` with the previous content. `-e` is anyway not needed as the last argument of `sed` here is the expression to be executed.
12 lines
500 B
Bash
Executable File
12 lines
500 B
Bash
Executable File
#!/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 -ri "s/($CRATE = \{.*version = \")[0-9]+.[0-9]+.?[0-9]*(\".*)/\1$TARGET_VER\2/g"
|