From 15b64d186b3541bde3e5b34ee3e83db98079e58c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Wed, 20 Dec 2023 17:30:22 +0100 Subject: [PATCH] Update the change log uppon a new release --- release.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/release.sh b/release.sh index 3109b41..0946f70 100755 --- a/release.sh +++ b/release.sh @@ -44,6 +44,14 @@ update_man_date() sed -i "s/\.Dd .*/\.Dd ${new_date}/" "man/en/${man_name}" } +update_changelog() +{ + local new_version="$1" + local new_date="$2" + + sed -i "s/\[Unreleased\]/\[${new_version}\] - ${new_date}/" "CHANGELOG.md" +} + check_working_directory() { local status @@ -84,6 +92,8 @@ release_new_version() update_man_date "acmed.toml.5" "${current_date}" update_man_date "tacd.8" "${current_date}" + update_changelog "${new_version}" "${current_date}" + git diff echo