update/release: generate changelogs

use the git log, as follows:

git log --graph --pretty=format:'%Cred%h%Creset %s %Creset' --abbrev-commit

this creates a nice, uniform list of changes.

Signed-off-by: Leah Rowe <leah@libreboot.org>
audit2-merge1
Leah Rowe 2024-01-21 22:05:41 +00:00 committed by Leah Rowe
parent e9fcc47c08
commit aa11288a09
1 changed files with 5 additions and 0 deletions

View File

@ -51,6 +51,11 @@ build_release()
fetch_trees
x_ mv src/docs docs
) || err "can't create release files"
git log --graph --pretty=format:'%Cred%h%Creset %s %Creset' \
--abbrev-commit > "${srcdir}/CHANGELOG" || \
err "build_release $srcdir: couldn't generate changelog"
(
cd "${srcdir%/*}" || err "${_xm}: mktarball \"${srcdir}\""
mktarball "${srcdir##*/}" "${srcdir##*/}.tar.xz" || err "$_xm: mksrc"