precheck version numbers
authorAlexandre Oliva <lxoliva@fsfla.org>
Mon, 7 Dec 2020 05:58:43 +0000 (00:58 -0500)
committerAlexandre Oliva <lxoliva@fsfla.org>
Mon, 7 Dec 2020 05:58:43 +0000 (00:58 -0500)
mkgitrel

index c6ff9ec6b4496b44ad591edeb976cbfb38632661..0ce544b932ac3d6e6bfd12c989bfa5fd19974225 100755 (executable)
--- 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... &&