diff options
author | EuAndreh <eu@euandre.org> | 2021-06-11 23:51:49 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-06-11 23:51:49 -0300 |
commit | 2d835687aeb2c10a245ddf70d164a37aa683d242 (patch) | |
tree | 5e949016af8f56ad4da632f1edde9c0b57ec2184 /aux/workflow/dist.sh | |
parent | aux/workflow/public.sh: Mark as executable (diff) | |
download | git-permalink-2d835687aeb2c10a245ddf70d164a37aa683d242.tar.gz git-permalink-2d835687aeb2c10a245ddf70d164a37aa683d242.tar.xz |
aux/: Update files
Diffstat (limited to 'aux/workflow/dist.sh')
-rwxr-xr-x | aux/workflow/dist.sh | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/aux/workflow/dist.sh b/aux/workflow/dist.sh index 0ae0ec4..c061a04 100755 --- a/aux/workflow/dist.sh +++ b/aux/workflow/dist.sh @@ -2,26 +2,25 @@ set -eu DATE="$1" -VERSION="$2" VVERSION="v$2" PROJECT="$3" if git show "$VVERSION" 1>/dev/null 2>/dev/null; then - echo "Version '$VVERSION' already exists." >&2 - exit 1 + echo "Version '$VVERSION' already exists." >&2 + exit 1 fi if [ "$DATE" != "$(git log -1 --format=%cd --date=short HEAD)" ]; then - echo "Date '$DATE' is not up-to-date." >&2 - exit 1 + echo "Date '$DATE' is not up-to-date." >&2 + exit 1 fi if [ "Release $VVERSION" != "$(git log --format=%B -1 HEAD | head -n1)" ]; then - echo "Commit message isn't 'Release $VVERSION'." >&2 - exit 1 + echo "Commit message isn't 'Release $VVERSION'." >&2 + exit 1 fi -sh aux/workflow/assert-changelog.sh "$DATE" "$VERSION" "$PROJECT" +sh aux/workflow/assert-changelog.sh "$PROJECT" git tag "$VVERSION" |