File tree 2 files changed +11
-6
lines changed
2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ install-exec-hook:
180
180
mkdir -p $(DESTDIR ) ${runstatedir} /${PACKAGE_NAME}
181
181
182
182
add-changelog-entry :
183
- ./changelog_unreleased/.add-entry.sh
183
+ @ ./changelog_unreleased/.add-entry.sh
184
184
185
185
# ### include external sources in the distributed tarball:
186
186
EXTRA_DIST = ext/coroutine/coroutine.hpp
Original file line number Diff line number Diff line change @@ -4,12 +4,17 @@ set -eu
4
4
5
5
parent_dir=$( cd " $( dirname " ${0} " ) " && pwd)
6
6
cd " ${parent_dir} " || exit 1
7
+ basedir=$( basename " ${parent_dir} " )
7
8
8
9
author=$( git show -s --format=' %ae' | cut -d ' @' -f 1)
9
10
branch=$( git branch --show-current)
10
- file=" ${branch} "
11
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} "
12
+ file=" ${branch} "
13
+ if test -e " ${file} " ; then
14
+ printf ' Nothing done. File already exists: %s\n' " ${basedir} /${file} "
15
+ exit 1
16
+ fi
17
+ content=$( cat .template)
18
+ content=" ${content// author/ ${author} } "
19
+ content=" ${content//# 0000/# ${gitlab_id} } "
20
+ printf ' %s\n' " ${content} " > " ${file} "
You can’t perform that action at this time.
0 commit comments