Add increment docs infra to increment-cargo-version (#6456)

This commit is contained in:
Ryan Shea
2019-10-18 21:53:45 -06:00
committed by Michael Vines
parent 785c2574cd
commit e59af8269e

View File

@ -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