From 8cca667470a61ac31ba9f5d17a78c94023fb095e Mon Sep 17 00:00:00 2001 From: Vojtech Trefny Date: Thu, 7 Nov 2024 09:45:00 +0100 Subject: [PATCH] Makefile: Fix generating RPM log during bumpver We stopped using the release version in tags in 07352e9 so we need to use the correct tag when getting log for RPM changelog. --- Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 469c98af..a8f39cfb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -172,8 +172,8 @@ tag: rpmlog: @cl=`grep -n %changelog dist/libblockdev.spec.in |cut -d : -f 1 |head -1` ; \ - version_release=`tail --lines=+$$(($$cl + 1)) dist/libblockdev.spec.in|head -1|cut -d- -f2-3|sed 's/ //g'` ; \ - git log --no-merges --pretty="format:- %s (%ae)" "$$version_release.." |sed -e 's/@.*)/)/' ; \ + version=`tail --lines=+$$(($$cl + 1)) dist/libblockdev.spec.in|head -1|cut -d- -f2|sed 's/ //g'` ; \ + git log --no-merges --pretty="format:- %s (%ae)" "$$version.." |sed -e 's/@.*)/)/' ; \ echo shortlog: