diff options
author | Valentin Popov <valentin@popov.link> | 2024-07-19 15:37:58 +0300 |
---|---|---|
committer | Valentin Popov <valentin@popov.link> | 2024-07-19 15:37:58 +0300 |
commit | a990de90fe41456a23e58bd087d2f107d321f3a1 (patch) | |
tree | 15afc392522a9e85dc3332235e311b7d39352ea9 /vendor/image/release.sh | |
parent | 3d48cd3f81164bbfc1a755dc1d4a9a02f98c8ddd (diff) | |
download | fparkan-a990de90fe41456a23e58bd087d2f107d321f3a1.tar.xz fparkan-a990de90fe41456a23e58bd087d2f107d321f3a1.zip |
Deleted vendor folder
Diffstat (limited to 'vendor/image/release.sh')
-rwxr-xr-x | vendor/image/release.sh | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/vendor/image/release.sh b/vendor/image/release.sh deleted file mode 100755 index ae164d3..0000000 --- a/vendor/image/release.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash -# Checks automatic preconditions for a release -determine_new_version() { - grep "version = " Cargo.toml | sed -Ee 's/version = "(.*)"/\1/' | head -1 -} - -check_notexists_version() { - # Does the api information start with: '{"errors":' - [[ $(wget "https://crates.io/api/v1/crates/image/$1" -qO -) == "{\"errors\":"* ]] -} - -check_release_description() { - major=${1%%.*} - minor_patch=${1#$major.} - minor=${minor_patch%%.*} - patch=${minor_patch#$minor.} - # We just need to find a fitting header line - grep -Eq "^### Version ${major}.${minor}$" CHANGES.md -} - -version="$(determine_new_version)" -check_release_description $version || { echo "Version does not have a release description"; exit 1; } -check_notexists_version $version || { echo "Version $version appears already published"; exit 1; } - |