Skip to content

Commit

Permalink
fix update_version.sh: correct version update sed script for Cargo.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
tamada committed Dec 23, 2024
1 parent 10066a3 commit 2a66025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .bin/update_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ echo "$PREV_VERSION -> $VERSION (${PREV_VERSION//-/--} -> ${VERSION//-/--})"

sed -e "s#Version-${PREV_VERSION//-/--}-information#Version-${VERSION//-/--}-information#g" -e "s#tag/v${PREV_VERSION}#tag/v${VERSION}#g" README.md > a; mv a README.md
sed -e "s#version = \".*\"#version = \"${VERSION}\"#g" docs/config.toml > a ; mv a docs/config.toml
sed "s/^version= /version = "${VERSION}"/g" Cargo.toml > a && mv a Cargo.toml
sed "s/^version = \".*\"/version = \"${VERSION}\"/g" Cargo.toml > a && mv a Cargo.toml

echo "Replace version from \"${PREV_VERSION}\" to \"${VERSION}\""

0 comments on commit 2a66025

Please sign in to comment.