release.sh: compare file with nm-1-46

In nm-1-48 it has differences because the build is done with meson and
not with autotools.
This commit is contained in:
Íñigo Huguet 2024-12-24 15:15:18 +01:00
parent ea4a976cd1
commit 501cc1e02b

View file

@ -380,7 +380,8 @@ fi
if [ "$ALLOW_LOCAL_BRANCHES" != 1 ]; then if [ "$ALLOW_LOCAL_BRANCHES" != 1 ]; then
# The release process changed a bit in nm-1-50, so previous versions has to be compared to nm-1-48, not to main # 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\"\`" # Before nm-1-48 the build was done with autotools, not meson. There are small differences because of that, so compare to nm-1-46.
cmp <(git show "$ORIGIN/nm-1-46:contrib/fedora/rpm/release.sh") "$BASH_SOURCE_ABSOLUTE" || die "$BASH_SOURCE is not identical to \`git show \"$ORIGIN/nm-1-46:contrib/fedora/rpm/release.sh\"\`"
fi fi
if ! check_news "$RELEASE_MODE" "@{VERSION_ARR[@]}" ; then if ! check_news "$RELEASE_MODE" "@{VERSION_ARR[@]}" ; then