diff --git a/scripts/increment-cargo-version.sh b/scripts/increment-cargo-version.sh index 82af492d30..a891a7ea55 100755 --- a/scripts/increment-cargo-version.sh +++ b/scripts/increment-cargo-version.sh @@ -32,6 +32,8 @@ readCargoVariable() { # shellcheck disable=2207 Cargo_tomls=($(find . -name Cargo.toml)) +# shellcheck disable=2207 +markdownFiles=($(find . -name "*.md")) # Collect the name of all the internal crates crates=() @@ -108,6 +110,15 @@ for Cargo_toml in "${Cargo_tomls[@]}"; do done done +# Update all the documentation references +for file in "${markdownFiles[@]}"; do + # Set new crate version + ( + set -x + sed -i "$file" -e "s/$currentVersion/$newVersion/g" + ) +done + echo "$currentVersion -> $newVersion" exit 0