summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-01-21 22:05:41 +0000
committerLeah Rowe <leah@libreboot.org>2024-01-21 22:05:41 +0000
commit435441d04b2482da6cddd34e988e9173331a9616 (patch)
tree8ff6175a9bf03e3beaf4aa79ad1550a18902c812
parenta225e4d5d946b85c2d0acdf12f0da94ee5d02242 (diff)
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>
-rwxr-xr-xscript/update/release5
1 files changed, 5 insertions, 0 deletions
diff --git a/script/update/release b/script/update/release
index fa557477..6182bd1c 100755
--- a/script/update/release
+++ b/script/update/release
@@ -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"