]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
UpdatePoint:
authorDave Hart <hart@ntp.org>
Tue, 22 Dec 2009 08:36:49 +0000 (08:36 +0000)
committerDave Hart <hart@ntp.org>
Tue, 22 Dec 2009 08:36:49 +0000 (08:36 +0000)
  correct handling of beta-free stable RC bumps

bk: 4b308521v55gMLQyq8D8o6l9IXMJsg

scripts/UpdatePoint

index 37331859b2c4eb067c5ce1ac90822aebbb2f8bda..309cdccb657e975445e7a39106fe4093652c4ce0 100755 (executable)
@@ -156,14 +156,18 @@ case "$repo" in
        esac
        ;;
      beta)
-       case "$betapoint" in
-        0) echo "betapoint is 0 and prerelease is beta, you probably intended"
-           echo "prerelease=  (that is, empty).  It will then be changed to"
-           echo "beta by this script, starting the first beta for the next"
-           echo "point release."
+       case "$betapoint::$rcpoint" in
+        [1-9]*::*)
+           bp=0
+           bbp=1
+           ;;
+        0::) echo "betapoint is 0, rcpoint emtpy, and prerelease is beta."
+           echo "You probably intended prerelease=  (that is, empty).  It"
+           echo "will then be changed to beta by this script, starting the"
+           echo "first beta for the next point release."
            exit 1
            ;;
-        [1-9]*)
+        *)
            bp=0
            bbp=1
            ;;
@@ -178,7 +182,7 @@ case "$repo" in
        ;;
      rc|RC)
        case "$rcpoint" in
-        ''|[1-9]*)
+        '')
            case "$betapoint" in
             0) # bp=1
                ;;
@@ -187,6 +191,10 @@ case "$repo" in
            esac
            crcp=i
            ;;
+        [1-9]*)
+           bp=0
+           crcp=i
+           ;;
         [Gg][Oo])
            bp=0
            crcp=z