Branch: refs/heads/master Author: Enrico Tröger enrico.troeger@uvena.de Committer: GitHub noreply@github.com Date: Thu, 12 Oct 2023 21:02:31 UTC Commit: b17b389a962f99f3941f91e98461369b40ac40ee https://github.com/geany/geany/commit/b17b389a962f99f3941f91e98461369b40ac40...
Log Message: ----------- CI: Fix version parsing and calculating for 2.0 (#3594)
The previous logic failed on 2.0 to make the new version number 1.99.99. This is fixed now even though the code is not perfect or good at all but should work well enough for its purposes.
Modified Paths: -------------- scripts/ci_mingw64_geany.sh
Modified: scripts/ci_mingw64_geany.sh 9 lines changed, 7 insertions(+), 2 deletions(-) =================================================================== @@ -146,8 +146,13 @@ patch_version_information() { MINOR="${BASH_REMATCH[2]}" PATCH="${BASH_REMATCH[4]}" if [ -z "${PATCH}" ] || [ "${PATCH}" = "0" ]; then - MINOR="$((MINOR-1))" - PATCH="90" + if [ "${MINOR}" = "0" ]; then + MAJOR="$((MAJOR-1))" + MINOR="99" + else + MINOR="$((MINOR-1))" + fi + PATCH="99" else PATCH="$((PATCH-1))" fi
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).