From d4c98b2febf2e63fbcaf33e366d98f7e0e705037 Mon Sep 17 00:00:00 2001 From: Andrew Konstantinov <105389353+execveat@users.noreply.github.com> Date: Sun, 22 Jan 2023 16:03:53 +0100 Subject: [PATCH] argc_tag -> argc_tagname --- Runmefile.sh | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/Runmefile.sh b/Runmefile.sh index 60bc451..b4a296c 100644 --- a/Runmefile.sh +++ b/Runmefile.sh @@ -260,21 +260,21 @@ coverage.update_badge() { } # @cmd Verify that all files in dist/ correspond to the expected tag -# @arg tag! The tag against which the release was built +# @arg tagname! The tag against which the release was built release.verify() { - log "Verifying release '$argc_tag'" - if [[ ! $argc_tag ]]; then + log "Verifying release '$argc_tagname'" + if [[ ! $argc_tagname ]]; then err "Received empty tag, can't continue!" exit 1 fi - if ! ls dist/ | grep -q "$argc_tag"; then - err "There are no files in dist/ that correspond to the tag '$argc_tag'" + if ! ls dist/ | grep -q "$argc_tagname"; then + err "There are no files in dist/ that correspond to the tag '$argc_tagname'" exit 1 fi - if ls dist/ | grep -qv "$argc_tag"; then - err "There are files in dist/ that don't correspond to the tag '$argc_tag'" + if ls dist/ | grep -qv "$argc_tagname"; then + err "There are files in dist/ that don't correspond to the tag '$argc_tagname'" exit 1 fi } @@ -287,9 +287,9 @@ build() { } # @cmd Publish release to PyPI -# @arg tag! Release tag (should have been created previously and used for building the release) +# @arg tagname! Release tag (should have been created previously and used for building the release) publish.pypi() { - release.verify "$argc_tag" + release.verify "$argc_tagname" catch pip install twine @@ -303,11 +303,11 @@ publish.pypi() { } # @cmd Publish release to Github -# @arg tag! Git tag for release (should exist already, and should have been pushed to GitHub) +# @arg tagname! Git tag for release (should exist already, and should have been pushed to GitHub) publish.github() { - log "Publishing to github, tag '$argc_tag'" - release.verify "$argc_tag" - catch gh release create "$argc_tag" --verify-tag --generate-notes --latest + log "Publishing to github, tag '$argc_tagname'" + release.verify "$argc_tagname" + catch gh release create "$argc_tagname" --verify-tag --generate-notes --latest } # @cmd Bump version