From: Daniel Bevenius Date: Thu, 25 Sep 2025 09:43:51 +0000 (+0200) Subject: scripts : fix next dev version calculation [no ci] (#1351) X-Git-Tag: v0.9.3~2 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=9c8dc6c739eac1754bb7acb64380b45fd2e3c265;p=pkg%2Fggml%2Fsources%2Fggml scripts : fix next dev version calculation [no ci] (#1351) This commit updates the release script to correctly calculate the next development version after a release. The motivation for this is that the script currently increments the new version for the next development cycle but the version is already set to the updated version so this should not increment again. --- diff --git a/scripts/release.sh b/scripts/release.sh index f52f95ef..188fcc06 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -185,7 +185,7 @@ echo "" echo "Step 6: Preparing for next development cycle..." case $VERSION_TYPE in major|minor) - NEXT_DEV_MINOR=$((NEW_MINOR + 1)) + NEXT_DEV_MINOR=$((NEW_MINOR)) NEXT_DEV_VERSION="$NEW_MAJOR.$NEXT_DEV_MINOR.0-dev" if [ "$DRY_RUN" = true ]; then echo " [dry-run] Would update GGML_VERSION_MINOR to $NEXT_DEV_MINOR" @@ -194,7 +194,7 @@ case $VERSION_TYPE in fi ;; patch) - NEXT_DEV_PATCH=$((NEW_PATCH + 1)) + NEXT_DEV_PATCH=$((NEW_PATCH)) NEXT_DEV_VERSION="$NEW_MAJOR.$NEW_MINOR.$NEXT_DEV_PATCH-dev" if [ "$DRY_RUN" = true ]; then echo " [dry-run] Would update GGML_VERSION_PATCH to $NEXT_DEV_PATCH"