Remove version hardcoding

This commit is contained in:
Andras Schmelczer 2026-10-28 10:44:51 +00:00
commit 1b5794bc51
2 changed files with 6 additions and 17 deletions

View file

@ -39,7 +39,6 @@ which cargo-set-version || cargo install cargo-edit
cargo set-version --bump $1
NEWVER=$(grep '^version = ' Cargo.toml | head -1 | sed 's/version = "\(.*\)"/\1/')
sed_inplace "s/^reconcile-text = \".*\"/reconcile-text = \"$NEWVER\"/" README.md
which wasm-pack || cargo install wasm-pack

View file

@ -2,12 +2,6 @@
set -e
VERSION=$(grep '^version = ' Cargo.toml | head -1 | sed 's/version = "\(.*\)"/\1/')
if ! grep -Fxq "reconcile-text = \"$VERSION\"" README.md; then
echo "README.md must use the Cargo.toml version ($VERSION) in the Rust installation example."
exit 1
fi
which cargo-machete || cargo install cargo-machete
cargo machete