File tree 2 files changed +19
-1
lines changed
2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ DISTCHECK_CONFIGURE_FLAGS += $(DISTCHECK_SYSREPOCPP_CONFIGURE_FLAG)
77
77
78
78
dist_doc_DATA = AUTHORS COPYING ChangeLog README CONTRIBUTING.md SECURITY.md platforms.rst code_of_conduct.md
79
79
80
- .PHONY : check-valgrind check-valgrind-suppress
80
+ .PHONY : add-changelog-entry check-valgrind check-valgrind-suppress
81
81
82
82
check-valgrind :
83
83
if HAVE_VALGRIND
@@ -179,6 +179,9 @@ install-exec-hook:
179
179
mkdir -p $(DESTDIR ) ${localstatedir} /lib/${PACKAGE_NAME}
180
180
mkdir -p $(DESTDIR ) ${runstatedir} /${PACKAGE_NAME}
181
181
182
+ add-changelog-entry :
183
+ ./changelog_unreleased/.add-entry.sh
184
+
182
185
# ### include external sources in the distributed tarball:
183
186
EXTRA_DIST = ext/coroutine/coroutine.hpp
184
187
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ set -eu
4
+
5
+ parent_dir=$( cd " $( dirname " ${0} " ) " && pwd)
6
+ cd " ${parent_dir} " || exit 1
7
+
8
+ author=$( git show -s --format=' %ae' | cut -d ' @' -f 1)
9
+ branch=$( git branch --show-current)
10
+ file=" ${branch} "
11
+ gitlab_id=$( printf ' %s' " ${branch} " | cut -d ' -' -f 1)
12
+ printf ' [category]\t\t%s\n' " ${author} " > " ${file} "
13
+ printf ' \tdescription\n' >> " ${file} "
14
+ printf ' \t(Gitlab #%s)\n' " ${gitlab_id} " >> " ${file} "
15
+ printf ' Created changelog_unreleased/%s.\n' " ${file} "
You can’t perform that action at this time.
0 commit comments