Update update_version.sh

This commit is contained in:
Tom 2025-02-19 17:12:23 +00:00
parent e432040321
commit 9873241eab

View File

@ -1,2 +1,2 @@
VERSION=$(git describe --tags --always | sed 's/^v//')
sed -i -E 's/^version = "[^"]+"/version = "'"$VERSION"'"/' Cargo.toml
VERSION=$(git describe --tags --always | awk '{gsub(/^v/, ""); print}')
perl -pi -e "s/^version = \"[^\"]+\"/version = \"$VERSION\"/" Cargo.toml