aboutsummaryrefslogtreecommitdiff
path: root/aux
diff options
context:
space:
mode:
Diffstat (limited to 'aux')
-rwxr-xr-xaux/workflow/dist.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/aux/workflow/dist.sh b/aux/workflow/dist.sh
index e5971b8..cab9ff3 100755
--- a/aux/workflow/dist.sh
+++ b/aux/workflow/dist.sh
@@ -53,6 +53,12 @@ if git show "$VVERSION" 1>/dev/null 2>/dev/null; then
exit 1
fi
+TAG_LIST="$(printf '%s\n%s\n' "$(git tag)" "$VVERSION")"
+if [ "$TAG_LIST" != "$(echo "$TAG_LIST" | sort -t. -n -k1 -k2 -k3)" ]; then
+ echo 'New tag is not bigger than existing ones.' >&2
+ exit 1
+fi
+
sh aux/workflow/assert-changelog.sh -N "$PROJECT_UC" -n "$PROJECT" "$VVERSION"
sh aux/workflow/assert-readme.sh -n "$PROJECT" -m "$MAILING_LIST" "$VVERSION"
@@ -71,8 +77,8 @@ if ! (git diff --quiet && git diff --quiet --staged); then
exit 1
fi
-git tag "$VVERSION"
+git tag "$VVERSION"
sh aux/workflow/sign-tarballs.sh -n "$PROJECT"