From ec96a271c97896e74b50129faae5129926b21d12 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Mon, 7 Dec 2020 00:58:43 -0500 Subject: [PATCH] precheck version numbers --- mkgitrel | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/mkgitrel b/mkgitrel index c6ff9ec6b44..0ce544b932a 100755 --- a/mkgitrel +++ b/mkgitrel @@ -1,5 +1,22 @@ #! /bin/bash +success=: +for rel +do + case $rel in + v*) + echo $rel starts with v, that is unexpected >&2 + success=false + ;; + *.*-gnu) + ;; + *) + echo $rel does not end with -gnu, that is unexpected >&2 + success=false + ;; + esac +done && $success && + $0.cln "$@" && echo all revs cleaned up, awaiting manual check results... && -- 2.31.1