Remove version hardcoding
This commit is contained in:
parent
ff0c33fcc9
commit
1b5794bc51
2 changed files with 6 additions and 17 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue