Skip to content

Commit

Permalink
Update the change log uppon a new release
Browse files Browse the repository at this point in the history
  • Loading branch information
breard-r committed Dec 20, 2023
1 parent 35b173c commit 15b64d1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 15b64d1

Please sign in to comment.