release.sh: update version check

(cherry picked from commit cfc3f3fed7)
(cherry picked from commit 39c0e8cf30)
(cherry picked from commit 01a03c7a5a)
(cherry picked from commit f5e0d856f7)
This commit is contained in:
Beniamino Galvani 2024-06-24 10:00:15 +02:00 committed by Íñigo Huguet
parent a4b997b2ec
commit 98b1dba100

View file

@ -368,7 +368,8 @@ if [ -n "$RELEASE_BRANCH" ]; then
fi
if [ "$ALLOW_LOCAL_BRANCHES" != 1 ]; then
cmp <(git show "$ORIGIN/main:contrib/fedora/rpm/release.sh") "$BASH_SOURCE_ABSOLUTE" || die "$BASH_SOURCE is not identical to \`git show \"$ORIGIN/main:contrib/fedora/rpm/release.sh\"\`"
# The release process changed a bit in nm-1-50, so previous versions has to be compared to nm-1-48, not to main
cmp <(git show "$ORIGIN/nm-1-48:contrib/fedora/rpm/release.sh") "$BASH_SOURCE_ABSOLUTE" || die "$BASH_SOURCE is not identical to \`git show \"$ORIGIN/nm-1-48:contrib/fedora/rpm/release.sh\"\`"
fi
if ! check_news "$RELEASE_MODE" "@{VERSION_ARR[@]}" ; then