Skip to content

Commit 96e8e3e

Browse files
committed
feedback: apply @shonfeder suggestions
Signed-off-by: Etienne Marais <[email protected]>
1 parent 35c1919 commit 96e8e3e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

doc/changes/scripts/build_changelog.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env bash
22

33
# Script name: build_changelog.sh
4-
# Description: this script generates the CHANGES.md file from the changes
5-
# directory. It removes the added files.
4+
# Description: this script updates the CHANGES.md file from the the files in
5+
# the changes directory, removing the files as it goes.
66
# Author(s): The Dune team
77
# Date: 2025-09-29
88
#
@@ -36,7 +36,7 @@ generate_version_header() {
3636
add_newline
3737
}
3838

39-
cat_files_in_dir_if_not_empty() {
39+
append_files_in_dir_if_not_empty() {
4040
subheader="$1"
4141
category="$2"
4242
dir="$doc_dir/$category"
@@ -72,9 +72,9 @@ touch "$output"
7272
generate_version_header
7373

7474
# Extract the information from the changes/**/*.md files
75-
cat_files_in_dir_if_not_empty "Fixed" "fixed"
76-
cat_files_in_dir_if_not_empty "Added" "added"
77-
cat_files_in_dir_if_not_empty "Changed" "changed"
75+
append_files_in_dir_if_not_empty "Fixed" "fixed"
76+
append_files_in_dir_if_not_empty "Added" "added"
77+
append_files_in_dir_if_not_empty "Changed" "changed"
7878

7979
# We remove the unreleased header and add the previous changelog to the new
8080
# changelog

0 commit comments

Comments
 (0)