From 7150f0aefd05e450908333309c53c65e0c658762 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Fri, 1 Mar 2024 21:21:34 +0100 Subject: [PATCH] Release v0.4.0-alpha.1 --- scripts/publish.sh | 11 +---------- scripts/set_all_versions.sh | 6 ------ 2 files changed, 1 insertion(+), 16 deletions(-) delete mode 100755 scripts/set_all_versions.sh diff --git a/scripts/publish.sh b/scripts/publish.sh index 2187a89..7b80de8 100755 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -2,13 +2,8 @@ set -e cargo check --all-features echo ">>>>>>>> SELECT A NEW VERSION" -cargo ws version --no-git-commit +cargo ws version NEW_VERSION=$(cat Cargo.toml | rg '^\s*version\s*=\s*"([^"]*)"\s*$' -or '$1') -bash scripts/set_all_versions.sh $NEW_VERSION -git add -A -git commit -m "Release v$NEW_VERSION" || (echo ">>>>>>>> COMMIT FAILED OR THERE WAS NOTHING TO COMMIT"; sleep 5) -echo ">>>>>>>> SKIP!!!!!" -cargo ws version --amend echo ">>>>>>>> PUBLISHING RELEASE FOR REPO" bash scripts/release.sh echo ">>>>>>>> PUBLISHING TO CRATES.IO NEXT" @@ -16,14 +11,10 @@ sleep 10 cargo publish -p libpt-log cargo publish -p libpt-core cargo publish -p libpt-bintols -cargo publish -p libpt-math -cargo publish -p libpt-net cargo publish -p libpt echo ">>>>>>>> PUBLISHING TO CSCHERR.DE NEXT" sleep 3 cargo publish --registry cscherr -p libpt-log cargo publish --registry cscherr -p libpt-core cargo publish --registry cscherr -p libpt-bintols -cargo publish --registry cscherr -p libpt-math -cargo publish --registry cscherr -p libpt-net cargo publish --registry cscherr -p libpt diff --git a/scripts/set_all_versions.sh b/scripts/set_all_versions.sh deleted file mode 100755 index 0c89340..0000000 --- a/scripts/set_all_versions.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash -export NEW_VER=$1 -pwd -sed -i 's/\(^\s*version\)\s*=\s*"\([^"]*\)"$/\1 = "'$NEW_VER'"/g' Cargo.toml -find * -name 'Cargo.toml' -type f \ - -exec sed -i 's/\(libpt.*version\s*=\s*\)"[^"]*"/\1"'$NEW_VER'"/g' Cargo.toml {} +