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