]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3892] Make tools/bump-lib-versions.sh write to changelog_unreleased
authorAndrei Pavel <andrei@isc.org>
Tue, 20 May 2025 10:56:06 +0000 (13:56 +0300)
committerRazvan Becheriu <razvan@isc.org>
Tue, 20 May 2025 13:01:39 +0000 (13:01 +0000)
tools/bump-lib-versions.sh

index d608b12c4507e650597b72272cf427d6317b70ff..c8516ba7f38fdbf6c4bc6818a228aa3dc02133ae 100755 (executable)
@@ -165,10 +165,11 @@ else
   release='development'
 fi
 
-(echo "\
-TODO.  [build]         TODO
+author=$(git show -s --format='%ae' | cut -d '@' -f 1)
+branch=$(git branch --show-current)
+gitlab_id=$(printf '%s' "${branch}" | cut -d '-' -f 1)
+echo "\
+[build]                ${author}
        The library version numbers have been bumped up for the Kea ${major}.${middle}.${minor}
        ${release} release.
-       (Gitlab #TODO)
-" && cat ./ChangeLog) > ./ChangeLog.tmp
-mv ./ChangeLog.tmp ./ChangeLog
+       (Gitlab #${gitlab_id})" > "./changelog_unreleased/${branch}"