From cbc792c8c375da2a22b98bcac75523372e3bf0ca Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Sun, 20 Aug 2023 19:21:55 -0600 Subject: 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 Change-Id: I23e39fa47fe418ee51fb957fcb5fc25b50950e38 Reviewed-on: https://review.coreboot.org/c/coreboot/+/77331 Reviewed-by: Felix Singer Tested-by: build bot (Jenkins) --- util/release/genrelnotes | 11 +++++------ 1 file 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 | \ -- cgit v1.2.3