aboutsummaryrefslogtreecommitdiff
path: root/util/release/genrelnotes
diff options
context:
space:
mode:
authorMartin Roth <gaumless@gmail.com>2023-08-20 19:21:55 -0600
committerFelix Singer <service+coreboot-gerrit@felixsinger.de>2023-08-21 18:31:21 +0000
commitcbc792c8c375da2a22b98bcac75523372e3bf0ca (patch)
treeb66f9561ef895bfbd15134da660d08598ce20ba2 /util/release/genrelnotes
parente59868c6b6b69262adad27686f8fbf410edba6d0 (diff)
util/release: Update genrelnotes script for new release format
- Print submodule updates the way we want it for the release. - Change hyphens on stats to asterisks. - Add asterisks before authors. Signed-off-by: Martin Roth <gaumless@gmail.com> Change-Id: I23e39fa47fe418ee51fb957fcb5fc25b50950e38 Reviewed-on: https://review.coreboot.org/c/coreboot/+/77331 Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util/release/genrelnotes')
-rwxr-xr-xutil/release/genrelnotes11
1 files changed, 5 insertions, 6 deletions
diff --git a/util/release/genrelnotes b/util/release/genrelnotes
index 1bbe55429d..46037abe48 100755
--- a/util/release/genrelnotes
+++ b/util/release/genrelnotes
@@ -166,8 +166,7 @@ get_log_submodule() {
commits=$(echo "$log" | wc -l)
if [ -n "$log" ]; then
- printf "%s\n" "$submodule_dir ($commits commits)" >> "$LOGFILE"
- printf "\n" >> "$LOGFILE"
+ printf "* %s: Update from commit id %s to %s (%s commits)\n" "${submodule_dir}" "${old_version:0:10}" "${new_version:0:10}" "${commits}" >> "$LOGFILE"
fi
); then
version_ctrl_c
@@ -534,12 +533,12 @@ NEW_AUTHORS=$(git log --pretty=%an "${OLD_GIT_VERSION}" 2>/dev/null | sort | \
NEW_AUTHOR_LIST=$( grep -Fxv -f "$before_names" "$after_names")
rm -f "$before_names" "$after_names"
{
- printf -- "- Total commits: %s\n" "$TOTAL_COMMITS"
- printf -- "- Total authors: %s\n" \
+ printf -- "* Total commits: %s\n" "$TOTAL_COMMITS"
+ printf -- "* Total authors: %s\n" \
"$(git log "${OLD_GIT_VERSION}..${NEW_GIT_VERSION}" 2>/dev/null | \
grep -e '^Author:' | sed 's/.*Author: //' | sed 's/ <.*.>//' | \
sort | uniq | wc -l)"
- printf -- "- New authors: %s\n\nNew Authors:\n%s\n" "$NEW_AUTHORS" \
+ printf -- "* New authors: %s\n\nNew Authors:\n%s\n" "$NEW_AUTHORS" \
"$NEW_AUTHOR_LIST"
} >> "$LOGFILE"
@@ -548,7 +547,7 @@ printf "\n%-40s: %5s\n" "Developer" "Commits" >> "$LOGFILE"
git log "${OLD_GIT_VERSION}..${NEW_GIT_VERSION}" 2>/dev/null | grep '^Author: ' | \
sed 's|Author: ||' | sed 's|\s<.*||' | sort | uniq | \
while read -r line; do
- printf "%-40s: %5s %5s\n" "$line" \
+ printf "* %-40s: %5s %5s\n" "$line" \
"$(git log "${OLD_GIT_VERSION}" 2>/dev/null | \
grep -c "^Author: ${line} <")" \
"$(git log "${NEW_GIT_VERSION}" 2>/dev/null | \