Branch: refs/heads/master Author: Enrico Tröger enrico.troeger@uvena.de Committer: Enrico Tröger enrico.troeger@uvena.de Date: Thu, 12 Oct 2023 21:07:42 UTC Commit: 8fdd8c91805dc6a9d0325fb5ec521ee27fd87d02 https://github.com/geany/geany-plugins/commit/8fdd8c91805dc6a9d0325fb5ec521e...
Log Message: ----------- CI: Fix version parsing and calculating for 2.0
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: -------------- build/ci_mingw64_geany_plugins.sh
Modified: build/ci_mingw64_geany_plugins.sh 9 lines changed, 7 insertions(+), 2 deletions(-) =================================================================== @@ -144,8 +144,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).
plugins-commits@lists.geany.org