diff options
author | Andrei Pavel <andrei@isc.org> | 2024-09-12 08:37:19 +0200 |
---|---|---|
committer | Andrei Pavel <andrei@isc.org> | 2025-01-10 14:16:00 +0100 |
commit | 4c0a08be3bae3de1926849a0b472c0d818b8d611 (patch) | |
tree | e9272ee34e131e7ee989ed7f03b11c4c0a7fbf50 | |
parent | [#2101] addressed review comments (diff) | |
download | kea-4c0a08be3bae3de1926849a0b472c0d818b8d611.tar.xz kea-4c0a08be3bae3de1926849a0b472c0d818b8d611.zip |
[#3530] add add-changelog-entry Makefile rule
-rw-r--r-- | Makefile.am | 5 | ||||
-rwxr-xr-x | changelog_unreleased/.add-entry.sh | 15 |
2 files changed, 19 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index f1ae0dffff..7675376cdd 100644 --- a/Makefile.am +++ b/Makefile.am @@ -77,7 +77,7 @@ DISTCHECK_CONFIGURE_FLAGS += $(DISTCHECK_SYSREPOCPP_CONFIGURE_FLAG) dist_doc_DATA = AUTHORS COPYING ChangeLog README CONTRIBUTING.md SECURITY.md platforms.rst code_of_conduct.md -.PHONY: check-valgrind check-valgrind-suppress +.PHONY: add-changelog-entry check-valgrind check-valgrind-suppress check-valgrind: if HAVE_VALGRIND @@ -179,6 +179,9 @@ install-exec-hook: mkdir -p $(DESTDIR)${localstatedir}/lib/${PACKAGE_NAME} mkdir -p $(DESTDIR)${runstatedir}/${PACKAGE_NAME} +add-changelog-entry: + ./changelog_unreleased/.add-entry.sh + #### include external sources in the distributed tarball: EXTRA_DIST = ext/coroutine/coroutine.hpp diff --git a/changelog_unreleased/.add-entry.sh b/changelog_unreleased/.add-entry.sh new file mode 100755 index 0000000000..863aa8467d --- /dev/null +++ b/changelog_unreleased/.add-entry.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +set -eu + +parent_dir=$(cd "$(dirname "${0}")" && pwd) +cd "${parent_dir}" || exit 1 + +author=$(git show -s --format='%ae' | cut -d '@' -f 1) +branch=$(git branch --show-current) +file="${branch}" +gitlab_id=$(printf '%s' "${branch}" | cut -d '-' -f 1) +printf '[category]\t\t%s\n' "${author}" > "${file}" +printf '\tdescription\n' >> "${file}" +printf '\t(Gitlab #%s)\n' "${gitlab_id}" >> "${file}" +printf 'Created changelog_unreleased/%s.\n' "${file}" |