Hotfix for much too long http headers
[olsrd.git] / release / release.bash
index 97ee7f1..0806808 100755 (executable)
@@ -582,6 +582,20 @@ if [[ ${checkVersionIncrementingResult} -ne 0 ]]; then
 fi
 
 
+#
+# When branching, check that the version is incrementing (allow equal versions),
+# w.r.t. the version in the Makefile
+#
+if [[ "${mode}" == "${MODE_BRANCH}" ]]; then
+  declare currentMasterVersion="$(getVersionFromMakefile)"
+  checkVersionIncrementing "${currentMasterVersion}" "${relBranchVersionDigits}" 1
+  if [[ ${checkVersionIncrementingResult} -ne 0 ]]; then
+    echo "* The new version ${relBranchVersionDigits} is not greater than the current version ${currentMasterVersion}"
+    exit 1
+  fi
+fi
+
+
 #
 # Confirm the branch/release
 #